[][src]Struct qt_widgets::q_size_policy::ControlType

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

This enum specifies the different types of widgets in terms of layout interaction:

C++ enum: QSizePolicy::ControlType.

C++ documentation:

This enum specifies the different types of widgets in terms of layout interaction:

This enum was introduced or modified in Qt 4.3.

The ControlTypes type is a typedef for QFlags<ControlType>. It stores an OR combination of ControlType values.

See also setControlType() and controlType().

Methods

impl ControlType[src]

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

impl ControlType[src]

pub const DefaultType: ControlType[src]

The default type, when none is specified. (C++ enum variant: DefaultType = 1)

pub const ButtonBox: ControlType[src]

A QDialogButtonBox instance. (C++ enum variant: ButtonBox = 2)

pub const CheckBox: ControlType[src]

A QCheckBox instance. (C++ enum variant: CheckBox = 4)

pub const ComboBox: ControlType[src]

A QComboBox instance. (C++ enum variant: ComboBox = 8)

pub const Frame: ControlType[src]

A QFrame instance. (C++ enum variant: Frame = 16)

pub const GroupBox: ControlType[src]

A QGroupBox instance. (C++ enum variant: GroupBox = 32)

pub const Label: ControlType[src]

A QLabel instance. (C++ enum variant: Label = 64)

pub const Line: ControlType[src]

A QFrame instance with QFrame::HLine or QFrame::VLine. (C++ enum variant: Line = 128)

pub const LineEdit: ControlType[src]

A QLineEdit instance. (C++ enum variant: LineEdit = 256)

pub const PushButton: ControlType[src]

A QPushButton instance. (C++ enum variant: PushButton = 512)

pub const RadioButton: ControlType[src]

A QRadioButton instance. (C++ enum variant: RadioButton = 1024)

pub const Slider: ControlType[src]

A QAbstractSlider instance. (C++ enum variant: Slider = 2048)

pub const SpinBox: ControlType[src]

A QAbstractSpinBox instance. (C++ enum variant: SpinBox = 4096)

pub const TabWidget: ControlType[src]

A QTabWidget instance. (C++ enum variant: TabWidget = 8192)

pub const ToolButton: ControlType[src]

A QToolButton instance. (C++ enum variant: ToolButton = 16384)

Trait Implementations

impl Eq for ControlType[src]

impl Clone for ControlType[src]

impl PartialEq<ControlType> for ControlType[src]

impl From<i32> for ControlType[src]

impl From<ControlType> for c_int[src]

impl From<ControlType> for QFlags<ControlType>[src]

impl Copy for ControlType[src]

impl<T: Into<QFlags<ControlType>>> BitOr<T> for ControlType[src]

type Output = QFlags<ControlType>

The resulting type after applying the | operator.

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