|
Ultralight C++ API 2.0.0
|
#include <AppCore/layout/DividerStyle.h>
Line thickness, colors, and grab width for draggable pane dividers.
Resizable Containers place draggable dividers between direct children so users can adjust split panes in a window. DividerStyle controls the appearance of those dividers and the size of their pointer hit target.
Pass a style to Window::SetDividerStyle() to format dividers across the window:
You can configure dividers across the window or on an individual container:
Set an override on a container to change specific properties:
Public Attributes | |
| double | hit_width = 0.0 |
| The width of the divider's pointer target, in logical px. | |
| double | visual_thickness = 0.0 |
| The thickness of the painted divider line, in logical px. | |
| Color | color |
| The color of the divider line. | |
| Color | hover_color |
| The hover highlight color, painted over the divider while the pointer rests on it or drags it. | |
| Color color |
The color of the divider line.
Unset means no line is painted and the window background shows through.
| double hit_width = 0.0 |
The width of the divider's pointer target, in logical px.
(Default: 6)
| Color hover_color |
The hover highlight color, painted over the divider while the pointer rests on it or drags it.
(Default: a half-opacity gray)
| double visual_thickness = 0.0 |
The thickness of the painted divider line, in logical px.
(Default: 1)