Namespaces | |
| namespace | anonymous_namespace{layout_designer_window.cc} |
| namespace | anonymous_namespace{layout_serialization.cc} |
Classes | |
| struct | DockNode |
| Represents a dock node in the layout tree. More... | |
| struct | LayoutDefinition |
| Complete layout definition with metadata. More... | |
| class | LayoutDesignerWindow |
| Main window for the WYSIWYG layout designer. More... | |
| struct | LayoutPanel |
| Represents a single panel in a layout. More... | |
| class | LayoutSerializer |
| Handles JSON serialization and deserialization of layouts. More... | |
| struct | PanelDesign |
| Complete design definition for a panel's internal layout. More... | |
| struct | ThemeProperties |
| Encapsulates ImGui style properties for visual design. More... | |
| class | ThemePropertiesPanel |
| UI panel for editing theme properties in the layout designer. More... | |
| class | WidgetCodeGenerator |
| Generates C++ ImGui code from widget definitions. More... | |
| struct | WidgetDefinition |
| Defines a widget instance in a panel layout. More... | |
| struct | WidgetProperty |
| Represents a configurable property of a widget. More... | |
Functions | |
| const char * | GetWidgetTypeName (WidgetType type) |
| Get human-readable name for widget type. | |
| const char * | GetWidgetTypeIcon (WidgetType type) |
| Get icon for widget type. | |
| bool | IsContainerWidget (WidgetType type) |
| Check if widget type is a container. | |
| bool | RequiresEndCall (WidgetType type) |
| Check if widget type requires an End*() call. | |
| std::vector< WidgetProperty > | GetDefaultProperties (WidgetType type) |
| Get default properties for a widget type. | |
| const char * | GetYazeWidgetTypeName (YazeWidgetType type) |
| Get human-readable name for yaze widget type. | |
| const char * | GetYazeWidgetTypeIcon (YazeWidgetType type) |
| Get icon for yaze widget type. | |
| std::string | GenerateYazeWidgetCode (YazeWidgetType yaze_type, const WidgetDefinition &widget, int indent_level=0) |
| Generate code for yaze widget (uses yaze abstractions) | |
| std::vector< std::string > | GetRequiredIncludes (YazeWidgetType type) |
| Check if yaze widget requires specific includes. | |
| std::vector< WidgetProperty > | GetYazeDefaultProperties (YazeWidgetType type) |
| Get default properties for yaze widget type. | |
| WidgetType | ToWidgetType (YazeWidgetType type) |
| Convert YazeWidgetType to WidgetType (for base widget system) | |
|
strong |
Type of dock node in the layout tree.
| Enumerator | |
|---|---|
| Root | |
| Split | |
| Leaf | |
Definition at line 20 of file layout_definition.h.
|
strong |
Design mode for the layout designer.
| Enumerator | |
|---|---|
| PanelLayout | |
| WidgetDesign | |
Definition at line 27 of file layout_designer_window.h.
|
strong |
Types of ImGui widgets available in the designer.
Definition at line 19 of file widget_definition.h.
|
strong |
Extended widget types using yaze GUI abstractions.
Definition at line 14 of file yaze_widgets.h.
| const char * yaze::editor::layout_designer::GetWidgetTypeName | ( | WidgetType | type | ) |
Get human-readable name for widget type.
Definition at line 129 of file widget_definition.cc.
References BeginChild, BeginCombo, BeginGroup, BeginMenu, BeginTable, BulletText, Button, Canvas, Checkbox, CollapsingHeader, ColorEdit, ColorPicker, Dummy, EndChild, EndCombo, EndGroup, EndMenu, EndTable, Image, ImageButton, Indent, InputFloat, InputInt, InputText, ListBox, MenuItem, NewLine, ProgressBar, RadioButton, SameLine, Selectable, Separator, SliderFloat, SliderInt, SmallButton, Spacing, TabBar, TabItem, TableNextColumn, TableNextRow, TableSetupColumn, Text, TextColored, TextWrapped, TreeNode, and Unindent.
Referenced by yaze::editor::layout_designer::LayoutDesignerWindow::DrawWidgetCanvas(), yaze::editor::layout_designer::LayoutDesignerWindow::DrawWidgetPalette(), yaze::editor::layout_designer::LayoutDesignerWindow::DrawWidgetProperties(), yaze::editor::layout_designer::WidgetCodeGenerator::GenerateContainerCode(), and yaze::editor::layout_designer::WidgetCodeGenerator::GenerateWidgetCode().
| const char * yaze::editor::layout_designer::GetWidgetTypeIcon | ( | WidgetType | type | ) |
Get icon for widget type.
Definition at line 181 of file widget_definition.cc.
References BeginCombo, BeginMenu, BeginTable, BulletText, Button, Canvas, Checkbox, CollapsingHeader, ColorEdit, ColorPicker, EndCombo, EndMenu, EndTable, ICON_MD_ACCOUNT_TREE, ICON_MD_ARROW_DROP_DOWN, ICON_MD_CHECK_BOX, ICON_MD_CHECK_CIRCLE, ICON_MD_DRAW, ICON_MD_HORIZONTAL_RULE, ICON_MD_IMAGE, ICON_MD_INPUT, ICON_MD_LINEAR_SCALE, ICON_MD_MENU, ICON_MD_PALETTE, ICON_MD_RADIO_BUTTON_CHECKED, ICON_MD_SMART_BUTTON, ICON_MD_TAB, ICON_MD_TABLE_CHART, ICON_MD_TEXT_FIELDS, ICON_MD_TUNE, ICON_MD_WIDGETS, Image, ImageButton, InputFloat, InputInt, InputText, ListBox, MenuItem, ProgressBar, RadioButton, Selectable, Separator, SliderFloat, SliderInt, SmallButton, TabBar, TabItem, Text, TextColored, TextWrapped, and TreeNode.
Referenced by yaze::editor::layout_designer::LayoutDesignerWindow::DrawWidgetCanvas(), yaze::editor::layout_designer::LayoutDesignerWindow::DrawWidgetPalette(), and yaze::editor::layout_designer::LayoutDesignerWindow::DrawWidgetTree().
| bool yaze::editor::layout_designer::IsContainerWidget | ( | WidgetType | type | ) |
Check if widget type is a container.
Definition at line 255 of file widget_definition.cc.
References BeginChild, BeginCombo, BeginGroup, BeginMenu, BeginTable, CollapsingHeader, TabBar, TabItem, and TreeNode.
Referenced by yaze::editor::layout_designer::WidgetDefinition::CanHaveChildren(), and yaze::editor::layout_designer::WidgetDefinition::IsContainer().
| bool yaze::editor::layout_designer::RequiresEndCall | ( | WidgetType | type | ) |
Check if widget type requires an End*() call.
Definition at line 272 of file widget_definition.cc.
References BeginChild, BeginCombo, BeginGroup, BeginMenu, BeginTable, TabBar, and TreeNode.
Referenced by yaze::editor::layout_designer::WidgetDefinition::RequiresEnd().
| std::vector< WidgetProperty > yaze::editor::layout_designer::GetDefaultProperties | ( | WidgetType | type | ) |
Get default properties for a widget type.
Definition at line 287 of file widget_definition.cc.
References BeginTable, yaze::editor::layout_designer::WidgetProperty::Bool, yaze::editor::layout_designer::WidgetProperty::bool_value, BulletText, Button, Canvas, Checkbox, yaze::editor::layout_designer::WidgetProperty::Color, yaze::editor::layout_designer::WidgetProperty::color_value, yaze::editor::layout_designer::WidgetProperty::Flags, yaze::editor::layout_designer::WidgetProperty::flags_value, InputText, yaze::editor::layout_designer::WidgetProperty::Int, yaze::editor::layout_designer::WidgetProperty::int_value, yaze::editor::layout_designer::WidgetProperty::name, SliderInt, SmallButton, yaze::editor::layout_designer::WidgetProperty::String, yaze::editor::layout_designer::WidgetProperty::string_value, Text, TextWrapped, yaze::editor::layout_designer::WidgetProperty::type, yaze::editor::layout_designer::WidgetProperty::Vec2, and yaze::editor::layout_designer::WidgetProperty::vec2_value.
Referenced by yaze::editor::layout_designer::LayoutDesignerWindow::DrawWidgetCanvas().
| const char * yaze::editor::layout_designer::GetYazeWidgetTypeName | ( | YazeWidgetType | type | ) |
Get human-readable name for yaze widget type.
Definition at line 10 of file yaze_widgets.cc.
References AutoButton, AutoCheckbox, AutoInputField, AutoInputText, BeginField, CanvasPanel, DangerButton, EndField, PaddedPanel, PaletteColorButton, PanelHeader, PrimaryButton, PropertyRow, PropertyTable, SectionHeader, TableWithTheming, ThemedButton, ThemedIconButton, and TransparentIconButton.
Referenced by GenerateYazeWidgetCode().
| const char * yaze::editor::layout_designer::GetYazeWidgetTypeIcon | ( | YazeWidgetType | type | ) |
Get icon for yaze widget type.
Definition at line 35 of file yaze_widgets.cc.
References AutoButton, AutoInputField, AutoInputText, BeginField, CanvasPanel, DangerButton, EndField, ICON_MD_DRAW, ICON_MD_INPUT, ICON_MD_PALETTE, ICON_MD_RADIO_BUTTON_UNCHECKED, ICON_MD_SMART_BUTTON, ICON_MD_TABLE_CHART, ICON_MD_TITLE, ICON_MD_WIDGETS, PaletteColorButton, PanelHeader, PrimaryButton, PropertyRow, PropertyTable, SectionHeader, TableWithTheming, ThemedButton, ThemedIconButton, and TransparentIconButton.
| std::string yaze::editor::layout_designer::GenerateYazeWidgetCode | ( | YazeWidgetType | yaze_type, |
| const WidgetDefinition & | widget, | ||
| int | indent_level = 0 ) |
Generate code for yaze widget (uses yaze abstractions)
| yaze_type | The yaze widget type |
| widget | The widget definition (for properties) |
| indent_level | Indentation level |
Definition at line 73 of file yaze_widgets.cc.
References AutoButton, yaze::editor::layout_designer::WidgetDefinition::callback_name, CanvasPanel, DangerButton, GetYazeWidgetTypeName(), ICON_MD_LABEL, ICON_MD_WINDOW, PanelHeader, PrimaryButton, PropertyRow, PropertyTable, SectionHeader, TableWithTheming, and ThemedButton.

| std::vector< std::string > yaze::editor::layout_designer::GetRequiredIncludes | ( | YazeWidgetType | type | ) |
Check if yaze widget requires specific includes.
Definition at line 177 of file yaze_widgets.cc.
References AutoButton, AutoCheckbox, AutoInputField, AutoInputText, BeginField, CanvasPanel, DangerButton, EndField, PaddedPanel, PaletteColorButton, PanelHeader, PrimaryButton, PropertyRow, PropertyTable, SectionHeader, TableWithTheming, ThemedButton, ThemedIconButton, and TransparentIconButton.
| std::vector< WidgetProperty > yaze::editor::layout_designer::GetYazeDefaultProperties | ( | YazeWidgetType | type | ) |
Get default properties for yaze widget type.
Definition at line 219 of file yaze_widgets.cc.
References AutoButton, DangerButton, ICON_MD_LABEL, yaze::editor::layout_designer::WidgetProperty::Int, yaze::editor::layout_designer::WidgetProperty::int_value, yaze::editor::layout_designer::WidgetProperty::name, PrimaryButton, PropertyRow, PropertyTable, SectionHeader, yaze::editor::layout_designer::WidgetProperty::String, yaze::editor::layout_designer::WidgetProperty::string_value, ThemedButton, and yaze::editor::layout_designer::WidgetProperty::type.
| WidgetType yaze::editor::layout_designer::ToWidgetType | ( | YazeWidgetType | type | ) |
Convert YazeWidgetType to WidgetType (for base widget system)