TGUI  0.7.8
tgui::WidgetBorders Class Reference

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

#include <TGUI/Borders.hpp>

Inheritance diagram for tgui::WidgetBorders:
tgui::ButtonRenderer tgui::ChatBoxRenderer tgui::ChildWindowRenderer tgui::ComboBoxRenderer tgui::EditBoxRenderer tgui::KnobRenderer tgui::LabelRenderer tgui::ListBoxRenderer tgui::PanelRenderer tgui::ProgressBarRenderer tgui::SliderRenderer tgui::SpinButtonRenderer tgui::TabRenderer tgui::TextBoxRenderer

Public Member Functions

virtual void setBorders (const Borders &borders)
 Changes the size of the borders. More...
 
void setBorders (float leftBorder, float topBorder, float rightBorder, float bottomBorder)
 Changes the size of the borders. More...
 
void setBorders (float width, float height)
 Changes the size of the borders. More...
 
virtual Borders getBorders () const
 Returns the size of the borders as a tgui::Borders. More...
 

Detailed Description

Parent class for every widget that has borders.

Member Function Documentation

◆ 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

Changes the size of the borders.

Parameters
bordersSize of the borders

Reimplemented in tgui::ChildWindowRenderer, tgui::ComboBoxRenderer, tgui::ChildWindowRenderer, and tgui::ComboBoxRenderer.

◆ setBorders() [2/3]

void tgui::WidgetBorders::setBorders ( float  leftBorder,
float  topBorder,
float  rightBorder,
float  bottomBorder 
)
inline

Changes the size of the borders.

Parameters
leftBorderWidth of the left border
topBorderHeight of the top border
rightBorderWidth of the right border
bottomBorderHeight of the bottom border

◆ setBorders() [3/3]

void tgui::WidgetBorders::setBorders ( float  width,
float  height 
)
inline

Changes the size of the borders.

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

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