[][src]Struct qt_widgets::QKeyEventTransition

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

The QKeyEventTransition class provides a transition for key events.

C++ class: QKeyEventTransition.

C++ documentation:

The QKeyEventTransition class provides a transition for key events.

QKeyEventTransition is part of The State Machine Framework.

Methods

impl QKeyEventTransition[src]

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

This property holds the key that this key event transition is associated with

Calls C++ function: int QKeyEventTransition::key() const.

C++ documentation:

This property holds the key that this key event transition is associated with

Access functions:

int key() const
void setKey(int key)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QKeyEventTransition::metaObject() const.

pub unsafe fn modifier_mask(&self) -> QFlags<KeyboardModifier>[src]

This property holds the keyboard modifier mask that this key event transition checks for

Calls C++ function: QFlags<Qt::KeyboardModifier> QKeyEventTransition::modifierMask() const.

C++ documentation:

This property holds the keyboard modifier mask that this key event transition checks for

Access functions:

Qt::KeyboardModifiers modifierMask() const
void setModifierMask(Qt::KeyboardModifiers modifierMask)

pub unsafe fn new_1a(
    source_state: impl CastInto<Ptr<QState>>
) -> QBox<QKeyEventTransition>
[src]

Constructs a new key event transition with the given sourceState.

Calls C++ function: [constructor] void QKeyEventTransition::QKeyEventTransition(QState* sourceState = …).

C++ documentation:

Constructs a new key event transition with the given sourceState.

pub unsafe fn new_4a(
    object: impl CastInto<Ptr<QObject>>,
    type_: Type,
    key: c_int,
    source_state: impl CastInto<Ptr<QState>>
) -> QBox<QKeyEventTransition>
[src]

Constructs a new key event transition for events of the given type for the given object, with the given key and sourceState.

Calls C++ function: [constructor] void QKeyEventTransition::QKeyEventTransition(QObject* object, QEvent::Type type, int key, QState* sourceState = …).

C++ documentation:

Constructs a new key event transition for events of the given type for the given object, with the given key and sourceState.

pub unsafe fn new_0a() -> QBox<QKeyEventTransition>[src]

The QKeyEventTransition class provides a transition for key events.

Calls C++ function: [constructor] void QKeyEventTransition::QKeyEventTransition().

C++ documentation:

The QKeyEventTransition class provides a transition for key events.

QKeyEventTransition is part of The State Machine Framework.

pub unsafe fn new_3a(
    object: impl CastInto<Ptr<QObject>>,
    type_: Type,
    key: c_int
) -> QBox<QKeyEventTransition>
[src]

Constructs a new key event transition for events of the given type for the given object, with the given key and sourceState.

Calls C++ function: [constructor] void QKeyEventTransition::QKeyEventTransition(QObject* object, QEvent::Type type, int key).

C++ documentation:

Constructs a new key event transition for events of the given type for the given object, with the given key and sourceState.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int QKeyEventTransition::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* QKeyEventTransition::qt_metacast(const char* arg1).

pub unsafe fn set_key(&self, key: c_int)[src]

Sets the key that this key event transition will check for.

Calls C++ function: void QKeyEventTransition::setKey(int key).

C++ documentation:

Sets the key that this key event transition will check for.

Note: Setter function for property key.

See also key().

pub unsafe fn set_modifier_mask(&self, modifiers: QFlags<KeyboardModifier>)[src]

Sets the keyboard modifier mask that this key event transition will check for to modifierMask.

Calls C++ function: void QKeyEventTransition::setModifierMask(QFlags<Qt::KeyboardModifier> modifiers).

C++ documentation:

Sets the keyboard modifier mask that this key event transition will check for to modifierMask.

Note: Setter function for property modifierMask.

See also modifierMask().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QKeyEventTransition::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QKeyEventTransition::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QEventTransition>

pub unsafe fn event_source(&self) -> QPtr<QObject>[src]

This property holds the event source that this event transition is associated with

Calls C++ function: QObject* QEventTransition::eventSource() const.

C++ documentation:

This property holds the event source that this event transition is associated with

Access functions:

QObject *eventSource() const
void setEventSource(QObject *object)

pub unsafe fn event_type(&self) -> Type[src]

This property holds the type of event that this event transition is associated with

Calls C++ function: QEvent::Type QEventTransition::eventType() const.

C++ documentation:

This property holds the type of event that this event transition is associated with

Access functions:

QEvent::Type eventType() const
void setEventType(QEvent::Type type)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QEventTransition::metaObject() const.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: i32,
    arg3: *mut *mut c_void
) -> i32
[src]

Calls C++ function: virtual int QEventTransition::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const i8) -> *mut c_void[src]

Calls C++ function: virtual void* QEventTransition::qt_metacast(const char* arg1).

pub unsafe fn set_event_source(&self, object: impl CastInto<Ptr<QObject>>)[src]

Sets the event source associated with this event transition to be the given object.

Calls C++ function: void QEventTransition::setEventSource(QObject* object).

C++ documentation:

Sets the event source associated with this event transition to be the given object.

Note: Setter function for property eventSource.

See also eventSource().

pub unsafe fn set_event_type(&self, type_: Type)[src]

Sets the event type that this event transition is associated with.

Calls C++ function: void QEventTransition::setEventType(QEvent::Type type).

C++ documentation:

Sets the event type that this event transition is associated with.

Note: Setter function for property eventType.

See also eventType().

Trait Implementations

impl CppDeletable for QKeyEventTransition[src]

unsafe fn delete(&self)[src]

Destroys this key event transition.

Calls C++ function: virtual [destructor] void QKeyEventTransition::~QKeyEventTransition().

C++ documentation:

Destroys this key event transition.

impl Deref for QKeyEventTransition[src]

type Target = QEventTransition

The resulting type after dereferencing.

fn deref(&self) -> &QEventTransition[src]

Calls C++ function: QEventTransition* static_cast<QEventTransition*>(QKeyEventTransition* ptr).

impl DynamicCast<QKeyEventTransition> for QEventTransition[src]

unsafe fn dynamic_cast(ptr: Ptr<QEventTransition>) -> Ptr<QKeyEventTransition>[src]

Calls C++ function: QKeyEventTransition* dynamic_cast<QKeyEventTransition*>(QEventTransition* ptr).

impl DynamicCast<QKeyEventTransition> for QAbstractTransition[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAbstractTransition>
) -> Ptr<QKeyEventTransition>
[src]

Calls C++ function: QKeyEventTransition* dynamic_cast<QKeyEventTransition*>(QAbstractTransition* ptr).

impl DynamicCast<QKeyEventTransition> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QKeyEventTransition>[src]

Calls C++ function: QKeyEventTransition* dynamic_cast<QKeyEventTransition*>(QObject* ptr).

impl StaticDowncast<QKeyEventTransition> for QEventTransition[src]

unsafe fn static_downcast(
    ptr: Ptr<QEventTransition>
) -> Ptr<QKeyEventTransition>
[src]

Calls C++ function: QKeyEventTransition* static_cast<QKeyEventTransition*>(QEventTransition* ptr).

impl StaticDowncast<QKeyEventTransition> for QAbstractTransition[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractTransition>
) -> Ptr<QKeyEventTransition>
[src]

Calls C++ function: QKeyEventTransition* static_cast<QKeyEventTransition*>(QAbstractTransition* ptr).

impl StaticDowncast<QKeyEventTransition> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QKeyEventTransition>[src]

Calls C++ function: QKeyEventTransition* static_cast<QKeyEventTransition*>(QObject* ptr).

impl StaticUpcast<QAbstractTransition> for QKeyEventTransition[src]

unsafe fn static_upcast(
    ptr: Ptr<QKeyEventTransition>
) -> Ptr<QAbstractTransition>
[src]

Calls C++ function: QAbstractTransition* static_cast<QAbstractTransition*>(QKeyEventTransition* ptr).

impl StaticUpcast<QEventTransition> for QKeyEventTransition[src]

unsafe fn static_upcast(ptr: Ptr<QKeyEventTransition>) -> Ptr<QEventTransition>[src]

Calls C++ function: QEventTransition* static_cast<QEventTransition*>(QKeyEventTransition* ptr).

impl StaticUpcast<QObject> for QKeyEventTransition[src]

unsafe fn static_upcast(ptr: Ptr<QKeyEventTransition>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QKeyEventTransition* 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.