[−][src]Struct qt_gui::QActionEvent
The QActionEvent class provides an event that is generated when a QAction is added, removed, or changed.
C++ class: QActionEvent
.
The QActionEvent class provides an event that is generated when a QAction is added, removed, or changed.
Actions can be added to widgets using QWidget::addAction(). This generates an ActionAdded event, which you can handle to provide custom behavior. For example, QToolBar reimplements QWidget::actionEvent() to create QToolButtons for the actions.
Methods
impl QActionEvent
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QActionEvent>>
) -> MutRef<QActionEvent>
[src]
&mut self,
other: impl CastInto<Ref<QActionEvent>>
) -> MutRef<QActionEvent>
The QActionEvent class provides an event that is generated when a QAction is added, removed, or changed.
Calls C++ function: QActionEvent& QActionEvent::operator=(const QActionEvent& other)
.
The QActionEvent class provides an event that is generated when a QAction is added, removed, or changed.
Actions can be added to widgets using QWidget::addAction(). This generates an ActionAdded event, which you can handle to provide custom behavior. For example, QToolBar reimplements QWidget::actionEvent() to create QToolButtons for the actions.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QActionEvent>>
) -> CppBox<QActionEvent>
[src]
other: impl CastInto<Ref<QActionEvent>>
) -> CppBox<QActionEvent>
The QActionEvent class provides an event that is generated when a QAction is added, removed, or changed.
Calls C++ function: [constructor] void QActionEvent::QActionEvent(const QActionEvent& other)
.
The QActionEvent class provides an event that is generated when a QAction is added, removed, or changed.
Actions can be added to widgets using QWidget::addAction(). This generates an ActionAdded event, which you can handle to provide custom behavior. For example, QToolBar reimplements QWidget::actionEvent() to create QToolButtons for the actions.
Trait Implementations
impl CppDeletable for QActionEvent
[src]
unsafe fn delete(&mut self)
[src]
Calls C++ function: virtual [destructor] void QActionEvent::~QActionEvent()
.
impl Deref for QActionEvent
[src]
type Target = QEvent
The resulting type after dereferencing.
fn deref(&self) -> &QEvent
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QActionEvent* ptr)
.
impl DerefMut for QActionEvent
[src]
fn deref_mut(&mut self) -> &mut QEvent
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QActionEvent* ptr)
.
impl DynamicCast<QActionEvent> for QEvent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QActionEvent>
[src]
Calls C++ function: QActionEvent* dynamic_cast<QActionEvent*>(QEvent* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QEvent>) -> MutPtr<QActionEvent>
[src]
Calls C++ function: QActionEvent* dynamic_cast<QActionEvent*>(QEvent* ptr)
.
impl StaticDowncast<QActionEvent> for QEvent
[src]
unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QActionEvent>
[src]
Calls C++ function: QActionEvent* static_cast<QActionEvent*>(QEvent* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QEvent>) -> MutPtr<QActionEvent>
[src]
Calls C++ function: QActionEvent* static_cast<QActionEvent*>(QEvent* ptr)
.
impl StaticUpcast<QEvent> for QActionEvent
[src]
unsafe fn static_upcast(ptr: Ptr<QActionEvent>) -> Ptr<QEvent>
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QActionEvent* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QActionEvent>) -> MutPtr<QEvent>
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QActionEvent* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QActionEvent
impl Send for QActionEvent
impl Sync for QActionEvent
impl Unpin for QActionEvent
impl UnwindSafe for QActionEvent
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, 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>,