SplitProps

Struct SplitProps 

Source
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: Classes

Classes 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: Function

Called 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: Children

Trait Implementations§

Source§

impl Clone for SplitProps

Source§

fn clone(&self) -> SplitProps

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for SplitProps

Source§

fn eq(&self, other: &SplitProps) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Properties for SplitProps

Source§

type Builder = SplitPropsBuilder

Builder that will be used to construct properties
Source§

fn builder() -> Self::Builder

Entrypoint for building properties
Source§

impl StructuralPartialEq for SplitProps

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoPropValue<Option<T>> for T

Source§

fn into_prop_value(self) -> Option<T>

Convert self to a value of a Properties struct.
Source§

impl<T> IntoPropValue<T> for T

Source§

fn into_prop_value(self) -> T

Convert self to a value of a Properties struct.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<Token, Builder, How> AllPropsFor<Builder, How> for Token
where Builder: Buildable<Token>, <Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,

Source§

impl<T> HasAllProps<(), T> for T