yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::PanelDefinition Struct Reference

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
 

Detailed Description

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.

Member Data Documentation

◆ id

std::string yaze::editor::PanelDefinition::id

◆ display_name

std::string yaze::editor::PanelDefinition::display_name

◆ icon

std::string yaze::editor::PanelDefinition::icon

◆ category

std::string yaze::editor::PanelDefinition::category

◆ window_title

std::string yaze::editor::PanelDefinition::window_title

◆ shortcut_hint

std::string yaze::editor::PanelDefinition::shortcut_hint

◆ priority

int yaze::editor::PanelDefinition::priority = 50

◆ visible_by_default

bool yaze::editor::PanelDefinition::visible_by_default = false

Definition at line 30 of file panel_host.h.

Referenced by yaze::editor::PanelHost::RegisterPanel().

◆ visibility_flag

bool* yaze::editor::PanelDefinition::visibility_flag = nullptr

◆ scope

PanelScope yaze::editor::PanelDefinition::scope = PanelScope::kSession

Definition at line 32 of file panel_host.h.

Referenced by yaze::editor::PanelHost::ToDescriptor().

◆ panel_category

PanelCategory yaze::editor::PanelDefinition::panel_category = PanelCategory::EditorBound

Definition at line 33 of file panel_host.h.

Referenced by yaze::editor::PanelHost::ToDescriptor().

◆ context_scope

PanelContextScope yaze::editor::PanelDefinition::context_scope = PanelContextScope::kNone

Definition at line 34 of file panel_host.h.

Referenced by yaze::editor::PanelHost::ToDescriptor().

◆ legacy_ids

std::vector<std::string> yaze::editor::PanelDefinition::legacy_ids

Definition at line 35 of file panel_host.h.

Referenced by yaze::editor::PanelHost::RegisterPanel().

◆ on_show

std::function<void()> yaze::editor::PanelDefinition::on_show

Definition at line 36 of file panel_host.h.

Referenced by yaze::editor::PanelHost::ToDescriptor().

◆ on_hide

std::function<void()> yaze::editor::PanelDefinition::on_hide

Definition at line 37 of file panel_host.h.

Referenced by yaze::editor::PanelHost::ToDescriptor().


The documentation for this struct was generated from the following file: