-
-
Notifications
You must be signed in to change notification settings - Fork 3
Abstract
-
Fundamentals
-
Methods
The abstract widget is not used for the user-programmer part and is not recommended for any purpose. Abstract widget is used by the runtime core as a polymorphism heritage base for handling everything.
Set tag for reserved purposes.
ekg::ui::abstract *set_tag(std::string_view tag);
Get the tag for reserved purposes.
std::string_view get_tag();
Add a child to the widget.
ekg::ui::abstract *add_child(int32_t id);
Get the widget child id list.
std::vector<int32_t> &get_child_id_list();
Remove a child widget from the mother widget.
ekg::ui::abstract *remove_child(int32_t id);
Set the widget ID.
ekg::ui::abstract *set_id(int32_t id);
Get the widget ID.
int32_t get_id();
Set parent (mother) widget ID.
ekg::ui::abstract *set_parent_id(int32_t parent_id);
Get parent (mother) widget ID.
int32_t get_parent_id();
Set the alive state of the widget.
ekg::ui::abstract *set_alive(bool is_alive);
Get the alive state.
bool is_alive();
Destroy the widget.
void destroy();
Set the state of the widget, visible
invisible
.
ekg::ui::abstract *set_state(const ekg::state &_state);
Get the state of the widget, visible
invisible
.
ekg::state get_state();
Set the widget type.
ekg::ui::abstract *set_type(const ekg::type &_type);
Get the widget type.
ekg::type get_type();
Get the place dock, fill
next
none
right
bottom
.
uint16_t get_place_dock();
Get the sync flags reference.
uint16_t &get_sync();
Reset the UI data front-end with the widget back-end.
void reset();
Access to absolute widget back-end rectangle.
ekg::rect &widget();
Get the UI data front-end rectangle.
ekg::rect &ui();
Set scaled height layout in font size (multiplied by).
ekg::ui::abstract *set_scaled_height_layout(int32_t scaled_size);
Check if the widget has a parent (mother widget).
bool has_parent();
Check if the widget has children.
bool has_children();