pub struct SplitProps {
pub axis: SplitAxis,
pub fraction: f64,
pub min_pane: f64,
}Expand description
A kinds::SPLIT (docs/split.md): two panes with a divider the user drags. The first
pane’s share is Day-owned state (the piece’s bound signal): the props carry the value
to draw, SplitPatch::Fraction keeps it current, and a divider the user moved
reports back as crate::Event::ValueChanged with the new share, which applying the
patch must never re-emit (the from-native echo rule).
Fields§
§axis: SplitAxis§fraction: f64The first pane’s share of the split’s length along axis, 0.0..=1.0.
min_pane: f64The least length either pane may be dragged to, in points.
Trait Implementations§
Source§impl Clone for SplitProps
impl Clone for SplitProps
Source§fn clone(&self) -> SplitProps
fn clone(&self) -> SplitProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SplitProps
impl Debug for SplitProps
Source§impl PartialEq for SplitProps
impl PartialEq 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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more