[−][src]Struct qt_widgets::QKeyEventTransition
The QKeyEventTransition class provides a transition for key events.
C++ class: QKeyEventTransition
.
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
.
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
.
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<MutPtr<QState>>
) -> CppBox<QKeyEventTransition>
[src]
source_state: impl CastInto<MutPtr<QState>>
) -> CppBox<QKeyEventTransition>
Constructs a new key event transition with the given sourceState.
Calls C++ function: [constructor] void QKeyEventTransition::QKeyEventTransition(QState* sourceState = …)
.
Constructs a new key event transition with the given sourceState.
pub unsafe fn new_4a(
object: impl CastInto<MutPtr<QObject>>,
type_: Type,
key: c_int,
source_state: impl CastInto<MutPtr<QState>>
) -> CppBox<QKeyEventTransition>
[src]
object: impl CastInto<MutPtr<QObject>>,
type_: Type,
key: c_int,
source_state: impl CastInto<MutPtr<QState>>
) -> CppBox<QKeyEventTransition>
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 = …)
.
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() -> CppBox<QKeyEventTransition>
[src]
The QKeyEventTransition class provides a transition for key events.
Calls C++ function: [constructor] void QKeyEventTransition::QKeyEventTransition()
.
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<MutPtr<QObject>>,
type_: Type,
key: c_int
) -> CppBox<QKeyEventTransition>
[src]
object: impl CastInto<MutPtr<QObject>>,
type_: Type,
key: c_int
) -> CppBox<QKeyEventTransition>
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)
.
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(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
Calls C++ function: virtual int QKeyEventTransition::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* QKeyEventTransition::qt_metacast(const char* arg1)
.
pub unsafe fn set_key(&mut self, key: c_int)
[src]
Sets the key that this key event transition will check for.
Calls C++ function: void QKeyEventTransition::setKey(int key)
.
pub unsafe fn set_modifier_mask(&mut 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)
.
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: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QKeyEventTransition::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
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) -> MutPtr<QObject>
[src]
This property holds the event source that this event transition is associated with
Calls C++ function: QObject* QEventTransition::eventSource() const
.
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
.
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(
&mut self,
arg1: Call,
arg2: i32,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> i32
[src]
&mut self,
arg1: Call,
arg2: i32,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> i32
Calls C++ function: virtual int QEventTransition::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(
&mut self,
arg1: impl CastInto<Ptr<i8>>
) -> MutPtr<c_void>
[src]
&mut self,
arg1: impl CastInto<Ptr<i8>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* QEventTransition::qt_metacast(const char* arg1)
.
pub unsafe fn set_event_source(
&mut self,
object: impl CastInto<MutPtr<QObject>>
)
[src]
&mut self,
object: impl CastInto<MutPtr<QObject>>
)
Sets the event source associated with this event transition to be the given object.
Calls C++ function: void QEventTransition::setEventSource(QObject* object)
.
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(&mut self, type_: Type)
[src]
Sets the event type that this event transition is associated with.
Calls C++ function: void QEventTransition::setEventType(QEvent::Type type)
.
Trait Implementations
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 DerefMut for QKeyEventTransition
[src]
fn deref_mut(&mut self) -> &mut QEventTransition
[src]
Calls C++ function: QEventTransition* static_cast<QEventTransition*>(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)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QKeyEventTransition>
) -> MutPtr<QEventTransition>
[src]
ptr: MutPtr<QKeyEventTransition>
) -> MutPtr<QEventTransition>
Calls C++ function: QEventTransition* static_cast<QEventTransition*>(QKeyEventTransition* ptr)
.
impl StaticUpcast<QAbstractTransition> for QKeyEventTransition
[src]
unsafe fn static_upcast(
ptr: Ptr<QKeyEventTransition>
) -> Ptr<QAbstractTransition>
[src]
ptr: Ptr<QKeyEventTransition>
) -> Ptr<QAbstractTransition>
Calls C++ function: QAbstractTransition* static_cast<QAbstractTransition*>(QKeyEventTransition* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QKeyEventTransition>
) -> MutPtr<QAbstractTransition>
[src]
ptr: MutPtr<QKeyEventTransition>
) -> MutPtr<QAbstractTransition>
Calls C++ function: QAbstractTransition* static_cast<QAbstractTransition*>(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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QKeyEventTransition>) -> MutPtr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(QKeyEventTransition* ptr)
.
impl StaticDowncast<QKeyEventTransition> for QEventTransition
[src]
unsafe fn static_downcast(
ptr: Ptr<QEventTransition>
) -> Ptr<QKeyEventTransition>
[src]
ptr: Ptr<QEventTransition>
) -> Ptr<QKeyEventTransition>
Calls C++ function: QKeyEventTransition* static_cast<QKeyEventTransition*>(QEventTransition* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QEventTransition>
) -> MutPtr<QKeyEventTransition>
[src]
ptr: MutPtr<QEventTransition>
) -> MutPtr<QKeyEventTransition>
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]
ptr: Ptr<QAbstractTransition>
) -> Ptr<QKeyEventTransition>
Calls C++ function: QKeyEventTransition* static_cast<QKeyEventTransition*>(QAbstractTransition* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QAbstractTransition>
) -> MutPtr<QKeyEventTransition>
[src]
ptr: MutPtr<QAbstractTransition>
) -> MutPtr<QKeyEventTransition>
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)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QObject>
) -> MutPtr<QKeyEventTransition>
[src]
ptr: MutPtr<QObject>
) -> MutPtr<QKeyEventTransition>
Calls C++ function: QKeyEventTransition* static_cast<QKeyEventTransition*>(QObject* 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)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QEventTransition>
) -> MutPtr<QKeyEventTransition>
[src]
ptr: MutPtr<QEventTransition>
) -> MutPtr<QKeyEventTransition>
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]
ptr: Ptr<QAbstractTransition>
) -> Ptr<QKeyEventTransition>
Calls C++ function: QKeyEventTransition* dynamic_cast<QKeyEventTransition*>(QAbstractTransition* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QAbstractTransition>
) -> MutPtr<QKeyEventTransition>
[src]
ptr: MutPtr<QAbstractTransition>
) -> MutPtr<QKeyEventTransition>
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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QKeyEventTransition>
[src]
Calls C++ function: QKeyEventTransition* dynamic_cast<QKeyEventTransition*>(QObject* ptr)
.
impl CppDeletable for QKeyEventTransition
[src]
Auto Trait Implementations
impl Send for QKeyEventTransition
impl Unpin for QKeyEventTransition
impl Sync for QKeyEventTransition
impl UnwindSafe for QKeyEventTransition
impl RefUnwindSafe for QKeyEventTransition
Blanket Implementations
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>,