[−][src]Struct qt_widgets::q_style_option_menu_item::MenuItemType
This enum indicates the type of menu item that the structure describes.
C++ enum: QStyleOptionMenuItem::MenuItemType
.
This enum indicates the type of menu item that the structure describes.
See also menuItemType.
Methods
impl MenuItemType
[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]
fn clone(&self) -> MenuItemType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<MenuItemType> for MenuItemType
[src]
fn eq(&self, other: &MenuItemType) -> bool
[src]
fn ne(&self, other: &MenuItemType) -> bool
[src]
impl From<i32> for MenuItemType
[src]
impl From<MenuItemType> for c_int
[src]
fn from(value: MenuItemType) -> Self
[src]
impl Copy for MenuItemType
[src]
impl Debug for MenuItemType
[src]
Auto Trait Implementations
impl Send for MenuItemType
impl Unpin for MenuItemType
impl Sync for MenuItemType
impl UnwindSafe for MenuItemType
impl RefUnwindSafe for MenuItemType
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,