yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze_widgets.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_LAYOUT_DESIGNER_YAZE_WIDGETS_H_
2#define YAZE_APP_EDITOR_LAYOUT_DESIGNER_YAZE_WIDGETS_H_
3
5
6namespace yaze {
7namespace editor {
8namespace layout_designer {
9
14enum class YazeWidgetType {
15 // Themed buttons (from themed_widgets.h)
21
22 // Layout helpers (from ui_helpers.h)
23 BeginField, // Label + widget field pattern
25 PropertyTable, // Table for properties
26 PropertyRow, // Property row in table
27 SectionHeader, // Section header with icon
28
29 // Layout helpers (from layout_helpers.h)
30 PaddedPanel, // Panel with standard padding
31 TableWithTheming, // Table with theme awareness
32 CanvasPanel, // Canvas with toolbar
33 AutoInputField, // Auto-sized input field
34
35 // Widget automation (from widget_auto_register.h)
36 AutoButton, // Auto-registered button
37 AutoCheckbox, // Auto-registered checkbox
38 AutoInputText, // Auto-registered input
39
40 // Custom yaze widgets
41 PaletteColorButton, // Color button for palettes
42 PanelHeader, // Panel header with icon
43};
44
49
54
59
67std::string GenerateYazeWidgetCode(YazeWidgetType yaze_type,
68 const WidgetDefinition& widget,
69 int indent_level = 0);
70
74std::vector<WidgetProperty> GetYazeDefaultProperties(YazeWidgetType type);
75
79std::vector<std::string> GetRequiredIncludes(YazeWidgetType type);
80
81} // namespace layout_designer
82} // namespace editor
83} // namespace yaze
84
85#endif // YAZE_APP_EDITOR_LAYOUT_DESIGNER_YAZE_WIDGETS_H_
86
const char * GetYazeWidgetTypeName(YazeWidgetType type)
Get human-readable name for yaze widget type.
std::string GenerateYazeWidgetCode(YazeWidgetType yaze_type, const WidgetDefinition &widget, int indent_level)
Generate code for yaze widget (uses yaze abstractions)
const char * GetYazeWidgetTypeIcon(YazeWidgetType type)
Get icon for yaze widget type.
std::vector< std::string > GetRequiredIncludes(YazeWidgetType type)
Check if yaze widget requires specific includes.
WidgetType ToWidgetType(YazeWidgetType type)
Convert YazeWidgetType to WidgetType (for base widget system)
YazeWidgetType
Extended widget types using yaze GUI abstractions.
WidgetType
Types of ImGui widgets available in the designer.
std::vector< WidgetProperty > GetYazeDefaultProperties(YazeWidgetType type)
Get default properties for yaze widget type.
Defines a widget instance in a panel layout.