cocos2d-x
3.3
|
#include <CCComponent.h>
Public Member Functions | |
virtual | ~Component (void) |
NA NA More... | |
virtual bool | init () |
virtual void | onEnter () |
virtual void | onExit () |
virtual void | update (float delta) |
virtual bool | serialize (void *r) |
virtual bool | isEnabled () const |
virtual void | setEnabled (bool b) |
const std::string & | getName () const |
void | setName (const std::string &name) |
void | setOwner (Node *pOwner) |
Node * | getOwner () const |
![]() | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
NA NA More... | |
Static Public Member Functions | |
static Component * | create (void) |
Protected Attributes | |
Node * | _owner |
std::string | _name |
bool | _enabled |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
Additional Inherited Members | |
![]() | |
Ref () | |
Constructor. More... | |
|
virtual |
NA NA
|
static |
const std::string& getName | ( | ) | const |
Node* getOwner | ( | ) | const |
|
virtual |
Reimplemented in ComAttribute, ComAudio, ComController, and LayoutComponent.
|
virtual |
Reimplemented in ComController, and ComAudio.
|
virtual |
Reimplemented in ComAudio, ComController, and ComRender.
|
virtual |
Reimplemented in ComAudio, ComController, and ComRender.
|
virtual |
Reimplemented in ComAudio, ComRender, and ComAttribute.
|
virtual |
Reimplemented in ComController, and ComAudio.
void setName | ( | const std::string & | name | ) |
void setOwner | ( | Node * | pOwner | ) |
|
virtual |
Reimplemented in ComController.
|
protected |
|
protected |
|
protected |