Loading...
Searching...
No Matches
MenuBarSettings.h
Go to the documentation of this file.
1// MenuBarSettings.h
2#ifndef MALENA_MENUBARSETTINGS_H
3#define MALENA_MENUBARSETTINGS_H
4#pragma once
7
8namespace ml
9{
11 {
12 float barHeight = 30.f;
13 float entryPadding = 14.f;
14 float leftInset = 0.f;
15 float dropdownItemH = 28.f;
16 float dropdownMinW = 180.f;
17 float dropdownBorderThk = 1.f;
18 bool autoFillWidth = true;
19
21 { static_cast<ControlSettings&>(*this) = c; return *this; }
23 { static_cast<ControlSettings&>(*this) = g; return *this; }
24
25 void setBarHeight(float h) { barHeight = h; }
26 void setEntryPadding(float p) { entryPadding = p; }
27 void setDropdownItemH(float h) { dropdownItemH = h; }
28 void setDropdownMinW(float w) { dropdownMinW = w; }
29 void setAutoFillWidth(bool b) { autoFillWidth = b; }
30 };
31} // namespace ml
32#endif
Definition Component.h:22
Settings trait for interactive UI controls — layout only.
Base settings trait for all visual components — geometry only.
void setDropdownItemH(float h)
float entryPadding
horizontal padding per entry label
MenuBarSettings & operator=(const GraphicSettings &g)
MenuBarSettings & operator=(const ControlSettings &c)
float leftInset
extra space reserved on the left before entries
float dropdownItemH
height of each dropdown row
void setBarHeight(float h)
void setAutoFillWidth(bool b)
void setEntryPadding(float p)
void setDropdownMinW(float w)