[][src]Struct qt_gui::QAccessibleStateChangeEvent

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

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

Methods

impl QAccessibleStateChangeEvent[src]

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

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.

pub unsafe fn from_q_object_state(
    obj: impl CastInto<Ptr<QObject>>,
    state: impl CastInto<Ref<State>>
) -> CppBox<QAccessibleStateChangeEvent>
[src]

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.

pub unsafe fn from_q_accessible_interface_state(
    iface: impl CastInto<Ptr<QAccessibleInterface>>,
    state: impl CastInto<Ref<State>>
) -> CppBox<QAccessibleStateChangeEvent>
[src]

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>

pub unsafe fn accessible_interface(&self) -> Ptr<QAccessibleInterface>[src]

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.

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

Returns the child index.

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

C++ documentation:

Returns the child index.

See also setChild().

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

Returns the event object.

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

C++ documentation:

Returns the event object.

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

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

pub unsafe fn type_(&self) -> Event[src]

Returns the event type.

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

C++ documentation:

Returns the event type.

pub unsafe fn unique_id(&self) -> c_uint[src]

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

Trait Implementations

impl CppDeletable for QAccessibleStateChangeEvent[src]

unsafe fn delete(&self)[src]

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

impl Deref for QAccessibleStateChangeEvent[src]

type Target = QAccessibleEvent

The resulting type after dereferencing.

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

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

impl DynamicCast<QAccessibleStateChangeEvent> for QAccessibleEvent[src]

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

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

impl StaticDowncast<QAccessibleStateChangeEvent> for QAccessibleEvent[src]

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

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

impl StaticUpcast<QAccessibleEvent> for QAccessibleStateChangeEvent[src]

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

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