Struct qt_gui::QAccessibleStateChangeEvent
source · #[repr(C)]pub struct QAccessibleStateChangeEvent { /* private fields */ }
Expand description
The QAccessibleStateChangeEvent notfies the accessibility framework that the state of an object has changed.
C++ class: QAccessibleStateChangeEvent
.
The QAccessibleStateChangeEvent notfies the accessibility framework that the state of an object has changed.
This class is used with QAccessible::updateAccessibility().
Implementations§
source§impl QAccessibleStateChangeEvent
impl QAccessibleStateChangeEvent
sourcepub unsafe fn changed_states(&self) -> CppBox<State>
pub unsafe fn changed_states(&self) -> CppBox<State>
Returns the states that have been changed.
Calls C++ function: QAccessible::State QAccessibleStateChangeEvent::changedStates() const
.
Returns the states that have been changed.
Keep in mind that the returned states are the ones that have changed. To find out about the state of an object, use QAccessibleInterface::state().
For example, if an object used to have the focus but loses it, the object's state will have focused set to false
. This event on the other hand tells about the change and has focused set to true
since the focus state is changed from true
to false
.
sourcepub unsafe fn from_q_object_state(
obj: impl CastInto<Ptr<QObject>>,
state: impl CastInto<Ref<State>>
) -> CppBox<QAccessibleStateChangeEvent>
pub unsafe fn from_q_object_state( obj: impl CastInto<Ptr<QObject>>, state: impl CastInto<Ref<State>> ) -> CppBox<QAccessibleStateChangeEvent>
Constructs a new QAccessibleStateChangeEvent for object. The difference to the object's previous state is in state.
Calls C++ function: [constructor] void QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QObject* obj, QAccessible::State state)
.
Constructs a new QAccessibleStateChangeEvent for object. The difference to the object’s previous state is in state.
sourcepub unsafe fn from_q_accessible_interface_state(
iface: impl CastInto<Ptr<QAccessibleInterface>>,
state: impl CastInto<Ref<State>>
) -> CppBox<QAccessibleStateChangeEvent>
pub unsafe fn from_q_accessible_interface_state( iface: impl CastInto<Ptr<QAccessibleInterface>>, state: impl CastInto<Ref<State>> ) -> CppBox<QAccessibleStateChangeEvent>
Constructs a new QAccessibleStateChangeEvent. iface is the interface associated with the event state is the state of the accessible object.
Calls C++ function: [constructor] void QAccessibleStateChangeEvent::QAccessibleStateChangeEvent(QAccessibleInterface* iface, QAccessible::State state)
.
Constructs a new QAccessibleStateChangeEvent. iface is the interface associated with the event state is the state of the accessible object.
Methods from Deref<Target = QAccessibleEvent>§
sourcepub unsafe fn accessible_interface(&self) -> Ptr<QAccessibleInterface>
pub unsafe fn accessible_interface(&self) -> Ptr<QAccessibleInterface>
Returns the QAccessibleInterface associated with the event. The caller of this function takes ownership of the returned interface.
Calls C++ function: virtual QAccessibleInterface* QAccessibleEvent::accessibleInterface() const
.
Returns the QAccessibleInterface associated with the event. The caller of this function takes ownership of the returned interface.
sourcepub unsafe fn child(&self) -> c_int
pub unsafe fn child(&self) -> c_int
Returns the child index.
Calls C++ function: int QAccessibleEvent::child() const
.
Returns the child index.
See also setChild().
sourcepub unsafe fn object(&self) -> QPtr<QObject>
pub unsafe fn object(&self) -> QPtr<QObject>
Returns the event object.
Calls C++ function: QObject* QAccessibleEvent::object() const
.
Returns the event object.
sourcepub unsafe fn set_child(&self, chld: c_int)
pub unsafe fn set_child(&self, chld: c_int)
Sets the child index to child.
Calls C++ function: void QAccessibleEvent::setChild(int chld)
.
Sets the child index to child.
See also child().
Trait Implementations§
source§impl Deref for QAccessibleStateChangeEvent
impl Deref for QAccessibleStateChangeEvent
source§fn deref(&self) -> &QAccessibleEvent
fn deref(&self) -> &QAccessibleEvent
Calls C++ function: QAccessibleEvent* static_cast<QAccessibleEvent*>(QAccessibleStateChangeEvent* ptr)
.
§type Target = QAccessibleEvent
type Target = QAccessibleEvent
source§impl DynamicCast<QAccessibleStateChangeEvent> for QAccessibleEvent
impl DynamicCast<QAccessibleStateChangeEvent> for QAccessibleEvent
source§unsafe fn dynamic_cast(
ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleStateChangeEvent>
unsafe fn dynamic_cast( ptr: Ptr<QAccessibleEvent> ) -> Ptr<QAccessibleStateChangeEvent>
Calls C++ function: QAccessibleStateChangeEvent* dynamic_cast<QAccessibleStateChangeEvent*>(QAccessibleEvent* ptr)
.
source§impl StaticDowncast<QAccessibleStateChangeEvent> for QAccessibleEvent
impl StaticDowncast<QAccessibleStateChangeEvent> for QAccessibleEvent
source§unsafe fn static_downcast(
ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleStateChangeEvent>
unsafe fn static_downcast( ptr: Ptr<QAccessibleEvent> ) -> Ptr<QAccessibleStateChangeEvent>
Calls C++ function: QAccessibleStateChangeEvent* static_cast<QAccessibleStateChangeEvent*>(QAccessibleEvent* ptr)
.
source§impl StaticUpcast<QAccessibleEvent> for QAccessibleStateChangeEvent
impl StaticUpcast<QAccessibleEvent> for QAccessibleStateChangeEvent
source§unsafe fn static_upcast(
ptr: Ptr<QAccessibleStateChangeEvent>
) -> Ptr<QAccessibleEvent>
unsafe fn static_upcast( ptr: Ptr<QAccessibleStateChangeEvent> ) -> Ptr<QAccessibleEvent>
Calls C++ function: QAccessibleEvent* static_cast<QAccessibleEvent*>(QAccessibleStateChangeEvent* ptr)
.