Loading...
Searching...
No Matches
SplitPanelSettings.h
Go to the documentation of this file.
1// SplitPanelSettings.h
2#ifndef MALENA_SPLITPANELSETTINGS_H
3#define MALENA_SPLITPANELSETTINGS_H
4#pragma once
7
8namespace ml
9{
11 {
13 enum class HandleStyle { THIN, GRIP };
14
17 float dividerThick = 4.f;
18 float minPaneSize = 40.f;
19 bool resizable = true;
20
22 { static_cast<ControlSettings&>(*this) = c; return *this; }
24 { static_cast<ControlSettings&>(*this) = g; return *this; }
25
28 void setDividerThick(float t) { dividerThick = t; }
29 void setMinPaneSize(float s) { minPaneSize = s; }
30 void setResizable(bool b) { resizable = b; }
31 };
32} // namespace ml
33#endif
Definition Component.h:22
Settings trait for interactive UI controls — layout only.
Base settings trait for all visual components — geometry only.
void setHandleStyle(HandleStyle s)
float dividerThick
draggable zone width/height
float minPaneSize
global minimum per pane
void setOrientation(Orientation o)
SplitPanelSettings & operator=(const GraphicSettings &g)
SplitPanelSettings & operator=(const ControlSettings &c)