Loading...
Searching...
No Matches
SegmentStyle.h
Go to the documentation of this file.
1//
2// SegmentStyle.h
3//
4
5#ifndef MALENA_SEGMENTSTYLE_H
6#define MALENA_SEGMENTSTYLE_H
7
8#pragma once
9
13
14namespace ml
15{
25 {
27 { static_cast<SegmentSettings&>(*this) = s; return *this; }
28
30 { static_cast<SegmentTheme&>(*this) = t; return *this; }
31
33 { static_cast<SegmentTheme&>(*this) = t; return *this; }
34
36 { static_cast<SegmentTheme&>(*this) = c; return *this; }
37
39 { static_cast<SegmentTheme&>(*this) = g; return *this; }
40
42 { static_cast<SegmentSettings&>(*this) = t; return *this; }
43
45 { static_cast<SegmentSettings&>(*this) = c; return *this; }
46
48 { SegmentTheme::applyFrom(t); return *this; }
49 };
50
51} // namespace ml
52
53#endif // MALENA_SEGMENTSTYLE_H
Definition Component.h:22
Settings trait for interactive UI controls — layout only.
Theme tokens for interactive UI controls.
Theme tokens for all visual components.
Layout and behaviour settings for SegmentToggle.
Complete style descriptor for SegmentToggle.
SegmentStyle & operator=(const SegmentTheme &t)
SegmentStyle & operator=(const GraphicTheme &g)
SegmentStyle & operator=(const ControlTheme &c)
SegmentStyle & operator=(const ControlSettings &c)
SegmentStyle & operator=(const SegmentSettings &s)
SegmentStyle & operator=(const ToggleTheme &t)
SegmentStyle & operator=(const ToggleSettings &t)
SegmentStyle & applyFrom(const Theme &t)
Populate all fields from the global Theme token set.
Theme tokens for the SegmentToggle (Hotels/Apartments style).
SegmentTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
Universal design token set applied across all Themeable components.
Definition Theme.h:70
Settings shared by all toggle variants — behaviour only.
Theme tokens shared by all toggle variants.
Definition ToggleTheme.h:31