1 #ifndef TAG_PARSER_MARGIN_H 2 #define TAG_PARSER_MARGIN_H 6 #include <c++utilities/conversion/stringbuilder.h> 7 #include <c++utilities/conversion/types.h> 18 constexpr
Margin(uint32 top = 0, uint32 left = 0, uint32 bottom = 0, uint32 right = 0);
19 constexpr uint32 top()
const;
20 void setTop(uint32 top);
21 constexpr uint32 left()
const;
22 void setLeft(uint32 left);
23 constexpr uint32 bottom()
const;
24 void setBottom(uint32 bottom);
25 constexpr uint32 right()
const;
26 void setRight(uint32 right);
27 constexpr
bool isNull()
const;
28 std::string toString()
const;
40 constexpr
Margin::Margin(uint32 top, uint32 left, uint32 bottom, uint32 right)
117 return m_top == 0 && m_left == 0 && m_bottom == 0 && m_right == 0;
125 return ConversionUtilities::argsToString(
"top: ", m_top,
"; left: ", m_left,
"; bottom: ", m_bottom,
"; right: ", m_right);
130 #endif // TAG_PARSER_MARGIN_H void setBottom(uint32 bottom)
Sets the bottom margin to bottom.
The Margin class defines the four margins of a rectangle.
std::string toString() const
Returns a string representation of the margin.
void setLeft(uint32 left)
Sets the left margin to left.
constexpr uint32 right() const
Returns the right margin.
void setRight(uint32 right)
Sets the right margin to right.
constexpr Margin(uint32 top=0, uint32 left=0, uint32 bottom=0, uint32 right=0)
Constructs a Margin.
constexpr uint32 bottom() const
Returns the bottom margin.
constexpr uint32 top() const
Returns the top margin.
void setTop(uint32 top)
Sets the top margin to top.
constexpr bool isNull() const
Returns true if all margins are is 0; otherwise returns false;.
Contains all classes and functions of the TagInfo library.
constexpr uint32 left() const
Returns the left margin.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.