My Project
|
N stage animation element 0—(n-1): the mask of the stages. More...
#include <GUIHighlight.h>
Public Member Functions | |
virtual bool | SetParameter (const char *szName, const char *szValue) |
Set effect parameter. More... | |
virtual HRESULT | Render (GUIState *pGUIState, RECT &rcScreen, float fElapsedTime) |
Render the Highlight effect. More... | |
virtual const char * | GetHighlightName () const |
virtual void | Clone (IObject *obj) const |
Clone the object's contains to a pointer. More... | |
virtual IObject * | Clone () const |
Clone the object's contains and return a pointer to the newly created object. More... | |
![]() | |
virtual int | GetHighlightStyle () const |
![]() | |
virtual bool | Equals (const IObject *obj) const |
Compare the object with another object. More... | |
virtual const IType * | GetType () const |
virtual std::string | ToString () const |
WeakPtr_type & | GetWeakReference () |
get weak reference object. More... | |
virtual int | ProcessObjectEvent (const ObjectEvent &event) |
this function is only used to backward compatibility of ParaObject:AddEvent() function. More... | |
![]() | |
void | addref () const |
add reference count of the object. More... | |
bool | delref () const |
decrease reference count of the object. More... | |
int | GetRefCount () const |
get the reference count | |
virtual int | Release () |
CRefCounted * | AddToAutoReleasePool () |
addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More... | |
Protected Member Functions | |
virtual void | Init () |
Protected Attributes | |
int | m_nNumStage |
int | m_nCurStage |
float | m_fSpeed |
float | m_fTime |
![]() | |
bool | m_bInit |
CGUIResource * | m_objResource |
int | m_eStyle |
![]() | |
WeakPtr_type | m_weak_reference |
![]() | |
int | m_refcount |
Additional Inherited Members | |
![]() | |
typedef ParaEngine::weak_ptr< IObject > | WeakPtr_type |
N stage animation element 0—(n-1): the mask of the stages.
|
virtual |
Clone the object's contains to a pointer.
The caller should allocate the memory and pass the pointer to this function.. Inheritance should implement this function void Clone(IObject*) and IObject* Clone() should have the same behavior In some cases, if you want to avoid Dead Reference( one object is being referred to by many objects and you can't update all the references). It is possible to use this function to replace the contains at a given pointer. But this may result in memory leak if you do not implement this function carefully or misuse it.
Reimplemented from ParaEngine::IObject.
|
virtual |
Clone the object's contains and return a pointer to the newly created object.
The caller should free the memory of the return object. Inheritance should implement this function void Clone(IObject*) and IObject* Clone() should have the same behavior
Reimplemented from ParaEngine::IObject.
|
virtual |
Render the Highlight effect.
If the effect is not properly initialize, it will call Init() to initialize it
pGUIState | the same meaning as other GUI object |
rcScreen | the edge rectangle of the control we want to highlight |
fElapsedTime | the same meaning as other GUI object. |
Implements ParaEngine::CGUIHighlight.
|
virtual |
Set effect parameter.
the value will be properly translated to correct type.
szName | name of the parameter |
szValue | new value of the parameter |
Implements ParaEngine::CGUIHighlight.