Tag Parser  7.0.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
Public Member Functions | List of all members
TagParser::Margin Class Reference

The Margin class defines the four margins of a rectangle. More...

#include <margin.h>

Public Member Functions

constexpr Margin (uint32 top=0, uint32 left=0, uint32 bottom=0, uint32 right=0)
 Constructs a Margin. More...
 
constexpr uint32 top () const
 Returns the top margin. More...
 
void setTop (uint32 top)
 Sets the top margin to top. More...
 
constexpr uint32 left () const
 Returns the left margin. More...
 
void setLeft (uint32 left)
 Sets the left margin to left. More...
 
constexpr uint32 bottom () const
 Returns the bottom margin. More...
 
void setBottom (uint32 bottom)
 Sets the bottom margin to bottom. More...
 
constexpr uint32 right () const
 Returns the right margin. More...
 
void setRight (uint32 right)
 Sets the right margin to right. More...
 
constexpr bool isNull () const
 Returns true if all margins are is 0; otherwise returns false;. More...
 
std::string toString () const
 Returns a string representation of the margin. More...
 

Detailed Description

The Margin class defines the four margins of a rectangle.

Definition at line 16 of file margin.h.

Constructor & Destructor Documentation

◆ Margin()

constexpr TagParser::Margin::Margin ( uint32  top = 0,
uint32  left = 0,
uint32  bottom = 0,
uint32  right = 0 
)

Constructs a Margin.

Definition at line 40 of file margin.h.

Member Function Documentation

◆ bottom()

constexpr uint32 TagParser::Margin::bottom ( ) const

Returns the bottom margin.

Definition at line 83 of file margin.h.

◆ isNull()

constexpr bool TagParser::Margin::isNull ( ) const

Returns true if all margins are is 0; otherwise returns false;.

Definition at line 115 of file margin.h.

◆ left()

constexpr uint32 TagParser::Margin::left ( ) const

Returns the left margin.

Definition at line 67 of file margin.h.

◆ right()

constexpr uint32 TagParser::Margin::right ( ) const

Returns the right margin.

Definition at line 99 of file margin.h.

◆ setBottom()

void TagParser::Margin::setBottom ( uint32  bottom)
inline

Sets the bottom margin to bottom.

Definition at line 91 of file margin.h.

◆ setLeft()

void TagParser::Margin::setLeft ( uint32  left)
inline

Sets the left margin to left.

Definition at line 75 of file margin.h.

◆ setRight()

void TagParser::Margin::setRight ( uint32  right)
inline

Sets the right margin to right.

Definition at line 107 of file margin.h.

◆ setTop()

void TagParser::Margin::setTop ( uint32  top)
inline

Sets the top margin to top.

Definition at line 59 of file margin.h.

◆ top()

constexpr uint32 TagParser::Margin::top ( ) const

Returns the top margin.

Definition at line 51 of file margin.h.

◆ toString()

std::string TagParser::Margin::toString ( ) const
inline

Returns a string representation of the margin.

Definition at line 123 of file margin.h.


The documentation for this class was generated from the following file: