Enum zng_view_api::access::ScrollCmd
source · pub enum ScrollCmd {
PageUp,
PageDown,
PageLeft,
PageRight,
ScrollTo,
ScrollToRect(PxRect),
}Expand description
Accessibility scroll command.
The command must run in the context of the target widow and widget, see AccessCmd::Scroll for more details.
Variants§
PageUp
Scroll page up.
If the scroll-box only scrolls horizontally this is the same as ScrollLeft.
PageDown
Scroll page down.
If the scroll-box only scrolls horizontally this is the same as ScrollRight.
PageLeft
Scroll page left.
PageRight
Scroll page right.
ScrollTo
Scroll until the widget is fully visible.
ScrollToRect(PxRect)
Scroll until the rectangle (in the widget space) is fully visible.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ScrollCmd
impl<'de> Deserialize<'de> for ScrollCmd
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
source§impl PartialEq for ScrollCmd
impl PartialEq for ScrollCmd
impl StructuralPartialEq for ScrollCmd
Auto Trait Implementations§
impl Freeze for ScrollCmd
impl RefUnwindSafe for ScrollCmd
impl Send for ScrollCmd
impl Sync for ScrollCmd
impl Unpin for ScrollCmd
impl UnwindSafe for ScrollCmd
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