pub struct SplitProps {Show 21 fields
pub class: Classes,
pub sizes: Option<Vec<f64>>,
pub min_size: Option<f64>,
pub min_sizes: Option<Vec<f64>>,
pub max_size: Option<f64>,
pub max_sizes: Option<Vec<f64>>,
pub expand_to_min: Option<bool>,
pub gutter_size: Option<f64>,
pub gutter_align: Option<GutterAlign>,
pub snap_offset: Option<f64>,
pub drag_interval: Option<f64>,
pub direction: Option<Direction>,
pub cursor: Option<Cursor>,
pub gutter: Function,
pub element_style: Option<Function>,
pub gutter_style: Option<Function>,
pub on_drag: Option<Function>,
pub on_drag_start: Option<Function>,
pub on_drag_end: Option<Function>,
pub collapsed: Option<usize>,
pub children: Children,
}Fields§
§class: ClassesClasses to apply to the split container element
sizes: Option<Vec<f64>>Initial sizes of each element
min_size: Option<f64>Minimum size of all elements (if min_sizes is specified, this will be ignored)
min_sizes: Option<Vec<f64>>Minimum size of each element
max_size: Option<f64>Maximum size of all elements (if max_sizes is specified, this will be ignored)
max_sizes: Option<Vec<f64>>Maximum size of each element
expand_to_min: Option<bool>Grow initial sizes to min_size (default: false)
gutter_size: Option<f64>Gutter size in pixels (default: 10)
gutter_align: Option<GutterAlign>Gutter alignment between elements (default: GutterAlign::Center)
snap_offset: Option<f64>Snap to minimum size offset in pixels (default: 30)
drag_interval: Option<f64>Number of pixels to drag (default: 1)
direction: Option<Direction>Direction to split: horizontal or vertical (default: Direction::Horizontal)
cursor: Option<Cursor>Cursor to display while dragging (default: Cursor::ColResize)
gutter: FunctionCalled to create each gutter element
element_style: Option<Function>Called to set the style of each element
gutter_style: Option<Function>Called to set the style of the gutter
on_drag: Option<Function>Called on drag
on_drag_start: Option<Function>Called on drag start
on_drag_end: Option<Function>Called on drag end
collapsed: Option<usize>§children: ChildrenTrait Implementations§
Source§impl Clone for SplitProps
impl Clone for SplitProps
Source§fn clone(&self) -> SplitProps
fn clone(&self) -> SplitProps
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for SplitProps
impl PartialEq for SplitProps
Source§impl Properties for SplitProps
impl Properties for SplitProps
impl StructuralPartialEq for SplitProps
Auto Trait Implementations§
impl Freeze for SplitProps
impl !RefUnwindSafe for SplitProps
impl !Send for SplitProps
impl !Sync for SplitProps
impl Unpin for SplitProps
impl !UnwindSafe for SplitProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
self to a value of a Properties struct.