ZoneConfig
ZoneConfig
Classes
| Name | |
|---|---|
| struct | ZoneConfig::ZoneRatios Ratios for the main zone areas. |
| struct | ZoneConfig::WidgetConfig Configuration for a single widget in a zone. |
| struct | ZoneConfig::SplitConfig Configuration for a split within a zone. |
| struct | ZoneConfig::ZoneContentConfig Configuration for a single zone. |
| struct | ZoneConfig::ZoneLayoutConfig Complete zone layout configuration. |
Types
| Name | |
|---|---|
| enum class | SplitOrientation { Horizontal, Vertical} Orientation for splits within a zone. |
Functions
| Name | |
|---|---|
| rfl::Result< ZoneLayoutConfig > | loadFromJson(std::string const & json_str) Load zone configuration from JSON string. |
| rfl::Result< ZoneLayoutConfig > | loadFromFile(std::string const & file_path) Load zone configuration from file. |
| std::string | saveToJson(ZoneLayoutConfig const & config) Save zone configuration to JSON string. |
| bool | saveToFile(ZoneLayoutConfig const & config, std::string const & file_path) Save zone configuration to file. |
Types Documentation
enum SplitOrientation
| Enumerator | Value | Description |
|---|---|---|
| Horizontal | Split left-right. | |
| Vertical | Split top-bottom. |
Orientation for splits within a zone.
Functions Documentation
function loadFromJson
inline rfl::Result< ZoneLayoutConfig > loadFromJson(
std::string const & json_str
)Load zone configuration from JSON string.
Parameters:
- json_str JSON string to parse
Return: Result containing config or error
function loadFromFile
inline rfl::Result< ZoneLayoutConfig > loadFromFile(
std::string const & file_path
)Load zone configuration from file.
Parameters:
- file_path Path to JSON file
Return: Result containing config or error
function saveToJson
inline std::string saveToJson(
ZoneLayoutConfig const & config
)Save zone configuration to JSON string.
Parameters:
- config Configuration to save
Return: JSON string
function saveToFile
inline bool saveToFile(
ZoneLayoutConfig const & config,
std::string const & file_path
)Save zone configuration to file.
Parameters:
- config Configuration to save
- file_path Path to output file
Return: true if saved successfully
Updated on 2026-11-13 at 20:25:41 +0000