#include <borderarea.h>
Inheritance diagram for BorderArea:
Public Types | |
enum | BORDERAREA |
Defines for the available areas. | |
enum | HITTESTRESULT { OUTSIDE, INSIDE, EDGE } |
Identifiers for hit test result. More... | |
Public Member Functions | |
BorderArea (Object *pkParent, Area *pkCenter=0, BorderArea *pkObject=0, bool bCreateAreas=true) | |
virtual | ~BorderArea () |
virtual bool | Render (NeoEngine::Frustum *pkFrustum=0, bool bForce=false) |
virtual const Coord & | SetSize (const Coord &rkSize) |
virtual void | SetMaterial (const NeoEngine::MaterialPtr &pkMat) |
virtual Area * | GetArea (BORDERAREA eArea) |
virtual void | RecalcAreas () |
virtual void | SetCenterArea (Area *pkCenter) |
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 unsigned int | ProcessMsg (Msg *pkMsg) |
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 | |
NeoEngine::MaterialPtr | m_pkMaterial |
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 |
|
Identifiers for hit test result.
|
|
|
|
|
|
Render object, recurses on children
Reimplemented from Object. Reimplemented in EditBox. |
|
Set size and recalculate areas
Reimplemented from Object. |
|
Set material
|
|
|
|
Recalculate position and sizes of subobjects. Call this method if you manually change size of position of any subobject. Corners and borders positions and sizes are determined from the sizes of the topleft and bottomright corners. |
|
Set center area object. This will delete previous area object
|
|
Duplicate and/or copy this object
Reimplemented from Object. Reimplemented in EditBox. |
|
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
|
|
Process message
|
|
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. |
|
Material for corners and borders |
|
Unique ID |
|
Parent object |
|
Children |
|
Position relative parent |
|
World position |
|
Size |
|
Name |
|
Hooked message actions |
|
Result of last mouse hit test |