[][src]Struct qt_widgets::q_abstract_scroll_area::SizeAdjustPolicy

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

This enum specifies how the size hint of the QAbstractScrollArea should adjust when the size of the viewport changes.

C++ enum: QAbstractScrollArea::SizeAdjustPolicy.

C++ documentation:

This enum specifies how the size hint of the QAbstractScrollArea should adjust when the size of the viewport changes.

This enum was introduced or modified in Qt 5.2.

Methods

impl SizeAdjustPolicy[src]

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

impl SizeAdjustPolicy[src]

pub const AdjustIgnored: SizeAdjustPolicy[src]

The scroll area will behave like before - and not do any adjust. (C++ enum variant: AdjustIgnored = 0)

pub const AdjustToContentsOnFirstShow: SizeAdjustPolicy[src]

The scroll area will adjust to its viewport the first time it is shown. (C++ enum variant: AdjustToContentsOnFirstShow = 1)

pub const AdjustToContents: SizeAdjustPolicy[src]

The scroll area will always adjust to the viewport (C++ enum variant: AdjustToContents = 2)

Trait Implementations

impl Clone for SizeAdjustPolicy[src]

impl Copy for SizeAdjustPolicy[src]

impl Debug for SizeAdjustPolicy[src]

impl Eq for SizeAdjustPolicy[src]

impl From<SizeAdjustPolicy> for c_int[src]

impl From<i32> for SizeAdjustPolicy[src]

impl PartialEq<SizeAdjustPolicy> for SizeAdjustPolicy[src]

impl StructuralEq for SizeAdjustPolicy[src]

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