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