[][src]Enum atk::ScrollType

#[non_exhaustive]pub enum ScrollType {
    TopLeft,
    BottomRight,
    TopEdge,
    BottomEdge,
    LeftEdge,
    RightEdge,
    Anywhere,
    // some variants omitted
}

Specifies where an object should be placed on the screen when using scroll_to.

Variants (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.
TopLeft

Scroll the object vertically and horizontally to the top left corner of the window.

BottomRight

Scroll the object vertically and horizontally to the bottom right corner of the window.

TopEdge

Scroll the object vertically to the top edge of the window.

BottomEdge

Scroll the object vertically to the bottom edge of the window.

LeftEdge

Scroll the object vertically and horizontally to the left edge of the window.

RightEdge

Scroll the object vertically and horizontally to the right edge of the window.

Anywhere

Scroll the object vertically and horizontally so that as much as possible of the object becomes visible. The exact placement is determined by the application.

Feature: v2_30

Trait Implementations

impl Clone for ScrollType[src]

impl Copy for ScrollType[src]

impl Debug for ScrollType[src]

impl Display for ScrollType[src]

impl Eq for ScrollType[src]

impl<'a> FromValue<'a> for ScrollType[src]

impl<'a> FromValueOptional<'a> for ScrollType[src]

impl Hash for ScrollType[src]

impl Ord for ScrollType[src]

impl PartialEq<ScrollType> for ScrollType[src]

impl PartialOrd<ScrollType> for ScrollType[src]

impl SetValue for ScrollType[src]

impl StaticType for ScrollType[src]

impl StructuralEq for ScrollType[src]

impl StructuralPartialEq for ScrollType[src]

Auto Trait Implementations

impl RefUnwindSafe for ScrollType

impl Send for ScrollType

impl Sync for ScrollType

impl Unpin for ScrollType

impl UnwindSafe for ScrollType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.