Loading...
Searching...
No Matches
ListItemSettings.h
Go to the documentation of this file.
1//
2// ListItemSettings.h
3//
4
5#ifndef MALENA_LISTITEMSETTINGS_H
6#define MALENA_LISTITEMSETTINGS_H
7
8#pragma once
9
12
13namespace ml
14{
25 {
26 float rowHeight = 0.f;
27 float slotGap = 8.f;
28
29 // ── Assignment from parent levels ─────────────────────────────────────
30
32 { static_cast<ControlSettings&>(*this) = c; return *this; }
33
35 { static_cast<ControlSettings&>(*this) = g; return *this; }
36
37 // ── Getters / setters ─────────────────────────────────────────────────
38
39 [[nodiscard]] float getRowHeight() const { return rowHeight; }
40 [[nodiscard]] float getSlotGap() const { return slotGap; }
41
42 void setRowHeight(float h) { rowHeight = h; }
43 void setSlotGap(float g) { slotGap = g; }
44 };
45
46} // namespace ml
47
48#endif // MALENA_LISTITEMSETTINGS_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 ListItem.
ListItemSettings & operator=(const GraphicSettings &g)
ListItemSettings & operator=(const ControlSettings &c)
float rowHeight
0 = auto-sized from content
void setRowHeight(float h)
float slotGap
Pixel gap between start / content / end slots.
float getRowHeight() const