Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
RichElement Class Reference

Rich text element base class. More...

Inherits Ref.

Inherited by RichElementCustomNode, RichElementImage, RichElementNewLine, and RichElementText.

Public Types

enum  Type
 Rich element type.
 

Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from Ref
unsigned int _ID
 object id, ScriptSupport need public _ID
 
local _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 
local _luaID
 Lua reference id.
 
void * _scriptObject
 scriptObject, support for swift
 
local _scriptObject
 scriptObject, support for swift
 
bool _rooted
 When true, it means that the object was already rooted.
 
local _rooted
 When true, it means that the object was already rooted.
 
bool _scriptOwned
 The life of the object is scrolled by the scripting engine. More...
 
local _scriptOwned
 The life of the object is scrolled by the scripting engine. More...
 

Detailed Description

Rich text element base class.

It defines the basic common properties for all rich text element.

Member Function Documentation

bool init ( int  tag,
const Color3B color,
GLubyte  opacity 
)

Initialize a rich element with different arguments.

A integer tag value. A color in

See also
Color3B. A opacity value in GLubyte. True if initialize success, false otherwise.
var init ( var  tag,
var  color,
var  opacity 
)

Initialize a rich element with different arguments.

A integer tag value. A color in

See also
Color3B. A opacity value in GLubyte. True if initialize success, false otherwise.
local init ( local  tag,
local  color,
local  opacity 
)

Initialize a rich element with different arguments.

A integer tag value. A color in

See also
Color3B. A opacity value in GLubyte. True if initialize success, false otherwise.

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