[][src]Struct qt_widgets::q_size_policy::PolicyFlag

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

These flags are combined together to form the various Policy values:

C++ enum: QSizePolicy::PolicyFlag.

C++ documentation:

These flags are combined together to form the various Policy values:

See also Policy.

Methods

impl PolicyFlag[src]

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

impl PolicyFlag[src]

pub const GrowFlag: PolicyFlag[src]

The widget can grow beyond its size hint if necessary. (C++ enum variant: GrowFlag = 1)

pub const ExpandFlag: PolicyFlag[src]

The widget should get as much space as possible. (C++ enum variant: ExpandFlag = 2)

pub const ShrinkFlag: PolicyFlag[src]

The widget can shrink below its size hint if necessary. (C++ enum variant: ShrinkFlag = 4)

pub const IgnoreFlag: PolicyFlag[src]

The widget's size hint is ignored. The widget will get as much space as possible. (C++ enum variant: IgnoreFlag = 8)

Trait Implementations

impl Eq for PolicyFlag[src]

impl Clone for PolicyFlag[src]

impl PartialEq<PolicyFlag> for PolicyFlag[src]

impl From<i32> for PolicyFlag[src]

impl From<PolicyFlag> for c_int[src]

impl Copy for PolicyFlag[src]

impl Debug for PolicyFlag[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]