#[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.

C++ documentation:

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

source

pub unsafe fn changed_states(&self) -> CppBox<State>

Returns the states that have been changed.

Calls C++ function: QAccessible::State QAccessibleStateChangeEvent::changedStates() const.

C++ documentation:

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.

source

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

C++ documentation:

Constructs a new QAccessibleStateChangeEvent for object. The difference to the object’s previous state is in state.

source

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

C++ documentation:

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>§

source

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.

C++ documentation:

Returns the QAccessibleInterface associated with the event. The caller of this function takes ownership of the returned interface.

source

pub unsafe fn child(&self) -> c_int

Returns the child index.

Calls C++ function: int QAccessibleEvent::child() const.

C++ documentation:

Returns the child index.

See also setChild().

source

pub unsafe fn object(&self) -> QPtr<QObject>

Returns the event object.

Calls C++ function: QObject* QAccessibleEvent::object() const.

C++ documentation:

Returns the event object.

source

pub unsafe fn set_child(&self, chld: c_int)

Sets the child index to child.

Calls C++ function: void QAccessibleEvent::setChild(int chld).

C++ documentation:

Sets the child index to child.

See also child().

source

pub unsafe fn type_(&self) -> Event

Returns the event type.

Calls C++ function: QAccessible::Event QAccessibleEvent::type() const.

C++ documentation:

Returns the event type.

source

pub unsafe fn unique_id(&self) -> c_uint

Calls C++ function: unsigned int QAccessibleEvent::uniqueId() const.

Trait Implementations§

source§

impl CppDeletable for QAccessibleStateChangeEvent

source§

unsafe fn delete(&self)

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

source§

impl Deref for QAccessibleStateChangeEvent

source§

fn deref(&self) -> &QAccessibleEvent

Calls C++ function: QAccessibleEvent* static_cast<QAccessibleEvent*>(QAccessibleStateChangeEvent* ptr).

§

type Target = QAccessibleEvent

The resulting type after dereferencing.
source§

impl DynamicCast<QAccessibleStateChangeEvent> for QAccessibleEvent

source§

unsafe fn dynamic_cast( ptr: Ptr<QAccessibleEvent> ) -> Ptr<QAccessibleStateChangeEvent>

Calls C++ function: QAccessibleStateChangeEvent* dynamic_cast<QAccessibleStateChangeEvent*>(QAccessibleEvent* ptr).

source§

impl StaticDowncast<QAccessibleStateChangeEvent> for QAccessibleEvent

source§

unsafe fn static_downcast( ptr: Ptr<QAccessibleEvent> ) -> Ptr<QAccessibleStateChangeEvent>

Calls C++ function: QAccessibleStateChangeEvent* static_cast<QAccessibleStateChangeEvent*>(QAccessibleEvent* ptr).

source§

impl StaticUpcast<QAccessibleEvent> for QAccessibleStateChangeEvent

source§

unsafe fn static_upcast( ptr: Ptr<QAccessibleStateChangeEvent> ) -> Ptr<QAccessibleEvent>

Calls C++ function: QAccessibleEvent* static_cast<QAccessibleEvent*>(QAccessibleStateChangeEvent* ptr).

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.