malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Traits
Settings
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
10
#include <
Malena/Core/malena_export.h
>
11
#include <
Malena/Traits/Settings/ControlSettings.h
>
12
13
namespace
ml
14
{
23
struct
RadioButtonSettings
:
ControlSettings
24
{
25
float
dotScale
= 0.5f;
26
float
labelOffset
= 8.f;
27
28
// ── Assignment from parent levels ─────────────────────────────────────
29
30
RadioButtonSettings
&
operator=
(
const
ControlSettings
& c)
31
{
static_cast<
ControlSettings
&
>
(*this) = c;
return
*
this
; }
32
33
RadioButtonSettings
&
operator=
(
const
GraphicSettings
& g)
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
ControlSettings.h
malena_export.h
ml
Definition
Component.h:22
ml::ControlSettings
Settings trait for interactive UI controls — layout only.
Definition
ControlSettings.h:24
ml::GraphicSettings
Base settings trait for all visual components — geometry only.
Definition
GraphicSettings.h:35
ml::RadioButtonSettings
Layout and behaviour settings for RadioButton.
Definition
RadioButtonSettings.h:24
ml::RadioButtonSettings::operator=
RadioButtonSettings & operator=(const ControlSettings &c)
Definition
RadioButtonSettings.h:30
ml::RadioButtonSettings::labelOffset
float labelOffset
Definition
RadioButtonSettings.h:26
ml::RadioButtonSettings::dotScale
float dotScale
Definition
RadioButtonSettings.h:25
ml::RadioButtonSettings::getDotScale
float getDotScale() const
Definition
RadioButtonSettings.h:38
ml::RadioButtonSettings::setLabelOffset
void setLabelOffset(float o)
Definition
RadioButtonSettings.h:42
ml::RadioButtonSettings::operator=
RadioButtonSettings & operator=(const GraphicSettings &g)
Definition
RadioButtonSettings.h:33
ml::RadioButtonSettings::getLabelOffset
float getLabelOffset() const
Definition
RadioButtonSettings.h:39
ml::RadioButtonSettings::setDotScale
void setDotScale(float s)
Definition
RadioButtonSettings.h:41