[][src]Struct qt_gui::QAccessibleValueChangeEvent

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

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

Methods

impl QAccessibleValueChangeEvent[src]

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

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.

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

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.

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

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

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

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>

pub unsafe fn accessible_interface(&self) -> MutPtr<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) -> MutPtr<QObject>[src]

Returns the event object.

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

C++ documentation:

Returns the event object.

pub unsafe fn set_child(&mut 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 QAccessibleValueChangeEvent[src]

unsafe fn delete(&mut self)[src]

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

impl Deref for QAccessibleValueChangeEvent[src]

type Target = QAccessibleEvent

The resulting type after dereferencing.

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

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

impl DerefMut for QAccessibleValueChangeEvent[src]

fn deref_mut(&mut self) -> &mut QAccessibleEvent[src]

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

impl DynamicCast<QAccessibleValueChangeEvent> for QAccessibleEvent[src]

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

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

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QAccessibleEvent>
) -> MutPtr<QAccessibleValueChangeEvent>
[src]

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

impl StaticDowncast<QAccessibleValueChangeEvent> for QAccessibleEvent[src]

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

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

unsafe fn static_downcast_mut(
    ptr: MutPtr<QAccessibleEvent>
) -> MutPtr<QAccessibleValueChangeEvent>
[src]

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

impl StaticUpcast<QAccessibleEvent> for QAccessibleValueChangeEvent[src]

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

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

unsafe fn static_upcast_mut(
    ptr: MutPtr<QAccessibleValueChangeEvent>
) -> MutPtr<QAccessibleEvent>
[src]

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