#[non_exhaustive]pub enum ScrollType {
TopLeft,
BottomRight,
TopEdge,
BottomEdge,
LeftEdge,
RightEdge,
Anywhere,
}v2_30 only.Expand description
Specifies where an object should be placed on the screen when using scroll_to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TopLeft
Scroll the object vertically and horizontally to bring its top left corner to the top left corner of the window.
BottomRight
Scroll the object vertically and horizontally to bring its bottom right corner to the bottom right corner of the window.
TopEdge
Scroll the object vertically to bring its top edge to the top edge of the window.
BottomEdge
Scroll the object vertically to bring its bottom edge to the bottom edge of the window.
LeftEdge
Scroll the object vertically and horizontally to bring its left edge to the left edge of the window.
RightEdge
Scroll the object vertically and horizontally to bring its right edge 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.
Trait Implementations§
Source§impl Clone for ScrollType
impl Clone for ScrollType
Source§fn clone(&self) -> ScrollType
fn clone(&self) -> ScrollType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ScrollType
Source§impl Debug for ScrollType
impl Debug for ScrollType
Source§impl Display for ScrollType
impl Display for ScrollType
impl Eq for ScrollType
Source§impl From<ScrollType> for Value
impl From<ScrollType> for Value
Source§fn from(v: ScrollType) -> Self
fn from(v: ScrollType) -> Self
Source§impl<'a> FromValue<'a> for ScrollType
impl<'a> FromValue<'a> for ScrollType
Source§type Checker = GenericValueTypeChecker<ScrollType>
type Checker = GenericValueTypeChecker<ScrollType>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for ScrollType
impl HasParamSpec for ScrollType
type ParamSpec = ParamSpecEnum
Source§type SetValue = ScrollType
type SetValue = ScrollType
type BuilderFn = fn(&str, ScrollType) -> ParamSpecEnumBuilder<'_, ScrollType>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for ScrollType
impl Hash for ScrollType
Source§impl Ord for ScrollType
impl Ord for ScrollType
Source§fn cmp(&self, other: &ScrollType) -> Ordering
fn cmp(&self, other: &ScrollType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ScrollType
impl PartialEq for ScrollType
Source§impl PartialOrd for ScrollType
impl PartialOrd for ScrollType
Source§impl StaticType for ScrollType
impl StaticType for ScrollType
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl StructuralPartialEq for ScrollType
Source§impl ToValue for ScrollType
impl ToValue for ScrollType
Source§impl ValueType for ScrollType
impl ValueType for ScrollType
Source§type Type = ScrollType
type Type = ScrollType
Type from. Read moreAuto Trait Implementations§
impl Freeze for ScrollType
impl RefUnwindSafe for ScrollType
impl Send for ScrollType
impl Sync for ScrollType
impl Unpin for ScrollType
impl UnsafeUnpin for ScrollType
impl UnwindSafe for ScrollType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.