[][src]Struct qt_gui::QActionEvent

#[repr(C)]pub struct QActionEvent { /* fields omitted */ }

The QActionEvent class provides an event that is generated when a QAction is added, removed, or changed.

C++ class: QActionEvent.

C++ documentation:

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(
    &self,
    other: impl CastInto<Ref<QActionEvent>>
) -> Ref<QActionEvent>
[src]

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).

C++ documentation:

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]

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).

C++ documentation:

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(&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 DynamicCast<QActionEvent> for QEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<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).

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).

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, 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.