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.
 

Public Attributes

std::string card_id
 
std::string display_name
 
std::string window_title
 
std::string icon
 
std::string category
 
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 44 of file panel_manager.h.

Member Enumeration Documentation

◆ ShortcutScope

Enumerator
kGlobal 
kEditor 
kPanel 

Definition at line 50 of file panel_manager.h.

Member Function Documentation

◆ GetWindowTitle()

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

Member Data Documentation

◆ card_id

std::string yaze::editor::PanelDescriptor::card_id

◆ display_name

◆ window_title

std::string yaze::editor::PanelDescriptor::window_title

◆ icon

std::string yaze::editor::PanelDescriptor::icon

◆ category

std::string yaze::editor::PanelDescriptor::category

◆ shortcut_hint

std::string yaze::editor::PanelDescriptor::shortcut_hint

◆ shortcut_scope

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

Definition at line 56 of file panel_manager.h.

◆ visibility_flag

◆ on_show

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

Definition at line 58 of file panel_manager.h.

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

◆ on_hide

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

Definition at line 59 of file panel_manager.h.

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

◆ priority

int yaze::editor::PanelDescriptor::priority

◆ enabled_condition

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

Definition at line 63 of file panel_manager.h.

◆ disabled_tooltip

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

Definition at line 64 of file panel_manager.h.


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