[][src]Struct qt_widgets::q_style_option_tool_button::ToolButtonFeature

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

Describes the various features that a tool button can have.

C++ enum: QStyleOptionToolButton::ToolButtonFeature.

C++ documentation:

Describes the various features that a tool button can have.

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

See also features, QToolButton::toolButtonStyle(), and QToolButton::popupMode().

Methods

impl ToolButtonFeature[src]

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

impl ToolButtonFeature[src]

pub const None: ToolButtonFeature[src]

A normal tool button. (C++ enum variant: None = 0)

pub const Arrow: ToolButtonFeature[src]

The tool button is an arrow. (C++ enum variant: Arrow = 1)

pub const Menu: ToolButtonFeature[src]

The tool button has a menu. (C++ enum variant: Menu = 4)

pub const MenuButtonPopup: ToolButtonFeature[src]

The button should display an arrow to indicate that a menu is present. (C++ enum variant: MenuButtonPopup = 4)

pub const PopupDelay: ToolButtonFeature[src]

There is a delay to showing the menu. (C++ enum variant: PopupDelay = 8)

pub const HasMenu: ToolButtonFeature[src]

The button has a popup menu. (C++ enum variant: HasMenu = 16)

Trait Implementations

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

type Output = QFlags<ToolButtonFeature>

The resulting type after applying the | operator.

impl Clone for ToolButtonFeature[src]

impl Copy for ToolButtonFeature[src]

impl Debug for ToolButtonFeature[src]

impl Eq for ToolButtonFeature[src]

impl From<ToolButtonFeature> for c_int[src]

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

impl From<i32> for ToolButtonFeature[src]

impl PartialEq<ToolButtonFeature> for ToolButtonFeature[src]

impl StructuralEq for ToolButtonFeature[src]

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