TGUI  v0.7.5

Public Member Functions

 Borders (float size=0)
 Default constructor.
 
 Borders (float leftBorderWidth, float topBorderHeight, float rightBorderWidth, float bottomBorderHeight)
 Constructor that initializes the borders. More...
 
 Borders (float width, float height)
 Constructor that initializes the borders. More...
 
bool operator== (const Borders &borders) const
 Compare two borders. More...
 
bool operator!= (const Borders &borders) const
 Compare two borders. More...
 

Public Attributes

float left
 Width of the left border.
 
float top
 Height of the top border.
 
float right
 Width of the right border.
 
float bottom
 Height of the bottom border.
 

Constructor & Destructor Documentation

◆ Borders() [1/2]

tgui::Borders::Borders ( float  leftBorderWidth,
float  topBorderHeight,
float  rightBorderWidth,
float  bottomBorderHeight 
)
inline

Constructor that initializes the borders.

Parameters
leftBorderWidthWidth of the left border
topBorderHeightHeight of the top border
rightBorderWidthWidth of the right border
bottomBorderHeightHeight of the bottom border

◆ Borders() [2/2]

tgui::Borders::Borders ( float  width,
float  height 
)
inline

Constructor that initializes the borders.

Parameters
widthWidth of the left and right borders
heightHeight of the top and bottom borders

Member Function Documentation

◆ operator!=()

bool tgui::Borders::operator!= ( const Borders borders) const
inline

Compare two borders.

Parameters
bordersThe borders to compare with this instance
Returns
Whether the borders are equal or not.

◆ operator==()

bool tgui::Borders::operator== ( const Borders borders) const
inline

Compare two borders.

Parameters
bordersThe borders to compare with this instance
Returns
Whether the borders are equal or not.

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