|
|
LibN2L-4 Library Code Reference
Classes
Compounds
Files
Members
Method Index
Full Reference
n2l::cGuiButton Class ReferenceA simple textured push button which supports different visualizations for different states, and a textured text label.
More...
#include <cGuiButton.h>
Inheritance diagram for n2l::cGuiButton:
[legend]Collaboration diagram for n2l::cGuiButton:
[legend]List of all members.Public Types
Public Member Functions
Protected Member Functions
Protected Attributes
Friends
Detailed Description
A simple textured push button which supports different visualizations for different states, and a textured text label.
Definition at line 46 of file cGuiButton.h.
Member Enumeration Documentation
|
|
- Enumerator:
-
| Button_Normal |
|
| Button_Over |
|
| Button_Down |
|
| Button_NormalDisabled |
|
| Button_OverDisabled |
|
| Button_DownDisabled |
|
| Button_NumStates |
|
Definition at line 49 of file cGuiButton.h. |
|
|
- Enumerator:
-
| Prop_Background |
|
| Prop_NumProps |
|
Definition at line 61 of file cGuiButton.h. |
|
|
- Enumerator:
-
| Type_Push |
|
| Type_Toggle |
|
| Type_NumTypes |
|
Definition at line 67 of file cGuiButton.h. |
Constructor & Destructor Documentation
| n2l::cGuiButton::cGuiButton |
( |
|
) |
|
|
| n2l::cGuiButton::cGuiButton |
( |
const cDynVar & |
iDefinition |
) |
|
|
| n2l::cGuiButton::~cGuiButton |
( |
|
) |
[virtual] |
|
Member Function Documentation
| void n2l::cGuiButton::addExtraClickedData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiButton::addExtraOutData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiButton::addExtraOverData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiButton::clearAccel |
( |
|
) |
[virtual] |
|
| void n2l::cGuiButton::cloneInto |
( |
const cAutoPtr< cGuiButton > & |
i_ioElement |
) |
const [protected, virtual] |
|
|
|
Definition at line 321 of file cGuiButton.cpp.
References Button_Normal, Button_NumStates, n2l::cGuiInteractive::cloneInto(), enabled(), mFills, mKey, mKeyMod, mLabel, mLabelStyle, mSounds, mUseAccel, n2l::cGuiElement::prop(), Prop_Background, Prop_NumProps, toggledOn(), and type().
Referenced by clone(). |
| void n2l::cGuiButton::draw |
( |
|
) |
const [virtual] |
|
|
|
Draw ourselves on the screen.
- Note:
- This method does not set the projection matrix.
Reimplemented from n2l::cGuiElement.
Definition at line 156 of file cGuiButton.cpp.
References Button_Down, Button_DownDisabled, Button_Normal, Button_NormalDisabled, Button_Over, Button_OverDisabled, n2l::cGuiTextStyle::draw(), n2l::cGuiFill::draw(), n2l::cString::empty(), n2l::cGuiElement::innerPos(), n2l::cGuiElement::innerSize(), n2l::cGuiInteractive::isDown(), n2l::cGuiInteractive::isOver(), mEnabled, mFills, mLabel, mLabelStyle, mToggledOn, mType, n2l::cGuiElement::outerPos(), n2l::cGuiElement::outerSize(), Prop_Background, Type_Push, and Type_Toggle. |
| const tBool n2l::cGuiButton::enabled |
( |
|
) |
const [virtual] |
|
| void n2l::cGuiButton::enabled |
( |
const tBool |
iEnabled |
) |
[virtual] |
|
| const tString & n2l::cGuiButton::label |
( |
|
) |
const [virtual] |
|
| void n2l::cGuiButton::label |
( |
const tString & |
iLabel |
) |
[virtual] |
|
| void n2l::cGuiButton::load |
( |
const cDynVar & |
iDefinition |
) |
[virtual] |
|
|
|
Load this elements properties from the provided definition.
Reimplemented from n2l::cGuiInteractive.
Definition at line 78 of file cGuiButton.cpp.
References audio(), Button_Normal, Button_NumStates, enabled(), fill(), n2l::Key_Unknown, n2l::KMod_Alt, n2l::KMod_Ctrl, n2l::KMod_Meta, n2l::KMod_None, n2l::KMod_Shift, label(), labelStyle(), n2l::cGuiInteractive::load(), n2l::cEventTypeLookups::lookupTypeByName(), Prop_Background, setAccel(), toggledOn(), and type(). |
| void n2l::cGuiButton::setAccel |
( |
const tKey & |
iKey, |
|
|
const tKeyMods & |
iMods |
|
) |
[virtual] |
|
| const tBool n2l::cGuiButton::toggledOn |
( |
|
) |
const [virtual] |
|
| void n2l::cGuiButton::toggledOn |
( |
const tBool |
iToggled |
) |
[virtual] |
|
| void n2l::cGuiButton::type |
( |
const tType |
iType |
) |
[virtual] |
|
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files:
|