[−][src]Struct qt_core::ContextMenuPolicy
This enum type defines the various policies a widget can have with respect to showing a context menu.
C++ enum: Qt::ContextMenuPolicy
.
This enum type defines the various policies a widget can have with respect to showing a context menu.
Methods
impl ContextMenuPolicy
[src]
impl ContextMenuPolicy
[src]
pub const NoContextMenu: ContextMenuPolicy
[src]
the widget does not feature a context menu, context menu handling is deferred to the widget's parent. (C++ enum variant: NoContextMenu = 0
)
pub const DefaultContextMenu: ContextMenuPolicy
[src]
the widget's QWidget::contextMenuEvent() handler is called. (C++ enum variant: DefaultContextMenu = 1
)
pub const ActionsContextMenu: ContextMenuPolicy
[src]
the widget displays its QWidget::actions() as context menu. (C++ enum variant: ActionsContextMenu = 2
)
pub const CustomContextMenu: ContextMenuPolicy
[src]
the widget emits the QWidget::customContextMenuRequested() signal. (C++ enum variant: CustomContextMenu = 3
)
pub const PreventContextMenu: ContextMenuPolicy
[src]
the widget does not feature a context menu, and in contrast to NoContextMenu
, the handling is not deferred to the widget's parent. This means that all right mouse button events are guaranteed to be delivered to the widget itself through QWidget::mousePressEvent(), and QWidget::mouseReleaseEvent(). (C++ enum variant: PreventContextMenu = 4
)
Trait Implementations
impl Clone for ContextMenuPolicy
[src]
fn clone(&self) -> ContextMenuPolicy
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ContextMenuPolicy
[src]
impl Debug for ContextMenuPolicy
[src]
impl Eq for ContextMenuPolicy
[src]
impl From<ContextMenuPolicy> for c_int
[src]
fn from(value: ContextMenuPolicy) -> Self
[src]
impl From<i32> for ContextMenuPolicy
[src]
impl PartialEq<ContextMenuPolicy> for ContextMenuPolicy
[src]
fn eq(&self, other: &ContextMenuPolicy) -> bool
[src]
fn ne(&self, other: &ContextMenuPolicy) -> bool
[src]
impl StructuralEq for ContextMenuPolicy
[src]
impl StructuralPartialEq for ContextMenuPolicy
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContextMenuPolicy
impl Send for ContextMenuPolicy
impl Sync for ContextMenuPolicy
impl Unpin for ContextMenuPolicy
impl UnwindSafe for ContextMenuPolicy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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> 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>,