Struct split_yew::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 PartialEq<SplitProps> for SplitProps

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Properties for SplitProps

§

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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<T> HasAllProps<(), T> for T