⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
Rich element for displaying custom node type. More...
#include <UIRichText.h>
Inherits RichElement.
Public Member Functions | |
| RichElementCustomNode () | |
| Default constructor. | |
| ~RichElementCustomNode () override | |
| Default destructor. | |
| bool | init (int tag, const Color32 &color, Node *customNode, std::string_view id=""sv) |
| Initialize a RichElementCustomNode with various arguments. | |
| Public Member Functions inherited from RichElement | |
| bool | init (int tag, const Color32 &color) |
| Initialize a rich element with different arguments. | |
| Public Member Functions inherited from Object | |
| 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. | |
Static Public Member Functions | |
| static RichElementCustomNode * | create (int tag, const Color32 &color, Node *customNode, std::string_view id=""sv) |
| Create a RichElementCustomNode with various arguments. | |
Additional Inherited Members | |
| Public Types inherited from RichElement | |
| enum class | Type { TEXT , IMAGE , CUSTOM , NEWLINE } |
| Rich element type. More... | |
| Public Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
Rich element for displaying custom node type.
|
inline |
Default constructor.
@lua new
|
inlineoverride |
Default destructor.
@lua NA
Initialize a RichElementCustomNode with various arguments.
| tag | A integer tag value. |
| color | A color in Color32. |
| customNode | A custom node pointer. |
| id | ID of element |
|
static |
Create a RichElementCustomNode with various arguments.
| tag | A integer tag value. |
| color | A color in Color32. |
| customNode | A custom node pointer. |
| id | ID of element |