Axmol Engine 2.4.0-258ceca
|
Rich element for new line. More...
#include <UIRichText.h>
Inherits RichElement.
Public Member Functions | |
RichElementNewLine (int quantity=1) | |
Default constructor. | |
~RichElementNewLine () override=default | |
Default destructor. | |
![]() | |
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. | |
Static Public Member Functions | |
static RichElementNewLine * | create (int tag, const Color3B &color, uint8_t opacity) |
Create a RichElementNewLine with various arguments. | |
static RichElementNewLine * | create (int tag, int quantity, const Color3B &color, uint8_t opacity) |
Create a RichElementNewLine with various arguments. | |
Additional Inherited Members | |
![]() | |
enum class | Type { TEXT , IMAGE , CUSTOM , NEWLINE } |
Rich element type. More... | |
![]() | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
Rich element for new line.
|
inline |
Default constructor.
@js ctor @lua new
|
overridedefault |
Default destructor.
@js NA @lua NA
|
static |
Create a RichElementNewLine with various arguments.
tag | A integer tag value. |
color | A color in Color3B. |
opacity | A opacity in GLubyte. |
|
static |
Create a RichElementNewLine with various arguments.
tag | A integer tag value. |
quantity | Number of new lines to add |
color | A color in Color3B. |
opacity | A opacity in GLubyte. |