TGUI  0.7.8
tgui::WidgetPadding Class Reference

Parent class for every widget that has padding. More...

#include <TGUI/Borders.hpp>

Inheritance diagram for tgui::WidgetPadding:
tgui::ChatBoxRenderer tgui::ComboBoxRenderer tgui::EditBoxRenderer tgui::LabelRenderer tgui::ListBoxRenderer tgui::RadioButtonRenderer tgui::TextBoxRenderer tgui::CheckBoxRenderer

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...
 

Detailed Description

Parent class for every widget that has padding.

Member Function Documentation

◆ getPadding()

virtual Padding tgui::WidgetPadding::getPadding ( ) const
inlinevirtual

Returns the size of the padding.

Returns
padding sizes

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.

◆ setPadding() [1/3]

virtual void tgui::WidgetPadding::setPadding ( const Padding padding)
inlinevirtual

◆ setPadding() [2/3]

void tgui::WidgetPadding::setPadding ( float  leftPadding,
float  topPadding,
float  rightPadding,
float  bottomPadding 
)
inline

Changes the size of the padding.

Parameters
leftPaddingWidth of the left padding
topPaddingHeight of the top padding
rightPaddingWidth of the right padding
bottomPaddingHeight of the bottom padding

◆ setPadding() [3/3]

void tgui::WidgetPadding::setPadding ( float  width,
float  height 
)
inline

Changes the size of the padding.

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

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