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