1 #ifndef TAG_PARSER_SIZE_H 2 #define TAG_PARSER_SIZE_H 6 #include <c++utilities/conversion/stringbuilder.h> 7 #include <c++utilities/conversion/types.h> 19 constexpr
Size(uint32 width, uint32 height);
21 constexpr uint32 width()
const;
22 constexpr uint32 height()
const;
23 void setWidth(uint32 value);
24 void setHeight(uint32 value);
25 constexpr uint32 resolution()
const;
26 const char *abbreviation()
const;
28 bool constexpr isNull()
const;
31 std::string toString()
const;
93 return m_width * m_height;
101 return (m_width == 0) && (m_height == 0);
109 return (m_width == other.m_width) && (m_height == other.m_height);
118 return (m_width >= other.m_width) && (m_height >= other.m_height);
126 return ConversionUtilities::argsToString(
"width: ", m_width,
", height: ", m_height);
131 #endif // TAG_PARSER_SIZE_H constexpr uint32 resolution() const
Returns the resolution of the current instance (product of with and height).
void setWidth(uint32 value)
Sets the width.
constexpr bool operator>=(MatroskaElementLevel lhs, MatroskaElementLevel rhs)
constexpr bool operator==(byte lhs, FlacMetaDataBlockType type)
void setHeight(uint32 value)
Sets the height.
The Size class defines the size of a two-dimensional object using integer point precision.
constexpr uint32 height() const
Returns the height.
bool constexpr operator>=(const Size &other) const
Returns whether this instance is greather than other.
constexpr Size()
Constructs a new Size.
bool constexpr isNull() const
Returns an indication whether both the width and height is 0.
bool constexpr operator==(const Size &other) const
Returns whether this instance equals other.
std::string toString() const
Returns the string representation of the current size.
constexpr uint32 width() const
Returns the width.
Contains all classes and functions of the TagInfo library.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.