|
Axmol 3.0.0-89d6d9a
|
Rich element for displaying images. More...
#include <RichText.h>
Inherits RichElement.
Public Member Functions | |
| RichElementImage () | |
| Default constructor. | |
| bool | init (int tag, const Color32 &color, std::string_view filePath, std::string_view url="", Widget::TextureResType texType=Widget::TextureResType::LOCAL, std::string_view id=""sv) |
| Initialize a RichElementImage 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 RichElementImage * | create (int tag, const Color32 &color, std::string_view filePath, std::string_view url="", Widget::TextureResType texType=Widget::TextureResType::LOCAL, std::string_view id=""sv) |
| Create a RichElementImage with various arguments. | |
Additional Inherited Members | |
| Public Types inherited from RichElement | |
| enum class | Type { TEXT , IMAGE , CUSTOM , NEWLINE } |
| Rich element type. More... | |
Rich element for displaying images.
|
inline |
Default constructor.
@lua new
| bool init | ( | int | tag, |
| const Color32 & | color, | ||
| std::string_view | filePath, | ||
| std::string_view | url = "", | ||
| Widget::TextureResType | texType = Widget::TextureResType::LOCAL, | ||
| std::string_view | id = ""sv ) |
Initialize a RichElementImage with various arguments.
| tag | A integer tag value. |
| color | A color in Color32. |
| filePath | A image file name. |
| url | uniform resource locator |
| texType | texture type, may be a valid file path, or a sprite frame name |
| id | ID of element |
|
static |
Create a RichElementImage with various arguments.
| tag | A integer tag value. |
| color | A color in Color32. |
| filePath | A image file name. |
| url | uniform resource locator |
| texType | texture type, may be a valid file path, or a sprite frame name |
| id | ID of element |