[][src]Struct qt_widgets::q_style::ContentsType

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

This enum describes the available contents types. These are used to calculate sizes for the contents of various widgets.

C++ enum: QStyle::ContentsType.

C++ documentation:

This enum describes the available contents types. These are used to calculate sizes for the contents of various widgets.

See also sizeFromContents().

Methods

impl ContentsType[src]

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

impl ContentsType[src]

pub const CTPushButton: ContentsType[src]

A push button, like QPushButton. (C++ enum variant: CT_PushButton = 0)

pub const CTCheckBox: ContentsType[src]

A check box, like QCheckBox. (C++ enum variant: CT_CheckBox = 1)

pub const CTRadioButton: ContentsType[src]

A radio button, like QRadioButton. (C++ enum variant: CT_RadioButton = 2)

pub const CTToolButton: ContentsType[src]

A tool button, like QToolButton. (C++ enum variant: CT_ToolButton = 3)

pub const CTComboBox: ContentsType[src]

A combo box, like QComboBox. (C++ enum variant: CT_ComboBox = 4)

pub const CTSplitter: ContentsType[src]

A splitter, like QSplitter. (C++ enum variant: CT_Splitter = 5)

pub const CTProgressBar: ContentsType[src]

A progress bar, like QProgressBar. (C++ enum variant: CT_ProgressBar = 6)

pub const CTMenuItem: ContentsType[src]

A menu item, like QMenuItem. (C++ enum variant: CT_MenuItem = 7)

pub const CTMenuBarItem: ContentsType[src]

A menu bar item, like the buttons in a QMenuBar. (C++ enum variant: CT_MenuBarItem = 8)

pub const CTMenuBar: ContentsType[src]

A menu bar, like QMenuBar. (C++ enum variant: CT_MenuBar = 9)

pub const CTMenu: ContentsType[src]

A menu, like QMenu. (C++ enum variant: CT_Menu = 10)

pub const CTTabBarTab: ContentsType[src]

A tab on a tab bar, like QTabBar. (C++ enum variant: CT_TabBarTab = 11)

pub const CTSlider: ContentsType[src]

A slider, like QSlider. (C++ enum variant: CT_Slider = 12)

pub const CTScrollBar: ContentsType[src]

A scroll bar, like QScrollBar. (C++ enum variant: CT_ScrollBar = 13)

pub const CTLineEdit: ContentsType[src]

A line edit, like QLineEdit. (C++ enum variant: CT_LineEdit = 14)

pub const CTSpinBox: ContentsType[src]

A spin box, like QSpinBox. (C++ enum variant: CT_SpinBox = 15)

pub const CTSizeGrip: ContentsType[src]

A size grip, like QSizeGrip. (C++ enum variant: CT_SizeGrip = 16)

pub const CTTabWidget: ContentsType[src]

A tab widget, like QTabWidget. (C++ enum variant: CT_TabWidget = 17)

pub const CTDialogButtons: ContentsType[src]

C++ enum variant: CT_DialogButtons = 18

pub const CTHeaderSection: ContentsType[src]

A header section, like QHeader. (C++ enum variant: CT_HeaderSection = 19)

pub const CTGroupBox: ContentsType[src]

A group box, like QGroupBox. (C++ enum variant: CT_GroupBox = 20)

pub const CTMdiControls: ContentsType[src]

The minimize, normal, and close button in the menu bar for a maximized MDI subwindow. (C++ enum variant: CT_MdiControls = 21)

pub const CTItemViewItem: ContentsType[src]

An item inside an item view. (C++ enum variant: CT_ItemViewItem = 22)

pub const CTCustomBase: ContentsType[src]

Base value for custom contents types. Custom values must be greater than this value. (C++ enum variant: CT_CustomBase = -268435456)

Trait Implementations

impl Clone for ContentsType[src]

impl Copy for ContentsType[src]

impl Debug for ContentsType[src]

impl Eq for ContentsType[src]

impl From<ContentsType> for c_int[src]

impl From<i32> for ContentsType[src]

impl PartialEq<ContentsType> for ContentsType[src]

impl StructuralEq for ContentsType[src]

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