List of all members.
Detailed Description
A Button object derived from base class Control.
The Button class provides all basic functions of a button.
The Button should respond to all relevant input events coming downstream and send the appropriate response back upstream.
- Todo:
- Finish implementing broadcasting of events both upstream and downstream so that the button can respond appropriately.
Constructor & Destructor Documentation
| Button::Button |
( |
const std::string & |
caption, |
|
|
const std::string & |
name, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | |
| Button::Button |
( |
Image * |
image, |
|
|
const std::string & |
name, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | |
Member Function Documentation
| void Button::drawPlain |
( |
|
) |
[private, virtual] |
| void Button::drawSkin |
( |
|
) |
[private, virtual] |
Draws a button skinned.
- Todo:
- This method only supports type
SkinPartType::PART_ENNEAD. This should also support SkinPartType::PART_TRIAD.
Reimplemented from Control.
Reimplemented in CloseButton.
| void Button::drawText |
( |
|
) |
[private] |
| void Button::initialize |
( |
|
) |
[private, virtual] |
| void Button::logic |
( |
|
) |
[private, virtual] |
| void Button::onClick |
( |
Event * |
event |
) |
[private, virtual] |
Button's onClick handler.
Notifies a click Listener and pushes a Click event to it.
- Warning:
- The event pushed into the click Listener is owned by the Button and as such is destroyed by Button. Do not store a direct pointer to the Event.
Reimplemented from Control.
Reimplemented in CloseButton.
| void Button::onEnabled |
( |
|
) |
[private, virtual] |
Called whenever a Control's setEnabled() function is called.
Reimplemented from Control.
| void Button::onMouseButtonUp |
( |
Event * |
event |
) |
[private, virtual] |
| void Button::onPressed |
( |
Event * |
event |
) |
[private, virtual] |
| void Button::setDrawValues |
( |
|
) |
[private] |
Member Data Documentation
Actual area that text can be drawn in with side graphics accounted for.
Center offset taking into account the clamped width area.
The documentation for this class was generated from the following files:
- C:/Development/LoM/client/src/Gui/Controls/Button.h
- C:/Development/LoM/client/src/Gui/Controls/Button.cpp