pub struct ResizeEvent {
pub split: Split,
pub ratio: f32,
}Expand description
An event produced during a resize interaction of a PaneGrid.
Fields§
§split: SplitThe Split that is being dragged for resizing.
ratio: f32The new ratio of the Split.
The ratio is a value in [0, 1], representing the exact position of a
Split between two panes.
Trait Implementations§
Source§impl Clone for ResizeEvent
impl Clone for ResizeEvent
Source§fn clone(&self) -> ResizeEvent
fn clone(&self) -> ResizeEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ResizeEvent
impl Debug for ResizeEvent
impl Copy for ResizeEvent
Auto Trait Implementations§
impl Freeze for ResizeEvent
impl RefUnwindSafe for ResizeEvent
impl Send for ResizeEvent
impl Sync for ResizeEvent
impl Unpin for ResizeEvent
impl UnsafeUnpin for ResizeEvent
impl UnwindSafe for ResizeEvent
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