#[repr(C)]pub struct SplitPaneStateWrapper {
pub inner: SplitPaneState,
pub on_resize: OptionSplitPaneOnResize,
pub is_dragging: bool,
pub drag_start_px: f32,
pub ratio_at_drag_start: f32,
}Fields§
§inner: SplitPaneStateThe user-visible orientation + split ratio.
on_resize: OptionSplitPaneOnResizeOptional: function to call when the split ratio changes.
is_dragging: booltrue while a divider drag is in flight (mirrors map::MapTileCache::drag_anchor).
Transient — not part of the user-visible SplitPaneState.
drag_start_px: f32Cursor main-axis position (relative to the container) at drag start.
ratio_at_drag_start: f32Split ratio captured at drag start (the anchor for the delta-based update).
Trait Implementations§
Source§impl Clone for SplitPaneStateWrapper
impl Clone for SplitPaneStateWrapper
Source§fn clone(&self) -> SplitPaneStateWrapper
fn clone(&self) -> SplitPaneStateWrapper
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 SplitPaneStateWrapper
impl Debug for SplitPaneStateWrapper
Source§impl Default for SplitPaneStateWrapper
impl Default for SplitPaneStateWrapper
Source§fn default() -> SplitPaneStateWrapper
fn default() -> SplitPaneStateWrapper
Returns the “default value” for a type. Read more
Source§impl PartialEq for SplitPaneStateWrapper
impl PartialEq for SplitPaneStateWrapper
impl StructuralPartialEq for SplitPaneStateWrapper
Auto Trait Implementations§
impl Freeze for SplitPaneStateWrapper
impl RefUnwindSafe for SplitPaneStateWrapper
impl Send for SplitPaneStateWrapper
impl Sync for SplitPaneStateWrapper
impl Unpin for SplitPaneStateWrapper
impl UnsafeUnpin for SplitPaneStateWrapper
impl UnwindSafe for SplitPaneStateWrapper
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more