[][src]Struct qt_core::SizeHint

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

This enum is used by QGraphicsLayoutItem::sizeHint()

C++ enum: Qt::SizeHint.

C++ documentation:

This enum is used by QGraphicsLayoutItem::sizeHint()

This enum was introduced or modified in Qt 4.4.

See also QGraphicsLayoutItem::sizeHint().

Methods

impl SizeHint[src]

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

impl SizeHint[src]

pub const MinimumSize: SizeHint[src]

is used to specify the minimum size of a graphics layout item. (C++ enum variant: MinimumSize = 0)

pub const PreferredSize: SizeHint[src]

is used to specify the preferred size of a graphics layout item. (C++ enum variant: PreferredSize = 1)

pub const MaximumSize: SizeHint[src]

is used to specify the maximum size of a graphics layout item. (C++ enum variant: MaximumSize = 2)

pub const MinimumDescent: SizeHint[src]

is used to specify the minimum descent of a text string in a graphics layout item. (C++ enum variant: MinimumDescent = 3)

pub const NSizeHints: SizeHint[src]

C++ enum variant: NSizeHints = 4

Trait Implementations

impl Clone for SizeHint[src]

impl Copy for SizeHint[src]

impl Debug for SizeHint[src]

impl Eq for SizeHint[src]

impl From<SizeHint> for c_int[src]

impl From<i32> for SizeHint[src]

impl PartialEq<SizeHint> for SizeHint[src]

impl StructuralEq for SizeHint[src]

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