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

Rich text element base class. More...

#include <RichText.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 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.

Detailed Description

Rich text element base class.

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

Member Enumeration Documentation

◆ Type

enum class Type
strong

Rich element type.

Enumerator
TEXT 

RichElementText.

IMAGE 

RichElementImage.

CUSTOM 

RichElementCustomNode.

NEWLINE 

RichElementNewLine.

Member Function Documentation

◆ init()

bool init ( int tag,
const Color32 & color )

Initialize a rich element with different arguments.

Parameters
tagA integer tag value.
colorA color in
See also
Color32.
Returns
True if initialize success, false otherwise.

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