Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
RichElementCustomNode Class Reference

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

#include <RichText.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.
uint64_t getObjectID () const noexcept
 Returns the process-local diagnostic identifier assigned at construction.
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...

Detailed Description

Rich element for displaying custom node type.

Constructor & Destructor Documentation

◆ RichElementCustomNode()

RichElementCustomNode ( )
inline

Default constructor.

@lua new

◆ ~RichElementCustomNode()

~RichElementCustomNode ( )
inlineoverride

Default destructor.

@lua NA

Member Function Documentation

◆ init()

bool init ( int tag,
const Color32 & color,
Node * customNode,
std::string_view id = ""sv )

Initialize a RichElementCustomNode with various arguments.

Parameters
tagA integer tag value.
colorA color in Color32.
customNodeA custom node pointer.
idID of element
Returns
True if initialize success, false otherwise.

◆ create()

RichElementCustomNode * create ( int tag,
const Color32 & color,
Node * customNode,
std::string_view id = ""sv )
static

Create a RichElementCustomNode with various arguments.

Parameters
tagA integer tag value.
colorA color in Color32.
customNodeA custom node pointer.
idID of element
Returns
A RichElementCustomNode instance.

The documentation for this class was generated from the following file:
  • RichText.h