|
|
LibN2L-4 Library Code Reference
Classes
Compounds
Files
Members
Method Index
Full Reference
n2l::cGuiSButton Class ReferenceA simple textured push button which supports different visualizations for different states, and a textured text label.
More...
#include <cGuiSButton.h>
Inheritance diagram for n2l::cGuiSButton:
[legend]Collaboration diagram for n2l::cGuiSButton:
[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 cGuiSButton.h.
Member Enumeration Documentation
|
|
- Enumerator:
-
| Type_Push |
|
| Type_Toggle |
|
| Type_NumTypes |
|
Definition at line 49 of file cGuiSButton.h. |
Constructor & Destructor Documentation
| n2l::cGuiSButton::cGuiSButton |
( |
|
) |
|
|
| n2l::cGuiSButton::cGuiSButton |
( |
const cDynVar & |
iDef |
) |
|
|
| n2l::cGuiSButton::~cGuiSButton |
( |
|
) |
[virtual] |
|
Member Function Documentation
| void n2l::cGuiSButton::addExtraClickedData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiSButton::addExtraDisabledData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiSButton::addExtraOutData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiSButton::addExtraOverData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiSButton::addExtraPressedData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiSButton::addExtraReleasedData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiSButton::clearAccel |
( |
|
) |
[virtual] |
|
| void n2l::cGuiSButton::cloneInto |
( |
const cAutoPtr< cGuiSButton > & |
ioElement |
) |
const [protected, virtual] |
|
| void n2l::cGuiSButton::draw |
( |
|
) |
const [virtual] |
|
| const tBool n2l::cGuiSButton::enabled |
( |
|
) |
const [virtual] |
|
| void n2l::cGuiSButton::enabled |
( |
const tBool |
iEnabled |
) |
[virtual] |
|
| const cGuiFill & n2l::cGuiSButton::fill |
( |
|
) |
const [virtual] |
|
| void n2l::cGuiSButton::fill |
( |
const cGuiFill & |
iFill |
) |
[virtual] |
|
| const tString & n2l::cGuiSButton::label |
( |
|
) |
const [virtual] |
|
| void n2l::cGuiSButton::label |
( |
const tString & |
iLabel |
) |
[virtual] |
|
| void n2l::cGuiSButton::load |
( |
const cDynVar & |
iDef |
) |
[virtual] |
|
|
|
Load this elements properties from the provided definition.
Reimplemented from n2l::cGuiInteractive.
Definition at line 79 of file cGuiSButton.cpp.
References enabled(), fill(), n2l::cDynVar::isArray(), n2l::Key_Unknown, n2l::KMod_Alt, n2l::KMod_Ctrl, n2l::KMod_Meta, n2l::KMod_None, n2l::KMod_Shift, label(), n2l::cGuiInteractive::load(), n2l::cEventTypeLookups::lookupTypeByName(), setAccel(), textStyle(), toggledOn(), and type(). |
| const cDynVar n2l::cGuiSButton::prop |
( |
const tString & |
iName, |
|
|
const tString & |
iInnerKey = "" |
|
) |
const [virtual] |
|
| void n2l::cGuiSButton::prop |
( |
const tString & |
iName, |
|
|
const cDynVar & |
iVal, |
|
|
const tString & |
iInnerKey = "" |
|
) |
[virtual] |
|
|
|
Set a property by name.
Which properites are supported and the format for each set is renegotiated as required. - Note:
- Each derived class needs to reimplement this method to support its own properties. Parent classes should be called AFTER the derived class checks, not before which is opposite to most similar classes.
Reimplemented from n2l::cGuiElement.
Definition at line 252 of file cGuiSButton.cpp.
References n2l::cString::empty(), fill(), n2l::cDynVar::isArray(), label(), mFill, mTextStyle, n2l::cGuiElement::prop(), n2l::cGuiTextStyle::prop(), n2l::cGuiFill::prop(), and textStyle(). |
| void n2l::cGuiSButton::setAccel |
( |
const tKey & |
iKey, |
|
|
const tKeyMods & |
iMods |
|
) |
[virtual] |
|
| const cGuiTextStyle & n2l::cGuiSButton::textStyle |
( |
|
) |
const [virtual] |
|
| void n2l::cGuiSButton::textStyle |
( |
const cGuiTextStyle & |
iStyle |
) |
[virtual] |
|
| const tBool n2l::cGuiSButton::toggledOn |
( |
|
) |
const [virtual] |
|
| void n2l::cGuiSButton::toggledOn |
( |
const tBool |
iToggled |
) |
[virtual] |
|
| void n2l::cGuiSButton::type |
( |
const tType |
iType |
) |
[virtual] |
|
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files:
|