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

Metadata for an editor panel (formerly PanelInfo) More...

#include <panel_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
 
PanelCategory panel_category = PanelCategory::EditorBound
 
PanelContextScope context_scope = PanelContextScope::kNone
 
PanelScope scope = PanelScope::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 an editor panel (formerly PanelInfo)

Definition at line 49 of file panel_manager.h.

Member Enumeration Documentation

◆ ShortcutScope

Enumerator
kGlobal 
kEditor 
kPanel 

Definition at line 63 of file panel_manager.h.

Member Function Documentation

◆ GetWindowTitle()

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

Get the effective window title for DockBuilder.

Returns
window_title if set, otherwise generates from icon + display_name

Definition at line 83 of file panel_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::PanelDescriptor::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 97 of file panel_manager.h.

References card_id, display_name, and icon.

Referenced by yaze::editor::PanelManager::GetPanelWindowName().

Member Data Documentation

◆ card_id

◆ display_name

◆ window_title

◆ icon

◆ category

◆ panel_category

◆ context_scope

◆ scope

◆ shortcut_hint

◆ shortcut_scope

ShortcutScope yaze::editor::PanelDescriptor::shortcut_scope = ShortcutScope::kPanel

Definition at line 69 of file panel_manager.h.

◆ visibility_flag

◆ on_show

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

◆ on_hide

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

◆ priority

◆ enabled_condition

std::function<bool()> yaze::editor::PanelDescriptor::enabled_condition

Definition at line 76 of file panel_manager.h.

◆ disabled_tooltip

std::string yaze::editor::PanelDescriptor::disabled_tooltip

Definition at line 77 of file panel_manager.h.

Referenced by anonymous_namespace{main.cc}::RegisterLabPanels().


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