Skip to main content

ZoneConfig::ZoneRatios

ZoneConfig::ZoneRatios

Ratios for the main zone areas. More…

#include <ZoneConfig.hpp>

Public Functions

Name
void normalizeHorizontal()
Normalize horizontal ratios to sum to 1.0.
bool isValid() const
Validate ratios are within reasonable bounds.

Public Attributes

Name
float left
Left zone width ratio.
float center
Center zone width ratio.
float right
Right zone width ratio.
float bottom
Bottom zone height ratio.

Detailed Description

struct ZoneConfig::ZoneRatios;

Ratios for the main zone areas.

All ratios should sum to approximately 1.0 for horizontal zones (left + center + right). Bottom ratio is separate (vertical split).

Public Functions Documentation

function normalizeHorizontal

inline void normalizeHorizontal()

Normalize horizontal ratios to sum to 1.0.

function isValid

inline bool isValid() const

Validate ratios are within reasonable bounds.

Return: true if all ratios are between 0.0 and 1.0

Public Attributes Documentation

variable left

float left = 0.15f;

Left zone width ratio.

variable center

float center = 0.70f;

Center zone width ratio.

variable right

float right = 0.15f;

Right zone width ratio.

variable bottom

float bottom = 0.10f;

Bottom zone height ratio.


Updated on 2026-11-13 at 20:25:41 +0000