|
| | Rectangle (const i32 x, const i32 y, const i32 width, const i32 height, const Color clr, const i32 border_radius=0) |
| | Creates a new instance of a Rectangle element.
|
| |
| i32 | GetX () override |
| | Gets the X position of the Element.
|
| |
| void | SetX (const i32 x) |
| | Sets the X position of the Rectangle.
|
| |
| i32 | GetY () override |
| | Gets the Y position of the Element.
|
| |
| void | SetY (const i32 y) |
| | Sets the Y position of the Rectangle.
|
| |
| i32 | GetWidth () override |
| | Gets the width of the Element.
|
| |
| void | SetWidth (const i32 width) |
| | Sets the width of the Rectangle.
|
| |
| i32 | GetHeight () override |
| | Gets the height of the Element.
|
| |
| void | SetHeight (const i32 height) |
| | Sets the height of the Rectangle.
|
| |
| void | OnRender (render::Renderer::Ref &drawer, const i32 x, const i32 y) override |
| | Renders the Element on the screen.
|
| |
| void | OnInput (const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override |
| | Called before rendering the Element in order to handle input.
|
| |
| | Element () |
| | Creates a new instance of an Element.
|
| |
| virtual | ~Element () |
| |
| bool | IsVisible () |
| | Gets whether the Element is visible.
|
| |
| void | SetVisible (const bool visible) |
| | Sets whether the Element is visible.
|
| |
| void | SetHorizontalAlign (const HorizontalAlign align) |
| | Sets the horizontal alignment of the Element.
|
| |
| HorizontalAlign | GetHorizontalAlign () |
| | Gets the horizontal alignment of the Element.
|
| |
| void | SetVerticalAlign (const VerticalAlign align) |
| | Sets the vertical alignment of the Element.
|
| |
| VerticalAlign | GetVerticalAlign () |
| | Gets the vertical alignment of the Element.
|
| |
| void | SetParentContainer (Container *parent_container) |
| | Sets the parent Container of the Element.
|
| |
| i32 | GetProcessedX () |
| | Gets the actual X position of the Element, considering the parent Container (depends on alignment).
|
| |
| i32 | GetProcessedY () |
| | Gets the actual Y position of the Element, considering the parent Container (depends on alignment).
|
| |
Element for rendering rectangles.