InitOptions
Fields
- direction:enums.Direction
How to split the two panes (.horizontal first pane on left).
- collapsed_size:f32
If smaller (logical size) in direction, only show one pane.
- split_ratio:?*f32
Use to save/control the split externally.
- uncollapse_ratio:?f32
When uncollapsing, the split ratio will be set to this value.
- handle_size:f32
Thickness (logical) of sash handle. If handle_dynamic is not null,
- handle_dynamic:?struct { /// Handle thickness is between handle_size (min) and handle_size_max /// (max) based on how close the mouse is. handle_size_max: f32 = 10, /// Show and dynamically adjust size of sash handle when mouse is /// closer than this (logical). distance_max: f32 = 20, }
- ?struct { /// Handle thickness is between handle_size (min) and handle_size_max /// (max) based on how close the mouse is. handle_size_max: f32 = 10, /// Show and dynamically adjust size of sash handle when mouse is /// closer than this (logical). distance_max: f32 = 20, }
- handle_margin:f32
Logical pixels of space added on each side of the sash handle when
- autofit_first:?AutoFitOptions
Used so that the split_ratio will be set dynamically so that the first side
- draw_in_deinit:bool
Whether to call draw in deinit if not called before.