TGUI
0.7.8
|
Parent class for every widget that has padding. More...
#include <TGUI/Borders.hpp>
Public Member Functions | |
virtual void | setPadding (const Padding &padding) |
Changes the size of the padding. More... | |
void | setPadding (float leftPadding, float topPadding, float rightPadding, float bottomPadding) |
Changes the size of the padding. More... | |
void | setPadding (float width, float height) |
Changes the size of the padding. More... | |
virtual Padding | getPadding () const |
Returns the size of the padding. More... | |
Parent class for every widget that has padding.
|
inlinevirtual |
Returns the size of the padding.
The first element will be the size of the left padding, the seconds is the size of the top padding, the third is the size of the right padding and the the last constains the size of the bottom padding.
|
inlinevirtual |
Changes the size of the padding.
padding | Size of the padding |
Reimplemented in tgui::ChatBoxRenderer, tgui::ComboBoxRenderer, tgui::EditBoxRenderer, tgui::LabelRenderer, tgui::ListBoxRenderer, tgui::TextBoxRenderer, tgui::ChatBoxRenderer, tgui::ComboBoxRenderer, tgui::EditBoxRenderer, tgui::LabelRenderer, tgui::ListBoxRenderer, and tgui::TextBoxRenderer.
|
inline |
Changes the size of the padding.
leftPadding | Width of the left padding |
topPadding | Height of the top padding |
rightPadding | Width of the right padding |
bottomPadding | Height of the bottom padding |
|
inline |
Changes the size of the padding.
width | Width of the left and right padding |
height | Height of the top and bottom padding |