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);
42 static void BeginCanvasPanel(
const char* label, ImVec2* canvas_size =
nullptr);
47 ImGuiInputTextFlags flags = 0);
49 int step_fast = 100, ImGuiInputTextFlags flags = 0);
51 float step_fast = 0.0f,
const char* format =
"%.3f",
52 ImGuiInputTextFlags flags = 0);
55 static bool InputHexRow(
const char* label, uint8_t* data);
56 static bool InputHexRow(
const char* label, uint16_t* data);
65 static bool ToolbarButton(
const char* label,
const ImVec2& size = ImVec2(0, 0));
68 static void PropertyRow(
const char* label, std::function<
void()> widget_callback);
69 static void SectionHeader(
const char* label);
Theme-aware sizing helpers for consistent UI layout.
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 EnhancedTheme & 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()
static ThemeManager & Get()
const EnhancedTheme & GetCurrentTheme() const
Main namespace for the application.
Comprehensive theme structure for YAZE.