yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_workbench_chrome.h File Reference
#include <algorithm>
#include <cmath>
#include <functional>
#include <span>
#include "app/gui/core/color.h"
#include "app/gui/core/layout_helpers.h"
#include "app/gui/core/style_guard.h"
#include "app/gui/core/ui_helpers.h"
#include "app/gui/widgets/themed_widgets.h"
#include "imgui/imgui.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yaze::editor::workbench::SegmentSpec
 

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::workbench
 

Functions

float yaze::editor::workbench::CalcIconButtonWidth (const char *icon, float button_height)
 
float yaze::editor::workbench::CalcIconToggleButtonWidth (const char *icon_on, const char *icon_off, float button_height)
 
float yaze::editor::workbench::CalcPaneSegmentHeight (float button_size)
 
bool yaze::editor::workbench::ShouldStackSegments (float available_width, int item_count, float min_item_width)
 
void yaze::editor::workbench::DrawPaneTitle (const char *icon, const char *title, const char *compact_title, bool compact, const char *subtitle=nullptr)
 
void yaze::editor::workbench::DrawSectionLabel (const char *icon, const char *label, const char *tooltip=nullptr)
 
bool yaze::editor::workbench::DrawHeaderIconAction (const char *id, const char *icon, float button_size, const char *tooltip, bool active=false)
 
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)
 
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)