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

Metadata for a dockable editor window (formerly PanelInfo) More...

#include <workspace_window_manager.h>

Public Types

enum class  ShortcutScope { kGlobal , kEditor , kPanel }
 

Public Member Functions

std::string GetWindowTitle () const
 Get the effective window title for DockBuilder.
 
std::string GetImGuiWindowName () const
 Build the exact ImGui window name used by PanelWindow::Begin.
 

Public Attributes

std::string card_id
 
std::string display_name
 
std::string window_title
 
std::string icon
 
std::string category
 
std::string workflow_group
 
std::string workflow_label
 
std::string workflow_description
 
int workflow_priority = 50
 
WindowLifecycle window_lifecycle = WindowLifecycle::EditorBound
 
WindowContextScope context_scope = WindowContextScope::kNone
 
WindowScope scope = WindowScope::kSession
 
std::string shortcut_hint
 
ShortcutScope shortcut_scope = ShortcutScope::kPanel
 
bool * visibility_flag
 
std::function< void()> on_show
 
std::function< void()> on_hide
 
int priority
 
std::function< bool()> enabled_condition
 
std::string disabled_tooltip
 

Detailed Description

Metadata for a dockable editor window (formerly PanelInfo)

Definition at line 50 of file workspace_window_manager.h.

Member Enumeration Documentation

◆ ShortcutScope

Enumerator
kGlobal 
kEditor 
kPanel 

Definition at line 69 of file workspace_window_manager.h.

Member Function Documentation

◆ GetWindowTitle()

std::string yaze::editor::WindowDescriptor::GetWindowTitle ( ) const
inline

Get the effective window title for DockBuilder.

Returns
window_title if set, otherwise generates from icon + display_name

Definition at line 90 of file workspace_window_manager.h.

References display_name, icon, and window_title.

Referenced by yaze::editor::layout_designer::anonymous_namespace{layout_designer_window.cc}::ApplyLayoutToDockspace().

◆ GetImGuiWindowName()

std::string yaze::editor::WindowDescriptor::GetImGuiWindowName ( ) const
inline

Build the exact ImGui window name used by PanelWindow::Begin.

Uses the display label plus a stable ID suffix to keep DockBuilder and runtime window identity aligned.

Definition at line 104 of file workspace_window_manager.h.

References card_id, display_name, and icon.

Referenced by yaze::editor::WorkspaceWindowManager::GetWindowNameImpl().

Member Data Documentation

◆ card_id

◆ display_name

◆ window_title

◆ icon

◆ category

◆ workflow_group

◆ workflow_label

◆ workflow_description

◆ workflow_priority

◆ window_lifecycle

◆ context_scope

◆ scope

◆ shortcut_hint

◆ shortcut_scope

ShortcutScope yaze::editor::WindowDescriptor::shortcut_scope = ShortcutScope::kPanel

Definition at line 75 of file workspace_window_manager.h.

◆ visibility_flag

◆ on_show

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

◆ on_hide

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

◆ priority

◆ enabled_condition

◆ disabled_tooltip


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