[][src]Struct qt_core::ScrollBarPolicy

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

This enum type describes the various modes of QAbstractScrollArea's scroll bars.

C++ enum: Qt::ScrollBarPolicy.

C++ documentation:

This enum type describes the various modes of QAbstractScrollArea's scroll bars.

(The modes for the horizontal and vertical scroll bars are independent.)

Methods

impl ScrollBarPolicy[src]

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

impl ScrollBarPolicy[src]

pub const ScrollBarAsNeeded: ScrollBarPolicy[src]

QAbstractScrollArea shows a scroll bar when the content is too large to fit and not otherwise. This is the default. (C++ enum variant: ScrollBarAsNeeded = 0)

pub const ScrollBarAlwaysOff: ScrollBarPolicy[src]

QAbstractScrollArea never shows a scroll bar. (C++ enum variant: ScrollBarAlwaysOff = 1)

pub const ScrollBarAlwaysOn: ScrollBarPolicy[src]

QAbstractScrollArea always shows a scroll bar. This property is ignored on systems with transient scroll bars (e.g., on Mac from version 10.7). (C++ enum variant: ScrollBarAlwaysOn = 2)

Trait Implementations

impl Clone for ScrollBarPolicy[src]

impl Copy for ScrollBarPolicy[src]

impl Debug for ScrollBarPolicy[src]

impl Eq for ScrollBarPolicy[src]

impl From<ScrollBarPolicy> for c_int[src]

impl From<i32> for ScrollBarPolicy[src]

impl PartialEq<ScrollBarPolicy> for ScrollBarPolicy[src]

impl StructuralEq for ScrollBarPolicy[src]

impl StructuralPartialEq for ScrollBarPolicy[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.