CommonDisplayFields
CommonDisplayFields
Common fields shared by all display option types. More…
#include <DisplayOptions.hpp>
Public Attributes
| Name | |
|---|---|
| std::string | hex_color Color in hex format (e.g., “#ff0000”). |
| float | alpha Alpha/opacity (0.0 - 1.0). |
| bool | is_visible Whether the data is currently visible. |
Detailed Description
struct CommonDisplayFields;Common fields shared by all display option types.
This struct is designed to be used with rfl::Flatten to compose into other display option structs. The fields will appear flat in the JSON output (not nested under “common”).
Example JSON output when flattened: ```json
{ “hex_color”: “#ff0000”, “alpha”: 0.8, “is_visible”: true, “line_thickness”: 3 }
## Public Attributes Documentation
### variable hex_color
```cpp
std::string hex_color {DefaultDisplayValues::COLOR};
Color in hex format (e.g., “#ff0000”).
variable alpha
float alpha {DefaultDisplayValues::ALPHA};Alpha/opacity (0.0 - 1.0).
variable is_visible
bool is_visible {DefaultDisplayValues::VISIBLE};Whether the data is currently visible.
Updated on 2026-11-13 at 20:25:39 +0000