|
Unravel Engine C++ Reference
|
#include <entity_panel.h>
Public Member Functions | |
| entity_panel (imgui_panels *parent, const char *name) | |
| virtual | ~entity_panel ()=default |
| void | duplicate_entities (const std::vector< entt::handle > &entities) |
| void | focus_entities (entt::handle camera, const std::vector< entt::handle > &entities) |
| void | delete_entities (const std::vector< entt::handle > &entities) |
Public Member Functions inherited from unravel::panel_base | |
| panel_base (const char *name) | |
| virtual | ~panel_base ()=default |
| auto | is_visible () const -> bool |
| void | set_visible (bool visible) |
| auto | is_focused () const -> bool |
| auto | is_fullscreen () const -> bool |
| void | set_fullscreen (bool fullscreen) |
| void | toggle_fullscreen () |
| void | focus () |
| void | on_frame_ui_render (rtti::context &ctx) |
| auto | get_name () const -> const std::string & |
Static Public Member Functions | |
| static auto | get_entity_name (entt::handle entity) -> std::string |
| Gets the entity name from tag component. | |
| static auto | get_entity_icon (entt::handle entity) -> std::string |
| static auto | get_entity_display_color (entt::handle entity) -> ImVec4 |
Protected Attributes | |
| imgui_panels * | parent_ {} |
Protected Attributes inherited from unravel::panel_base | |
| std::string | name_ |
| std::string | name_fullscreen_ |
| bool | is_visible_ {} |
| bool | is_focused_ {} |
| bool | is_fullscreen_ {} |
| bool | request_focus_ {} |
Additional Inherited Members | |
Protected Member Functions inherited from unravel::panel_base | |
| virtual auto | get_window_name () const -> const char * |
| void | render_panel (rtti::context &ctx, const char *name, ImGuiWindowFlags flags=ImGuiWindowFlags_MenuBar) |
| virtual void | draw_ui (rtti::context &ctx)=0 |
| virtual auto | get_window_flags () const -> ImGuiWindowFlags |
| virtual void | on_before_render (rtti::context &ctx) |
| virtual void | on_after_render (rtti::context &ctx) |
| virtual bool | begin_panel (const char *name, ImGuiWindowFlags flags) |
| virtual void | end_panel (const char *name) |
Definition at line 16 of file entity_panel.h.
| unravel::entity_panel::entity_panel | ( | imgui_panels * | parent, |
| const char * | name ) |
Definition at line 21 of file entity_panel.cpp.
|
virtualdefault |
| void unravel::entity_panel::delete_entities | ( | const std::vector< entt::handle > & | entities | ) |
Definition at line 68 of file entity_panel.cpp.
| void unravel::entity_panel::duplicate_entities | ( | const std::vector< entt::handle > & | entities | ) |
Definition at line 25 of file entity_panel.cpp.
| void unravel::entity_panel::focus_entities | ( | entt::handle | camera, |
| const std::vector< entt::handle > & | entities ) |
Definition at line 57 of file entity_panel.cpp.
|
static |
Definition at line 119 of file entity_panel.cpp.
|
static |
Definition at line 105 of file entity_panel.cpp.
|
static |
Gets the entity name from tag component.
| entity | The entity to get the name for |
Definition at line 88 of file entity_panel.cpp.
|
protected |
Definition at line 36 of file entity_panel.h.