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<NavScroll, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NavScroll, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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