TGUI
v0.6.10
|
Parent class for every widget that has borders. More...
#include <Widget.hpp>
Public Member Functions | |
WidgetBorders () | |
Default constructor. More... | |
virtual | ~WidgetBorders () |
Destructor. More... | |
virtual void | setBorders (unsigned int leftBorder=0, unsigned int topBorder=0, unsigned int rightBorder=0, unsigned int bottomBorder=0)=0 |
Changes the size of the borders. More... | |
virtual Borders | getBorders () const |
Returns the size of the borders as a tgui::Borders. More... | |
Parent class for every widget that has borders.
tgui::WidgetBorders::WidgetBorders | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
virtual |
Returns the size of the borders as a tgui::Borders.
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.
|
pure virtual |
Changes the size of the borders.
leftBorder | Size of the left border |
topBorder | Size of the top border |
rightBorder | Size of the right border |
bottomBorder | Size of the bottom border |
Implemented in tgui::ListBox, tgui::ChatBox, tgui::ComboBox, tgui::ChildWindow, tgui::EditBox, and tgui::TextBox.