1#ifndef YAZE_APP_GUI_LAYOUT_HELPERS_H
2#define YAZE_APP_GUI_LAYOUT_HELPERS_H
6#include "absl/strings/str_format.h"
8#include "imgui/imgui.h"
36 ImGuiTableFlags flags = 0,
37 const ImVec2& outer_size = ImVec2(0, 0),
38 float inner_width = 0.0f);
43 ImVec2* canvas_size =
nullptr);
48 ImGuiInputTextFlags flags = 0);
51 ImGuiInputTextFlags flags = 0);
53 float step = 0.0f,
float step_fast = 0.0f,
54 const char* format =
"%.3f",
55 ImGuiInputTextFlags flags = 0);
58 static bool InputHexRow(
const char* label, uint8_t* data);
59 static bool InputHexRow(
const char* label, uint16_t* data);
69 const ImVec2& size = ImVec2(0, 0));
73 std::function<
void()> widget_callback);
Theme-aware sizing helpers for consistent UI layout.
static void SectionHeader(const char *label)
static float GetPanelPadding()
static void ToolbarSeparator()
static void BeginToolbar(const char *label)
static float GetCanvasToolbarHeight()
static void EndPaddedPanel()
static void EndTableWithTheming()
static float ApplyCompactFactor(float base_value)
static void HelpMarker(const char *desc)
static float GetTableRowHeight()
static const Theme & GetTheme()
static float GetStandardInputWidth()
static void BeginPropertyGrid(const char *label)
static bool AutoSizedInputFloat(const char *label, float *v, float step=0.0f, float step_fast=0.0f, const char *format="%.3f", ImGuiInputTextFlags flags=0)
static bool AutoSizedInputInt(const char *label, int *v, int step=1, int step_fast=100, ImGuiInputTextFlags flags=0)
static bool InputToolbarField(const char *label, char *buf, size_t buf_size)
static void BeginCanvasPanel(const char *label, ImVec2 *canvas_size=nullptr)
static void PropertyRow(const char *label, std::function< void()> widget_callback)
static float GetBaseFontSize()
static float GetButtonPadding()
static float GetToolbarHeight()
static void BeginPaddedPanel(const char *label, float padding=-1.0f)
static bool ToolbarButton(const char *label, const ImVec2 &size=ImVec2(0, 0))
static bool InputHexRow(const char *label, uint8_t *data)
static float GetStandardWidgetHeight()
static float GetStandardSpacing()
static bool BeginTableWithTheming(const char *str_id, int columns, ImGuiTableFlags flags=0, const ImVec2 &outer_size=ImVec2(0, 0), float inner_width=0.0f)
static void EndCanvasPanel()
static bool AutoSizedInputField(const char *label, char *buf, size_t buf_size, ImGuiInputTextFlags flags=0)
static void EndPropertyGrid()
const Theme & GetCurrentTheme() const
static ThemeManager & Get()
Comprehensive theme structure for YAZE.