|
| Label (const std::string &text) |
| Constructs a Label object.
|
|
| Label (const std::string &text, const Properties &properties) |
| Constructs a Label object with properties.
|
|
| ~Label (void) override=default |
| Destroys the Label object.
|
|
const std::string & | getText (void) const |
| Gets the label's text.
|
|
void | setText (const std::string &text) |
| Sets the label's text.
|
|
std::shared_ptr< Component > | render (void) override |
| Renders the label.
|
|
void | onEvent (const Event &event) override |
| Handles events for the label.
|
|
| Component (void) |
| Constructs a Component object.
|
|
| Component (const Properties &properties) |
| Constructs a Component object with properties.
|
|
virtual | ~Component (void)=default |
| Destroy the Component object.
|
|
ComponentID | getID (void) const |
| Get the ID object.
|
|
virtual void | addChild (const std::shared_ptr< Component > &child) |
| Add a child component.
|
|
virtual void | addPrimitive (const std::shared_ptr< Primitive > &primitive) |
| Add a primitive for rendering.
|
|
State & | getState (void) |
| Gets the component's state.
|
|
const Properties & | getProperties (void) const |
| Gets the component's properties.
|
|
const std::vector< std::shared_ptr< Component > > & | getChildren (void) const |
| Gets the component's children.
|
|
std::shared_ptr< Component > | getParent (void) const |
| Gets the component's parent.
|
|
const std::vector< std::shared_ptr< Primitive > > & | getPrimitives (void) const |
| Gets the component's primitives.
|
|
Simple display component for text.
The Label class represents a text display component that typically does not handle events.