#[repr(C)]
pub struct QAccessibleValueChangeEvent { /* private fields */ }
Expand description

The QAccessibleValueChangeEvent describes a change in value for an accessible object.

C++ class: QAccessibleValueChangeEvent.

C++ documentation:

The QAccessibleValueChangeEvent describes a change in value for an accessible object.

It contains the new value.

This class is used with QAccessible::updateAccessibility().

Implementations§

source§

impl QAccessibleValueChangeEvent

source

pub unsafe fn from_q_object_q_variant( obj: impl CastInto<Ptr<QObject>>, val: impl CastInto<Ref<QVariant>> ) -> CppBox<QAccessibleValueChangeEvent>

Constructs a new QAccessibleValueChangeEvent for object. The event contains the new value.

Calls C++ function: [constructor] void QAccessibleValueChangeEvent::QAccessibleValueChangeEvent(QObject* obj, const QVariant& val).

C++ documentation:

Constructs a new QAccessibleValueChangeEvent for object. The event contains the new value.

source

pub unsafe fn from_q_accessible_interface_q_variant( iface: impl CastInto<Ptr<QAccessibleInterface>>, val: impl CastInto<Ref<QVariant>> ) -> CppBox<QAccessibleValueChangeEvent>

Constructs a new QAccessibleValueChangeEvent for iface. The event contains the new value val.

Calls C++ function: [constructor] void QAccessibleValueChangeEvent::QAccessibleValueChangeEvent(QAccessibleInterface* iface, const QVariant& val).

C++ documentation:

Constructs a new QAccessibleValueChangeEvent for iface. The event contains the new value val.

source

pub unsafe fn set_value(&self, val: impl CastInto<Ref<QVariant>>)

Sets the new value for this event.

Calls C++ function: void QAccessibleValueChangeEvent::setValue(const QVariant& val).

C++ documentation:

Sets the new value for this event.

See also value().

source

pub unsafe fn value(&self) -> CppBox<QVariant>

Returns the new value of the accessible object of this event.

Calls C++ function: QVariant QAccessibleValueChangeEvent::value() const.

C++ documentation:

Returns the new value of the accessible object of this event.

See also setValue().

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 QAccessibleValueChangeEvent

source§

unsafe fn delete(&self)

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

source§

impl Deref for QAccessibleValueChangeEvent

source§

fn deref(&self) -> &QAccessibleEvent

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

§

type Target = QAccessibleEvent

The resulting type after dereferencing.
source§

impl DynamicCast<QAccessibleValueChangeEvent> for QAccessibleEvent

source§

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

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

source§

impl StaticDowncast<QAccessibleValueChangeEvent> for QAccessibleEvent

source§

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

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

source§

impl StaticUpcast<QAccessibleEvent> for QAccessibleValueChangeEvent

source§

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

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