public

Inheritance Graph

graph BT
	Button
	Button --> Container
	click Button "classGUI_1_1Button"
	click Container "classGUI_1_1Container"

Description

Public Static Attributes

   
   
const flag_t FLAT_BUTTON

Protected Attributes

   
   
Util::WeakPointer < Label > textLabel
   
bool switchedOn
   
HandleActionFun actionListener
   
KeyListener keyListener
   
MouseButtonListener mouseButtonListener
   
MouseClickListener mouseClickListener

Public Functions

   
   
  Button( GUI_Manager & gui, flag_t flags)
   
  ~Button()
   
void setText(const std::string & text)
   
std::string getText() const
   
bool isSwitchedOn() const
   
void setSwitch(bool b)
   
void setFont( AbstractFont * newFont)
   
void setActionListener( HandleActionFun fun)
   
void setTextStyle(unsigned int style)
   
void setColor(const Util::Color4ub & newColor)
   
void action()

Documentation

variable
GUI::Button::FLAT_BUTTON

public static
 
 
const flag_t FLAT_BUTTON

Defined in GUI/Components/Button.h:26


variable
GUI::Button::textLabel

protected
 
 
Util::WeakPointer < Label > textLabel

Defined in GUI/Components/Button.h:52


variable
GUI::Button::switchedOn

protected
 
 
bool switchedOn

Defined in GUI/Components/Button.h:53


variable
GUI::Button::actionListener

protected
 
 
HandleActionFun actionListener

Defined in GUI/Components/Button.h:54


variable
GUI::Button::keyListener

protected
 
 
KeyListener keyListener

Defined in GUI/Components/Button.h:55


variable
GUI::Button::mouseButtonListener

protected
 
 
MouseButtonListener mouseButtonListener

Defined in GUI/Components/Button.h:56


variable
GUI::Button::mouseClickListener

protected
 
 
MouseClickListener mouseClickListener

Defined in GUI/Components/Button.h:57


function
GUI::Button::Button

public
     
     
Button( GUI_Manager & gui,
  flag_t flags
)    

Defined in GUI/Components/Button.h:28


function
GUI::Button::~Button

public virtual
   
   
~Button( )

Defined in GUI/Components/Button.h:29


function
GUI::Button::setText

public
     
     
void setText( const std::string & text )

Defined in GUI/Components/Button.h:31


function
GUI::Button::getText

public const
   
   
std::string getText( ) const

Defined in GUI/Components/Button.h:32


function
GUI::Button::isSwitchedOn

public const inline
   
   
bool isSwitchedOn( ) const

Defined in GUI/Components/Button.h:34


function
GUI::Button::setSwitch

public inline
     
     
void setSwitch( bool b )

Defined in GUI/Components/Button.h:35


function
GUI::Button::setFont

public inline
     
     
void setFont( AbstractFont * newFont )

Defined in GUI/Components/Button.h:36


function
GUI::Button::setActionListener

public inline
     
     
void setActionListener( HandleActionFun fun )

Defined in GUI/Components/Button.h:37


function
GUI::Button::setTextStyle

public inline
     
     
void setTextStyle( unsigned int style )

Defined in GUI/Components/Button.h:38


function
GUI::Button::setColor

public
     
     
void setColor( const Util::Color4ub & newColor )

Defined in GUI/Components/Button.h:39


function
GUI::Button::action

public virtual
   
   
void action( )

Defined in GUI/Components/Button.h:42