class
#include <OE/UI/Elements/Element.hpp>
Element
Contents
Base classes
- class LayoutElement
Derived classes
Constructors, destructors, conversion operators
Public functions
- void add(Element* element)
- void removeAll()
- void dispose()
-
void render(Graphics::
PathRenderer2D& r2d) - void update(float deltaTime)
- void lateUpdate()
- void invalidate()
- void setAnchor(Anchor anchor)
- void setLayout(Layout* layout)
- void setFitter(Fitter* fitter)
-
void setOffsetsAlongAxis(Math::
Vec2f offsets, Axis axis) - void setOffsets(Offsets offsets)
- void setPositionAlongAxis(float position, Axis axis)
- void setSizeAlongAxis(float size, Axis axis)
-
void setPosition(Math::
Vec2f position) -
void setSize(Math::
Vec2f size) -
void setPositionAndSizeOnAxis(Math::
Vec2f data, Axis axis) -
void setMarginsAlongAxis(Math::
Vec2f margins, Axis axis) -
void setMargins(Math::
Vec4f margins) -
void setAnchors(Math::
Vec4f anchors) -
void setAnchorMin(Math::
Vec2f anchorMin) -
void setAnchorMax(Math::
Vec2f anchorMax) -
void setPivot(Math::
Vec2f pivot) -
void setCursor(Application::
Cursor cursor) - void setClip(bool clip)
-
auto getAnchorMin() -> Math::
Vec2f -
auto getAnchorMax() -> Math::
Vec2f -
auto getPivot() -> Math::
Vec2f -
auto getPosition() -> Math::
Vec2f -
auto getSize() -> Math::
Vec2f -
auto getRect() -> Math::
Vec4f -
auto getRenderRect() -> Math::
Vec4f -
auto getRenderPosition() -> Math::
Vec2f -
auto getRenderSize() -> Math::
Vec2f -
auto getCursor() -> Application::
Cursor - auto getParent() -> Element*
- auto getChildrens() -> std::vector<Element*>&
-
auto getCurrentCursor() -> Application::
Cursor virtual - auto getLayout() -> Layout* virtual
-
auto getComponentAt(Math::
Vec2i relPosition) -> Element* -
auto getFinalCursorAtMe() -> Application::
Cursor - void bringToFront(Element* element)
Public variables
-
Application::
EventHandler<const MouseBaseEvent> onClick -
Application::
EventHandler<const MouseBaseEvent> onDblClick -
Application::
EventHandler<const MouseBaseEvent> onMouseEnter -
Application::
EventHandler<const MouseBaseEvent> onMouseLeave -
Application::
EventHandler<const MouseBaseEvent> onMouseUp -
Application::
EventHandler<const MouseBaseEvent> onMouseDown -
Application::
EventHandler<const MouseMoveEvent> onMouseMove -
Application::
EventHandler<const KeyBaseEvent> onKeyUp -
Application::
EventHandler<const KeyBaseEvent> onKeyDown -
Application::
EventHandler<const KeyBaseEvent> onKeyPress -
Application::
EventHandler<const Event> onFocusGain -
Application::
EventHandler<const Event> onFocusLost -
Application::
EventHandler<const WheelEvent> onWheelDelta
Protected functions
-
void onRender(Graphics::
PathRenderer2D& r2d) virtual - void onUpdate(float deltaTime) virtual
- void onLateUpdate() virtual
- void onValidate() virtual
- auto getCanvas() -> Canvas* virtual