TGUI  v0.5.2
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Public Member Functions | List of all members
tgui::OBJECT_BORDERS Struct Referenceabstract

Parent struct for every object that has borders. More...

#include <Objects.hpp>

Inheritance diagram for tgui::OBJECT_BORDERS:
tgui::ChatBox tgui::ChildWindow tgui::ComboBox tgui::EditBox tgui::ListBox tgui::TextBox

Public Member Functions

 OBJECT_BORDERS ()
 Default constructor. 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 Vector4u getBorders () const
 Returns the size of the borders as a tgui::Vector4u. More...
 

Detailed Description

Parent struct for every object that has borders.

Constructor & Destructor Documentation

tgui::OBJECT_BORDERS::OBJECT_BORDERS ( )

Default constructor.

Member Function Documentation

virtual Vector4u tgui::OBJECT_BORDERS::getBorders ( ) const
virtual

Returns the size of the borders as a tgui::Vector4u.

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.

virtual void tgui::OBJECT_BORDERS::setBorders ( unsigned int  leftBorder = 0,
unsigned int  topBorder = 0,
unsigned int  rightBorder = 0,
unsigned int  bottomBorder = 0 
)
pure virtual

Changes the size of the borders.

Implemented in tgui::ListBox, tgui::EditBox, tgui::ComboBox, tgui::ChatBox, tgui::TextBox, and tgui::ChildWindow.


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