Parent class for every widget that has borders.
More...
#include <TGUI/Borders.hpp>
Parent class for every widget that has borders.
◆ getBorders()
virtual Borders tgui::WidgetBorders::getBorders |
( |
| ) |
const |
|
inlinevirtual |
Returns the size of the borders as a tgui::Borders.
- Returns
- border sizes
The first element will be the size of the left border, the seconds is the size of the top border, the third is the size of the right border and the the last constains the size of the bottom border.
◆ setBorders() [1/3]
virtual void tgui::WidgetBorders::setBorders |
( |
const Borders & |
borders | ) |
|
|
inlinevirtual |
◆ setBorders() [2/3]
void tgui::WidgetBorders::setBorders |
( |
float |
leftBorder, |
|
|
float |
topBorder, |
|
|
float |
rightBorder, |
|
|
float |
bottomBorder |
|
) |
| |
|
inline |
Changes the size of the borders.
- Parameters
-
leftBorder | Width of the left border |
topBorder | Height of the top border |
rightBorder | Width of the right border |
bottomBorder | Height of the bottom border |
◆ setBorders() [3/3]
void tgui::WidgetBorders::setBorders |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
|
inline |
Changes the size of the borders.
- Parameters
-
width | Width of the left and right borders |
height | Height of the top and bottom borders |
The documentation for this class was generated from the following file: