[][src]Struct qt_widgets::q_layout::SizeConstraint

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

The possible values are:

C++ enum: QLayout::SizeConstraint.

C++ documentation:

The possible values are:

See also setSizeConstraint().

Methods

impl SizeConstraint[src]

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

impl SizeConstraint[src]

pub const SetDefaultConstraint: SizeConstraint[src]

The main widget's minimum size is set to minimumSize(), unless the widget already has a minimum size. (C++ enum variant: SetDefaultConstraint = 0)

pub const SetNoConstraint: SizeConstraint[src]

The widget is not constrained. (C++ enum variant: SetNoConstraint = 1)

pub const SetMinimumSize: SizeConstraint[src]

The main widget's minimum size is set to minimumSize(); it cannot be smaller. (C++ enum variant: SetMinimumSize = 2)

pub const SetFixedSize: SizeConstraint[src]

The main widget's size is set to sizeHint(); it cannot be resized at all. (C++ enum variant: SetFixedSize = 3)

pub const SetMaximumSize: SizeConstraint[src]

The main widget's maximum size is set to maximumSize(); it cannot be larger. (C++ enum variant: SetMaximumSize = 4)

pub const SetMinAndMaxSize: SizeConstraint[src]

The main widget's minimum size is set to minimumSize() and its maximum size is set to maximumSize(). (C++ enum variant: SetMinAndMaxSize = 5)

Trait Implementations

impl Eq for SizeConstraint[src]

impl Clone for SizeConstraint[src]

impl PartialEq<SizeConstraint> for SizeConstraint[src]

impl From<i32> for SizeConstraint[src]

impl From<SizeConstraint> for c_int[src]

impl Copy for SizeConstraint[src]

impl Debug for SizeConstraint[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]