[−][src]Struct qt_gui::QAccessibleStateChangeEvent
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().
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
.
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]
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.
pub unsafe fn from_q_accessible_interface_state(
iface: impl CastInto<Ptr<QAccessibleInterface>>,
state: impl CastInto<Ref<State>>
) -> CppBox<QAccessibleStateChangeEvent>
[src]
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>
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
.
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
.
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
.
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)
.
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
.
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]
ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleStateChangeEvent>
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]
ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleStateChangeEvent>
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]
ptr: Ptr<QAccessibleStateChangeEvent>
) -> Ptr<QAccessibleEvent>
Calls C++ function: QAccessibleEvent* static_cast<QAccessibleEvent*>(QAccessibleStateChangeEvent* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QAccessibleStateChangeEvent
impl Send for QAccessibleStateChangeEvent
impl Sync for QAccessibleStateChangeEvent
impl Unpin for QAccessibleStateChangeEvent
impl UnwindSafe for QAccessibleStateChangeEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<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>,