Loading...
Searching...
No Matches
TabbedPanelSettings.h
Go to the documentation of this file.
1// TabbedPanelSettings.h
2#ifndef MALENA_TABBEDPANELSETTINGS_H
3#define MALENA_TABBEDPANELSETTINGS_H
4#pragma once
7
8namespace ml
9{
11 {
12 enum class TabPosition { TOP, BOTTOM, LEFT, RIGHT };
13
15 float tabHeight = 36.f;
16 float tabMinWidth = 80.f;
17 float tabMaxWidth = 200.f;
18 float iconSize = 16.f;
19 bool closeable = false;
20 float closeSize = 14.f;
21
23 { static_cast<ControlSettings&>(*this) = c; return *this; }
25 { static_cast<ControlSettings&>(*this) = g; return *this; }
26
28 void setTabHeight(float h) { tabHeight = h; }
29 void setTabMinWidth(float w) { tabMinWidth = w; }
30 void setTabMaxWidth(float w) { tabMaxWidth = w; }
31 void setIconSize(float s) { iconSize = s; }
32 void setCloseable(bool b) { closeable = b; }
33 };
34} // namespace ml
35#endif
Definition Component.h:22
Settings trait for interactive UI controls — layout only.
Base settings trait for all visual components — geometry only.
float tabMinWidth
minimum tab label width
void setTabPosition(TabPosition p)
float iconSize
icon square size
float tabHeight
thickness of the tab strip
float tabMaxWidth
maximum tab label width
TabbedPanelSettings & operator=(const GraphicSettings &g)
bool closeable
show × on all tabs by default
TabbedPanelSettings & operator=(const ControlSettings &c)