Loading...
Searching...
No Matches
CheckboxGroupSettings.h
Go to the documentation of this file.
1//
2// CheckboxGroupSettings.h
3//
4
5#ifndef MALENA_CHECKBOXGROUPSETTINGS_H
6#define MALENA_CHECKBOXGROUPSETTINGS_H
7
8#pragma once
9
12
13namespace ml
14{
30 {
31 float spacing = 28.f;
32 float bgRadius = 0.f;
33 float bgOutlineThickness = 0.f;
34 bool showBackground = false;
35
36 // ── Assignment from parent levels ─────────────────────────────────────
37
39 { static_cast<CheckboxSettings&>(*this) = c; return *this; }
40
42 { static_cast<CheckboxSettings&>(*this) = c; return *this; }
43
45 { static_cast<CheckboxSettings&>(*this) = g; return *this; }
46
47 // ── Getters / setters ─────────────────────────────────────────────────
48
49 [[nodiscard]] float getSpacing() const { return spacing; }
50 [[nodiscard]] float getBgRadius() const { return bgRadius; }
51 [[nodiscard]] float getBgOutlineThickness() const { return bgOutlineThickness; }
52 [[nodiscard]] bool getShowBackground() const { return showBackground; }
53
54 void setSpacing(float s) { spacing = s; }
55 void setBgRadius(float r) { bgRadius = r; }
57 void setShowBackground(bool b) { showBackground = b; }
58 };
59
60} // namespace ml
61
62#endif // MALENA_CHECKBOXGROUPSETTINGS_H
Definition Component.h:22
Layout and behaviour settings for CheckboxGroup.
CheckboxGroupSettings & operator=(const ControlSettings &c)
CheckboxGroupSettings & operator=(const CheckboxSettings &c)
CheckboxGroupSettings & operator=(const GraphicSettings &g)
Layout and behaviour settings for Checkbox.
Settings trait for interactive UI controls — layout only.
Base settings trait for all visual components — geometry only.