Cocos2d-x  4.0.0
Public Member Functions | Static Public Member Functions | List of all members
RichElementCustomNode Class Reference

Rich element for displaying custom node type. More...

Inherits RichElement.

Public Member Functions

 RichElementCustomNode ()
 Default constructor.
 
virtual ~RichElementCustomNode ()
 Default destructor.
 
bool init (int tag, const Color3B &color, uint8_t opacity, Node *customNode)
 Initialize a RichElementCustomNode with various arguments.
 
- Public Member Functions inherited from RichElement
 RichElement ()
 Default constructor.
 
virtual ~RichElement ()
 Default destructor.
 
bool init (int tag, const Color3B &color, uint8_t opacity)
 Initialize a rich element with different arguments.
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership.
 
void release ()
 Releases the ownership immediately.
 
Refautorelease ()
 Releases the ownership sometime soon automatically.
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count.
 
virtual ~Ref ()
 Destructor.
 

Static Public Member Functions

static RichElementCustomNodecreate (int tag, const Color3B &color, uint8_t opacity, Node *customNode)
 Create a RichElementCustomNode with various arguments.
 

Additional Inherited Members

- Public Types inherited from RichElement
enum  Type { TEXT, IMAGE, CUSTOM, NEWLINE }
 Rich element type. More...
 
- Public Attributes inherited from Ref
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 
void * _scriptObject
 scriptObject, support for swift
 
bool _rooted
 When true, it means that the object was already rooted.
 

Detailed Description

Rich element for displaying custom node type.

Constructor & Destructor Documentation

Default constructor.

ctor new

virtual ~RichElementCustomNode ( )
inlinevirtual

Default destructor.

NA NA

Member Function Documentation

bool init ( int  tag,
const Color3B color,
uint8_t  opacity,
Node customNode 
)

Initialize a RichElementCustomNode with various arguments.

Parameters
tagA integer tag value.
colorA color in Color3B.
opacityA opacity in GLubyte.
customNodeA custom node pointer.
Returns
True if initialize success, false otherwise.
static RichElementCustomNode* create ( int  tag,
const Color3B color,
uint8_t  opacity,
Node customNode 
)
static

Create a RichElementCustomNode with various arguments.

Parameters
tagA integer tag value.
colorA color in Color3B.
opacityA opacity in GLubyte.
customNodeA custom node pointer.
Returns
A RichElementCustomNode instance.

The documentation for this class was generated from the following file: