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

Declarative registration contract for editor windows. 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
 
WindowScope scope = WindowScope::kSession
 
WindowLifecycle window_lifecycle = WindowLifecycle::EditorBound
 
WindowContextScope context_scope = WindowContextScope::kNone
 
std::vector< std::string > legacy_ids
 
std::function< void()> on_show
 
std::function< void()> on_hide
 

Detailed Description

Declarative registration contract for editor windows.

This decouples window 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::WindowDefinition::id

◆ display_name

std::string yaze::editor::WindowDefinition::display_name

◆ icon

std::string yaze::editor::WindowDefinition::icon

◆ category

std::string yaze::editor::WindowDefinition::category

◆ window_title

std::string yaze::editor::WindowDefinition::window_title

◆ shortcut_hint

std::string yaze::editor::WindowDefinition::shortcut_hint

◆ priority

int yaze::editor::WindowDefinition::priority = 50

◆ visible_by_default

bool yaze::editor::WindowDefinition::visible_by_default = false

Definition at line 30 of file panel_host.h.

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

◆ visibility_flag

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

◆ scope

WindowScope yaze::editor::WindowDefinition::scope = WindowScope::kSession

Definition at line 32 of file panel_host.h.

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

◆ window_lifecycle

WindowLifecycle yaze::editor::WindowDefinition::window_lifecycle = WindowLifecycle::EditorBound

Definition at line 33 of file panel_host.h.

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

◆ context_scope

WindowContextScope yaze::editor::WindowDefinition::context_scope = WindowContextScope::kNone

Definition at line 34 of file panel_host.h.

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

◆ legacy_ids

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

Definition at line 35 of file panel_host.h.

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

◆ on_show

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

Definition at line 36 of file panel_host.h.

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

◆ on_hide

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

Definition at line 37 of file panel_host.h.

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


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