#[non_exhaustive]pub enum DragMode {
Push,
Pull,
}๐Deprecated since 0.5.0: moved to egui_stack::sections::plan, re-exported as egui_pop_core::sections::plan; this copy goes in the next release
Expand description
How a drag moves the sections around a boundary.
Variants (Non-exhaustive)ยง
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Push
๐Deprecated since 0.5.0: moved to egui_stack::sections::plan, re-exported as egui_pop_core::sections::plan; this copy goes in the next release
Down, the sections below give way, the nearest first, then the last is pushed into the empty room under it, then it gives way. Up, the section above gives way, then those above it, the nearest first, and the first open section below takes all the room.
Pull
๐Deprecated since 0.5.0: moved to egui_stack::sections::plan, re-exported as egui_pop_core::sections::plan; this copy goes in the next release
The sections below follow as a block, keeping their heights: only the section above changes. Up, it gives way, then those above it, the nearest first, and empty room opens under the last. Down, the block goes into the empty room, then the last section alone gives way, and the drag stops.
Trait Implementationsยง
impl Copy for DragMode
impl Eq for DragMode
impl StructuralPartialEq for DragMode
Auto Trait Implementationsยง
impl Freeze for DragMode
impl RefUnwindSafe for DragMode
impl Send for DragMode
impl Sync for DragMode
impl Unpin for DragMode
impl UnsafeUnpin for DragMode
impl UnwindSafe for DragMode
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