Loading...
Searching...
No Matches
CheckboxSettings.h
Go to the documentation of this file.
1//
2// CheckboxSettings.h
3//
4
5#ifndef MALENA_CHECKBOXSETTINGS_H
6#define MALENA_CHECKBOXSETTINGS_H
7
8#pragma once
9
12
13namespace ml
14{
24 {
25 float boxSize = 16.f;
26 float boxRadius = 2.f;
27 float labelOffset = 8.f;
28
29 // ── Assignment from parent levels ─────────────────────────────────────
30
32 { static_cast<ControlSettings&>(*this) = c; return *this; }
33
35 { static_cast<ControlSettings&>(*this) = g; return *this; }
36
37 // ── Getters / setters ─────────────────────────────────────────────────
38
39 [[nodiscard]] float getBoxSize() const { return boxSize; }
40 [[nodiscard]] float getBoxRadius() const { return boxRadius; }
41 [[nodiscard]] float getLabelOffset() const { return labelOffset; }
42
43 void setBoxSize(float s) { boxSize = s; }
44 void setBoxRadius(float r) { boxRadius = r; }
45 void setLabelOffset(float o) { labelOffset = o; }
46 };
47
48} // namespace ml
49
50#endif // MALENA_CHECKBOXSETTINGS_H
Definition Component.h:22
Layout and behaviour settings for Checkbox.
void setBoxRadius(float r)
CheckboxSettings & operator=(const ControlSettings &c)
CheckboxSettings & operator=(const GraphicSettings &g)
float getLabelOffset() const
void setLabelOffset(float o)
float getBoxRadius() const
Settings trait for interactive UI controls — layout only.
Base settings trait for all visual components — geometry only.