TestWidgetStateData
TestWidgetStateData
Serializable state data for TestWidget. More…
#include <TestWidgetStateData.hpp>
Public Attributes
| Name | |
|---|---|
| std::string | instance_id Unique instance ID (preserved across serialization). |
| std::string | display_name User-visible name. |
| bool | show_grid Show grid overlay in the view. |
| bool | show_crosshair Show crosshair at center. |
| bool | enable_animation Enable animated element. |
| std::string | highlight_color Highlight/accent color (hex format). |
| double | zoom_level Zoom level (range: 0.1 to 5.0). |
| int | grid_spacing Grid spacing in pixels (range: 10 to 200). |
| std::string | label_text Label text displayed in view. |
Detailed Description
struct TestWidgetStateData;Serializable state data for TestWidget.
All members are designed for reflect-cpp serialization. No Qt types are used to ensure clean JSON output.
Public Attributes Documentation
variable instance_id
std::string instance_id;Unique instance ID (preserved across serialization).
variable display_name
std::string display_name = "Test Widget";User-visible name.
variable show_grid
bool show_grid = true;Show grid overlay in the view.
variable show_crosshair
bool show_crosshair = false;Show crosshair at center.
variable enable_animation
bool enable_animation = false;Enable animated element.
variable highlight_color
std::string highlight_color = "#FF5500";Highlight/accent color (hex format).
variable zoom_level
double zoom_level = 1.0;Zoom level (range: 0.1 to 5.0).
variable grid_spacing
int grid_spacing = 50;Grid spacing in pixels (range: 10 to 200).
variable label_text
std::string label_text = "Test Label";Label text displayed in view.
Updated on 2026-11-13 at 20:25:39 +0000