#include <inputdevice.h>

Public Types | |
| typedef std::list < ButtonListener * > | ButtonListenerList |
| A container of ButtonListeners. | |
Public Member Functions | |
| Button (InputDevice *owner, const std::string &description) | |
| Constructor. | |
| Button (InputDevice *owner, int symbole, const std::string &description) | |
| Constructor. | |
| bool | SetState (bool state) |
| Sets the state of this button. | |
| bool | GetState () const |
| Returns the current state of this button. | |
| int | GetSymbol () const |
| Returns the symbole of this button. | |
| void | AddButtonListener (ButtonListener *buttonListener) |
| Adds a button listener. | |
| void | RemoveButtonListener (ButtonListener *buttonListener) |
| Removes a button listener. | |
| void | InsertButtonListener (const ButtonListenerList::value_type &pos, ButtonListener *bl) |
| Inserts the listener into the list at a position BEFORE pos. | |
| const ButtonListenerList & | GetListeners () const |
Protected Member Functions | |
| virtual | ~Button () |
| typedef std::list<ButtonListener*> dtCore::Button::ButtonListenerList |
A container of ButtonListeners.
| dtCore::Button::Button | ( | InputDevice * | owner, | |
| const std::string & | description | |||
| ) |
Constructor.
| owner | the owner of this button | |
| description | a description of this button |
| dtCore::Button::Button | ( | InputDevice * | owner, | |
| int | symbole, | |||
| const std::string & | description | |||
| ) |
Constructor.
| owner | the owner of this button | |
| symbole | the symbole of this button | |
| description | a description of this button |
| virtual dtCore::Button::~Button | ( | ) | [inline, protected, virtual] |
| bool dtCore::Button::SetState | ( | bool | state | ) |
Sets the state of this button.
| state | the new state |
| bool dtCore::Button::GetState | ( | ) | const |
Returns the current state of this button.
| int dtCore::Button::GetSymbol | ( | ) | const |
Returns the symbole of this button.
| void dtCore::Button::AddButtonListener | ( | ButtonListener * | buttonListener | ) |
Adds a button listener.
| buttonListener | a pointer to the listener to add |
| void dtCore::Button::RemoveButtonListener | ( | ButtonListener * | buttonListener | ) |
Removes a button listener.
| buttonListener | a pointer to the listener to remove |
| void dtCore::Button::InsertButtonListener | ( | const ButtonListenerList::value_type & | pos, | |
| ButtonListener * | bl | |||
| ) |
Inserts the listener into the list at a position BEFORE pos.
| const ButtonListenerList& dtCore::Button::GetListeners | ( | ) | const [inline] |