pub enum NavScroll {
Factor(Vec2, bool),
DirectFactor(WidgetIdOrRef, Vec2, bool),
Units(Vec2, bool),
DirectUnits(WidgetIdOrRef, Vec2, bool),
Widget(WidgetIdOrRef, Vec2),
Change(Vec2, Vec2, bool),
}
Variants§
Factor(Vec2, bool)
(factor location, relative)
DirectFactor(WidgetIdOrRef, Vec2, bool)
(scroll view id or ref, factor location, relative)
Units(Vec2, bool)
(local space units location, relative)
DirectUnits(WidgetIdOrRef, Vec2, bool)
(scroll view id or ref, local space units location, relative)
Widget(WidgetIdOrRef, Vec2)
(id or ref, widget local space anchor point)
Change(Vec2, Vec2, bool)
(factor, content to container ratio, relative)
Trait Implementations§
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)