Declarative registration contract for editor panels. More...
#include <panel_host.h>
Public Attributes | |
| std::string | id |
| std::string | display_name |
| std::string | icon |
| std::string | category |
| std::string | window_title |
| std::string | shortcut_hint |
| int | priority = 50 |
| bool | visible_by_default = false |
| bool * | visibility_flag = nullptr |
| PanelScope | scope = PanelScope::kSession |
| PanelCategory | panel_category = PanelCategory::EditorBound |
| PanelContextScope | context_scope = PanelContextScope::kNone |
| std::vector< std::string > | legacy_ids |
| std::function< void()> | on_show |
| std::function< void()> | on_hide |
Declarative registration contract for editor panels.
This decouples panel metadata from individual editor implementations and keeps visibility/layout concerns in a single host-facing API.
Definition at line 22 of file panel_host.h.
| std::string yaze::editor::PanelDefinition::id |
Definition at line 23 of file panel_host.h.
Referenced by yaze::editor::EditorManager::RegisterEditors(), yaze::editor::PanelHost::RegisterPanel(), and yaze::editor::PanelHost::ToDescriptor().
| std::string yaze::editor::PanelDefinition::display_name |
Definition at line 24 of file panel_host.h.
Referenced by yaze::editor::EditorManager::RegisterEditors(), and yaze::editor::PanelHost::ToDescriptor().
| std::string yaze::editor::PanelDefinition::icon |
Definition at line 25 of file panel_host.h.
Referenced by yaze::editor::EditorManager::RegisterEditors(), and yaze::editor::PanelHost::ToDescriptor().
| std::string yaze::editor::PanelDefinition::category |
Definition at line 26 of file panel_host.h.
Referenced by yaze::editor::EditorManager::RegisterEditors(), and yaze::editor::PanelHost::ToDescriptor().
| std::string yaze::editor::PanelDefinition::window_title |
Definition at line 27 of file panel_host.h.
Referenced by yaze::editor::EditorManager::RegisterEditors(), and yaze::editor::PanelHost::ToDescriptor().
| std::string yaze::editor::PanelDefinition::shortcut_hint |
Definition at line 28 of file panel_host.h.
Referenced by yaze::editor::EditorManager::RegisterEditors(), and yaze::editor::PanelHost::ToDescriptor().
| int yaze::editor::PanelDefinition::priority = 50 |
Definition at line 29 of file panel_host.h.
Referenced by yaze::editor::EditorManager::RegisterEditors(), and yaze::editor::PanelHost::ToDescriptor().
| bool yaze::editor::PanelDefinition::visible_by_default = false |
Definition at line 30 of file panel_host.h.
Referenced by yaze::editor::PanelHost::RegisterPanel().
| bool* yaze::editor::PanelDefinition::visibility_flag = nullptr |
Definition at line 31 of file panel_host.h.
Referenced by yaze::editor::EditorManager::RegisterEditors(), and yaze::editor::PanelHost::ToDescriptor().
| PanelScope yaze::editor::PanelDefinition::scope = PanelScope::kSession |
Definition at line 32 of file panel_host.h.
Referenced by yaze::editor::PanelHost::ToDescriptor().
| PanelCategory yaze::editor::PanelDefinition::panel_category = PanelCategory::EditorBound |
Definition at line 33 of file panel_host.h.
Referenced by yaze::editor::PanelHost::ToDescriptor().
| PanelContextScope yaze::editor::PanelDefinition::context_scope = PanelContextScope::kNone |
Definition at line 34 of file panel_host.h.
Referenced by yaze::editor::PanelHost::ToDescriptor().
| std::vector<std::string> yaze::editor::PanelDefinition::legacy_ids |
Definition at line 35 of file panel_host.h.
Referenced by yaze::editor::PanelHost::RegisterPanel().
| std::function<void()> yaze::editor::PanelDefinition::on_show |
Definition at line 36 of file panel_host.h.
Referenced by yaze::editor::PanelHost::ToDescriptor().
| std::function<void()> yaze::editor::PanelDefinition::on_hide |
Definition at line 37 of file panel_host.h.
Referenced by yaze::editor::PanelHost::ToDescriptor().