#include <button.h>
Inheritance diagram for Button:
Public Types | |
enum | STATE { UP = 0, DOWN = 1 } |
Button state identifiers. More... | |
enum | HITTESTRESULT { OUTSIDE, INSIDE, EDGE } |
Identifiers for hit test result. More... | |
Public Member Functions | |
Button (Object *pkParent, Button *pkObject=0, bool bCreateAreas=true) | |
virtual | ~Button () |
virtual const Coord & | SetSize (const Coord &rkSize) |
virtual bool | Render (NeoEngine::Frustum *pkFrustum=0, bool bForce=false) |
virtual BorderArea * | GetStateObject (STATE eState) |
virtual unsigned int | ProcessMsg (Msg *pkMsg) |
virtual Object * | Duplicate (Object *pkParent=0, Object *pkObject=0) |
virtual const Coord & | SetPosition (const Coord &rkPos) |
const Coord & | GetPosition () const |
const Coord & | GetWorldPosition () |
const Coord & | GetSize () const |
virtual void | SetName (const NeoEngine::HashString &rstrName) |
virtual const NeoEngine::HashString & | GetName () const |
virtual void | SetAttribute (const AttributeBase &rkAttribute) |
unsigned int | GetID () const |
virtual Object * | GetParent () |
virtual Object * | GetRoot () |
virtual Object * | GetObject (const std::string &rstrName) |
virtual const std::vector< Object * > & | GetChildObjects () const |
virtual void | AttachObject (Object *pkObject) |
virtual void | DetachObject (Object *pkObject) |
virtual void | AttachToObject (Object *pkParent) |
virtual void | AddHook (MsgHook *pkMsgHook) |
virtual void | RemoveHook (MsgHook *pkMsgHook) |
virtual void | Input (const NeoEngine::InputEvent *pkEvent) |
HITTESTRESULT | HitTest (const Coord &rkCoord) |
virtual void | Update (float fDeltaTime) |
Protected Member Functions | |
void | UpdateWorldCache (bool bRecurse=true) |
Protected Attributes | |
BorderArea * | m_pkState [2] |
STATE | m_eState |
unsigned int | m_uiID |
Object * | m_pkParent |
std::vector< Object * > | m_vpkChildren |
Coord | m_kPos |
Coord | m_kWorldPos |
Coord | m_kSize |
NeoEngine::HashString | m_strName |
std::vector< MsgHook * > | m_vpkMsgHook |
HITTESTRESULT | m_eLastMouse |
|
Button state identifiers.
|
|
Identifiers for hit test result.
|
|
|
|
|
|
Set size for both state children
Reimplemented from Object. |
|
Render object, recurses on children
Reimplemented from Object. |
|
|
|
Process message
Reimplemented from Object. |
|
Duplicate and/or copy this object
Reimplemented from Object. |
|
Update world cache position and recurse on children if flag set
|
|
Set position relative parent
|
|
|
|
|
|
|
|
|
|
|
|
Set an attribute
Reimplemented in TextArea. |
|
|
|
|
|
|
|
Search for a child object by name ("parent" for parent object, "root" for root object)
|
|
Get all child objects (no recursion)
|
|
Attach window object
|
|
Detach window object
|
|
Attach this object to new parent
|
|
Add a message hook object (hook object will be freed in dtor)
|
|
Remove a message hook object (you must now free the hook object yourself)
|
|
Process input
|
|
Test if coordinate is inside, on edge or outside object area
|
|
Update object
Reimplemented in EditBox. |
|
Button state objects |
|
Current state |
|
Unique ID |
|
Parent object |
|
Children |
|
Position relative parent |
|
World position |
|
Size |
|
Name |
|
Hooked message actions |
|
Result of last mouse hit test |