Axmol Engine 2.4.0-258ceca
|
Rich text element base class. More...
#include <UIRichText.h>
Inherits Object.
Inherited by RichElementCustomNode, RichElementImage, RichElementNewLine, and RichElementText.
Public Types | |
enum class | Type { TEXT , IMAGE , CUSTOM , NEWLINE } |
Rich element type. More... | |
Public Member Functions | |
bool | init (int tag, const Color3B &color, uint8_t opacity) |
Initialize a rich element with different arguments. | |
![]() | |
void | retain () |
Retains the ownership. | |
void | release () |
Releases the ownership immediately. | |
Object * | autorelease () |
Releases the ownership sometime soon automatically. | |
unsigned int | getReferenceCount () const |
Returns the Object's current reference count. | |
virtual | ~Object () |
Destructor. | |
Additional Inherited Members | |
![]() | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
Rich text element base class.
It defines the basic common properties for all rich text element.
|
strong |
bool init | ( | int | tag, |
const Color3B & | color, | ||
uint8_t | opacity ) |
Initialize a rich element with different arguments.
tag | A integer tag value. |
color | A color in |
Color3B
. opacity | A opacity value in GLubyte . |