Loading...
Searching...
No Matches
AccordionSettings.h
Go to the documentation of this file.
1
2#ifndef MALENA_ACCORDIONSETTINGS_H
3#define MALENA_ACCORDIONSETTINGS_H
4
5#pragma once
6
9
10namespace ml
11{
13 {
14 float headerHeight = 40.f;
15 float chevronSize = 8.f;
16 float chevronRight = 14.f;
17 bool exclusive = true;
18
20 { static_cast<ControlSettings&>(*this) = c; return *this; }
21
23 { static_cast<ControlSettings&>(*this) = g; return *this; }
24
25 [[nodiscard]] float getHeaderHeight() const { return headerHeight; }
26 [[nodiscard]] float getChevronSize() const { return chevronSize; }
27 [[nodiscard]] bool getExclusive() const { return exclusive; }
28
29 void setHeaderHeight(float h) { headerHeight = h; }
30 void setChevronSize(float s) { chevronSize = s; }
31 void setExclusive(bool e) { exclusive = e; }
32 };
33
34} // namespace ml
35
36#endif // MALENA_ACCORDIONSETTINGS_H
Definition Component.h:22
AccordionSettings & operator=(const GraphicSettings &g)
bool exclusive
Only one section open at a time.
float chevronRight
Right margin for the chevron.
void setHeaderHeight(float h)
float getHeaderHeight() const
AccordionSettings & operator=(const ControlSettings &c)
Settings trait for interactive UI controls — layout only.
Base settings trait for all visual components — geometry only.