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

Classes

struct  SegmentSpec
 

Functions

float CalcIconButtonWidth (const char *icon, float button_height)
 
float CalcIconToggleButtonWidth (const char *icon_on, const char *icon_off, float button_height)
 
float CalcPaneSegmentHeight (float button_size)
 
bool ShouldStackSegments (float available_width, int item_count, float min_item_width)
 
void DrawPaneTitle (const char *icon, const char *title, const char *compact_title, bool compact, const char *subtitle=nullptr)
 
void DrawSectionLabel (const char *icon, const char *label, const char *tooltip=nullptr)
 
bool DrawHeaderIconAction (const char *id, const char *icon, float button_size, const char *tooltip, bool active=false)
 
void DrawPaneHeader (const char *table_id, const char *icon, const char *title, const char *compact_title, const char *subtitle, bool compact, float action_width, const std::function< void()> &draw_actions)
 
void DrawSegmentedControls (const char *id, std::span< const SegmentSpec > segments, int selected_index, float height, float min_item_width, const std::function< void(int)> &on_select, bool force_stack=false)
 
void DrawInspectorSectionHeader (const char *label)
 
bool BeginInspectorSection (const char *label, bool default_open)
 
bool DrawActionButton (const char *label, const ImVec2 &size)
 

Function Documentation

◆ CalcIconButtonWidth()

◆ CalcIconToggleButtonWidth()

float yaze::editor::workbench::CalcIconToggleButtonWidth ( const char * icon_on,
const char * icon_off,
float button_height )
inline

Definition at line 36 of file dungeon_workbench_chrome.h.

References CalcIconButtonWidth().

Referenced by yaze::editor::anonymous_namespace{dungeon_workbench_toolbar.cc}::IconToggleButton().

Here is the call graph for this function:

◆ CalcPaneSegmentHeight()

float yaze::editor::workbench::CalcPaneSegmentHeight ( float button_size)
inline

Definition at line 43 of file dungeon_workbench_chrome.h.

References yaze::gui::LayoutHelpers::GetTouchSafeWidgetHeight().

Here is the call graph for this function:

◆ ShouldStackSegments()

bool yaze::editor::workbench::ShouldStackSegments ( float available_width,
int item_count,
float min_item_width )
inline

Definition at line 48 of file dungeon_workbench_chrome.h.

Referenced by DrawSegmentedControls().

◆ DrawPaneTitle()

void yaze::editor::workbench::DrawPaneTitle ( const char * icon,
const char * title,
const char * compact_title,
bool compact,
const char * subtitle = nullptr )
inline

Definition at line 60 of file dungeon_workbench_chrome.h.

References yaze::gui::ColoredText(), and yaze::gui::GetPrimaryVec4().

Referenced by DrawPaneHeader().

Here is the call graph for this function:

◆ DrawSectionLabel()

void yaze::editor::workbench::DrawSectionLabel ( const char * icon,
const char * label,
const char * tooltip = nullptr )
inline

Definition at line 80 of file dungeon_workbench_chrome.h.

References yaze::gui::ColoredText(), and yaze::gui::GetPrimaryVec4().

Here is the call graph for this function:

◆ DrawHeaderIconAction()

bool yaze::editor::workbench::DrawHeaderIconAction ( const char * id,
const char * icon,
float button_size,
const char * tooltip,
bool active = false )
inline

◆ DrawPaneHeader()

void yaze::editor::workbench::DrawPaneHeader ( const char * table_id,
const char * icon,
const char * title,
const char * compact_title,
const char * subtitle,
bool compact,
float action_width,
const std::function< void()> & draw_actions )
inline

Definition at line 105 of file dungeon_workbench_chrome.h.

References DrawPaneTitle().

Referenced by yaze::editor::DungeonWorkbenchContent::DrawInspectorHeader(), and yaze::editor::DungeonWorkbenchContent::DrawSidebarHeader().

Here is the call graph for this function:

◆ DrawSegmentedControls()

void yaze::editor::workbench::DrawSegmentedControls ( const char * id,
std::span< const SegmentSpec > segments,
int selected_index,
float height,
float min_item_width,
const std::function< void(int)> & on_select,
bool force_stack = false )
inline

Definition at line 146 of file dungeon_workbench_chrome.h.

References ShouldStackSegments(), and yaze::gui::ToggleButton().

Here is the call graph for this function:

◆ DrawInspectorSectionHeader()

◆ BeginInspectorSection()

bool yaze::editor::workbench::BeginInspectorSection ( const char * label,
bool default_open )

◆ DrawActionButton()