[][src]Struct qt_widgets::q_style_option_menu_item::MenuItemType

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

This enum indicates the type of menu item that the structure describes.

C++ enum: QStyleOptionMenuItem::MenuItemType.

C++ documentation:

This enum indicates the type of menu item that the structure describes.

See also menuItemType.

Methods

impl MenuItemType[src]

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

impl MenuItemType[src]

pub const Normal: MenuItemType[src]

A normal menu item. (C++ enum variant: Normal = 0)

pub const DefaultItem: MenuItemType[src]

A menu item that is the default action as specified with QMenu::defaultAction(). (C++ enum variant: DefaultItem = 1)

pub const Separator: MenuItemType[src]

A menu separator. (C++ enum variant: Separator = 2)

pub const SubMenu: MenuItemType[src]

Indicates the menu item points to a sub-menu. (C++ enum variant: SubMenu = 3)

pub const Scroller: MenuItemType[src]

A popup menu scroller (currently only used on macOS). (C++ enum variant: Scroller = 4)

pub const TearOff: MenuItemType[src]

A tear-off handle for the menu. (C++ enum variant: TearOff = 5)

pub const Margin: MenuItemType[src]

The margin of the menu. (C++ enum variant: Margin = 6)

pub const EmptyArea: MenuItemType[src]

The empty area of the menu. (C++ enum variant: EmptyArea = 7)

Trait Implementations

impl Eq for MenuItemType[src]

impl Clone for MenuItemType[src]

impl PartialEq<MenuItemType> for MenuItemType[src]

impl From<i32> for MenuItemType[src]

impl From<MenuItemType> for c_int[src]

impl Copy for MenuItemType[src]

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