Loading...
Searching...
No Matches
RadioGroupSettings.h
Go to the documentation of this file.
1//
2// RadioGroupSettings.h
3//
4
5#ifndef MALENA_RADIOGROUPSETTINGS_H
6#define MALENA_RADIOGROUPSETTINGS_H
7
8#pragma once
9
12
13namespace ml
14{
27 {
28 float spacing = 28.f;
29 float bgRadius = 0.f;
30 float bgOutlineThickness = 0.f;
31 bool showBackground = false;
32
33 // ── Assignment from parent levels ─────────────────────────────────────
34
36 { static_cast<RadioButtonSettings&>(*this) = r; return *this; }
37
39 { static_cast<RadioButtonSettings&>(*this) = c; return *this; }
40
42 { static_cast<RadioButtonSettings&>(*this) = g; return *this; }
43
44 // ── Getters / setters ─────────────────────────────────────────────────
45
46 [[nodiscard]] float getSpacing() const { return spacing; }
47 [[nodiscard]] float getBgRadius() const { return bgRadius; }
48 [[nodiscard]] float getBgOutlineThickness() const { return bgOutlineThickness; }
49 [[nodiscard]] bool getShowBackground() const { return showBackground; }
50
51 void setSpacing(float s) { spacing = s; }
52 void setBgRadius(float r) { bgRadius = r; }
54 void setShowBackground(bool b) { showBackground = b; }
55 };
56
57} // namespace ml
58
59#endif // MALENA_RADIOGROUPSETTINGS_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.
Layout and behaviour settings for RadioGroup.
RadioGroupSettings & operator=(const ControlSettings &c)
float getBgOutlineThickness() const
RadioGroupSettings & operator=(const RadioButtonSettings &r)
void setBgOutlineThickness(float t)
RadioGroupSettings & operator=(const GraphicSettings &g)