Skip to main content

QAccessibleObject

Struct QAccessibleObject 

Source
pub struct QAccessibleObject { /* private fields */ }
Expand description

C++ class: QAccessibleObject.

Implementations§

Source§

impl QAccessibleObject

Source

pub unsafe fn child_at(&self, x: c_int, y: c_int) -> Ptr<QAccessibleInterface>

Calls C++ function: virtual QAccessibleInterface* QAccessibleObject::childAt(int x, int y) const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: virtual bool QAccessibleObject::isValid() const.

Source

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

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

Source

pub unsafe fn rect(&self) -> CppBox<QRect>

Calls C++ function: virtual QRect QAccessibleObject::rect() const.

Source

pub unsafe fn set_text(&self, t: Text, text: impl CastInto<Ref<QString>>)

Calls C++ function: virtual void QAccessibleObject::setText(QAccessible::Text t, const QString& text).

Methods from Deref<Target = QAccessibleInterface>§

Source

pub unsafe fn action_interface(&self) -> Ptr<QAccessibleActionInterface>

Calls C++ function: QAccessibleActionInterface* QAccessibleInterface::actionInterface().

Source

pub unsafe fn background_color(&self) -> CppBox<QColor>

Calls C++ function: virtual QColor QAccessibleInterface::backgroundColor() const.

Source

pub unsafe fn child(&self, index: c_int) -> Ptr<QAccessibleInterface>

Calls C++ function: pure virtual QAccessibleInterface* QAccessibleInterface::child(int index) const.

Source

pub unsafe fn child_at(&self, x: c_int, y: c_int) -> Ptr<QAccessibleInterface>

Calls C++ function: pure virtual QAccessibleInterface* QAccessibleInterface::childAt(int x, int y) const.

Source

pub unsafe fn child_count(&self) -> c_int

Calls C++ function: pure virtual int QAccessibleInterface::childCount() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QAccessibleInterface>>, ) -> Ref<QAccessibleInterface>

Calls C++ function: QAccessibleInterface& QAccessibleInterface::operator=(const QAccessibleInterface& other).

Source

pub unsafe fn editable_text_interface( &self, ) -> Ptr<QAccessibleEditableTextInterface>

Calls C++ function: QAccessibleEditableTextInterface* QAccessibleInterface::editableTextInterface().

Source

pub unsafe fn focus_child(&self) -> Ptr<QAccessibleInterface>

Calls C++ function: virtual QAccessibleInterface* QAccessibleInterface::focusChild() const.

Source

pub unsafe fn foreground_color(&self) -> CppBox<QColor>

Calls C++ function: virtual QColor QAccessibleInterface::foregroundColor() const.

Source

pub unsafe fn index_of_child( &self, arg1: impl CastInto<Ptr<QAccessibleInterface>>, ) -> c_int

Calls C++ function: pure virtual int QAccessibleInterface::indexOfChild(const QAccessibleInterface* arg1) const.

Source

pub unsafe fn interface_cast(&self, arg1: InterfaceType) -> *mut c_void

Calls C++ function: virtual void* QAccessibleInterface::interface_cast(QAccessible::InterfaceType arg1).

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: pure virtual bool QAccessibleInterface::isValid() const.

Source

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

Calls C++ function: pure virtual QObject* QAccessibleInterface::object() const.

Source

pub unsafe fn parent(&self) -> Ptr<QAccessibleInterface>

Calls C++ function: pure virtual QAccessibleInterface* QAccessibleInterface::parent() const.

Source

pub unsafe fn rect(&self) -> CppBox<QRect>

Calls C++ function: pure virtual QRect QAccessibleInterface::rect() const.

Source

pub unsafe fn relations_1a( &self, match_: QFlags<RelationFlag>, ) -> CppBox<QVectorOfQPairOfQAccessibleInterfaceQFlagsRelationFlag>

Calls C++ function: virtual QVector<QPair<QAccessibleInterface*, QFlags<QAccessible::RelationFlag>>> QAccessibleInterface::relations(QFlags<QAccessible::RelationFlag> match = …) const.

Source

pub unsafe fn relations_0a( &self, ) -> CppBox<QVectorOfQPairOfQAccessibleInterfaceQFlagsRelationFlag>

Calls C++ function: virtual QVector<QPair<QAccessibleInterface*, QFlags<QAccessible::RelationFlag>>> QAccessibleInterface::relations() const.

Source

pub unsafe fn role(&self) -> Role

Calls C++ function: pure virtual QAccessible::Role QAccessibleInterface::role() const.

Source

pub unsafe fn set_text(&self, t: Text, text: impl CastInto<Ref<QString>>)

Calls C++ function: pure virtual void QAccessibleInterface::setText(QAccessible::Text t, const QString& text).

Source

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

Calls C++ function: pure virtual QAccessible::State QAccessibleInterface::state() const.

Source

pub unsafe fn table_cell_interface(&self) -> Ptr<QAccessibleTableCellInterface>

Calls C++ function: QAccessibleTableCellInterface* QAccessibleInterface::tableCellInterface().

Source

pub unsafe fn table_interface(&self) -> Ptr<QAccessibleTableInterface>

Calls C++ function: QAccessibleTableInterface* QAccessibleInterface::tableInterface().

Source

pub unsafe fn text(&self, t: Text) -> CppBox<QString>

Calls C++ function: pure virtual QString QAccessibleInterface::text(QAccessible::Text t) const.

Source

pub unsafe fn text_interface(&self) -> Ptr<QAccessibleTextInterface>

Calls C++ function: QAccessibleTextInterface* QAccessibleInterface::textInterface().

Source

pub unsafe fn value_interface(&self) -> Ptr<QAccessibleValueInterface>

Calls C++ function: QAccessibleValueInterface* QAccessibleInterface::valueInterface().

Source

pub unsafe fn virtual_hook(&self, id: c_int, data: *mut c_void)

Calls C++ function: virtual void QAccessibleInterface::virtual_hook(int id, void* data).

Source

pub unsafe fn window(&self) -> QPtr<QWindow>

Calls C++ function: virtual QWindow* QAccessibleInterface::window() const.

Trait Implementations§

Source§

impl Deref for QAccessibleObject

Source§

fn deref(&self) -> &QAccessibleInterface

Calls C++ function: QAccessibleInterface* static_cast<QAccessibleInterface*>(QAccessibleObject* ptr).

Source§

type Target = QAccessibleInterface

The resulting type after dereferencing.
Source§

impl DynamicCast<QAccessibleObject> for QAccessibleInterface

Source§

unsafe fn dynamic_cast(ptr: Ptr<QAccessibleInterface>) -> Ptr<QAccessibleObject>

Calls C++ function: QAccessibleObject* dynamic_cast<QAccessibleObject*>(QAccessibleInterface* ptr).

Source§

impl StaticDowncast<QAccessibleObject> for QAccessibleInterface

Source§

unsafe fn static_downcast( ptr: Ptr<QAccessibleInterface>, ) -> Ptr<QAccessibleObject>

Calls C++ function: QAccessibleObject* static_cast<QAccessibleObject*>(QAccessibleInterface* ptr).

Source§

impl StaticUpcast<QAccessibleInterface> for QAccessibleObject

Source§

unsafe fn static_upcast( ptr: Ptr<QAccessibleObject>, ) -> Ptr<QAccessibleInterface>

Calls C++ function: QAccessibleInterface* static_cast<QAccessibleInterface*>(QAccessibleObject* 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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>,

Source§

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

Source§

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.