[][src]Struct qt_widgets::q_abstract_item_view::ScrollMode

#[repr(transparent)]
pub struct ScrollMode(_);

Describes how the scrollbar should behave. When setting the scroll mode to ScrollPerPixel the single step size will adjust automatically unless it was set explicitly using setSingleStep(). The automatic adjustment can be restored by setting the single step size to -1.

C++ enum: QAbstractItemView::ScrollMode.

C++ documentation:

Describes how the scrollbar should behave. When setting the scroll mode to ScrollPerPixel the single step size will adjust automatically unless it was set explicitly using setSingleStep(). The automatic adjustment can be restored by setting the single step size to -1.

This enum was introduced or modified in Qt 4.2.

Methods

impl ScrollMode[src]

pub fn to_int(&self) -> c_int[src]

impl ScrollMode[src]

pub const ScrollPerItem: ScrollMode[src]

The view will scroll the contents one item at a time. (C++ enum variant: ScrollPerItem = 0)

pub const ScrollPerPixel: ScrollMode[src]

The view will scroll the contents one pixel at a time. (C++ enum variant: ScrollPerPixel = 1)

Trait Implementations

impl Clone for ScrollMode[src]

impl Copy for ScrollMode[src]

impl Debug for ScrollMode[src]

impl Eq for ScrollMode[src]

impl From<ScrollMode> for c_int[src]

impl From<i32> for ScrollMode[src]

impl PartialEq<ScrollMode> for ScrollMode[src]

impl StructuralEq for ScrollMode[src]

impl StructuralPartialEq for ScrollMode[src]

Auto Trait Implementations

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, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.