[][src]Struct qt_widgets::QAccessibleWidget

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

The QAccessibleWidget class implements the QAccessibleInterface for QWidgets.

C++ class: QAccessibleWidget.

C++ documentation:

The QAccessibleWidget class implements the QAccessibleInterface for QWidgets.

This class is part of Accessibility for QWidget Applications.

This class is convenient to use as a base class for custom implementations of QAccessibleInterfaces that provide information about widget objects.

The class provides functions to retrieve the parentObject() (the widget's parent widget), and the associated widget(). Controlling signals can be added with addControllingSignal(), and setters are provided for various aspects of the interface implementation, for example setValue(), setDescription(), setAccelerator(), and setHelp().

Methods

impl QAccessibleWidget[src]

pub unsafe fn action_names(&self) -> CppBox<QStringList>[src]

Reimplemented from QAccessibleActionInterface::actionNames().

Calls C++ function: virtual QStringList QAccessibleWidget::actionNames() const.

C++ documentation:

Reimplemented from QAccessibleActionInterface::actionNames().

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

Reimplemented from QAccessibleInterface::backgroundColor().

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

C++ documentation:

Reimplemented from QAccessibleInterface::backgroundColor().

pub unsafe fn child(&self, index: c_int) -> MutPtr<QAccessibleInterface>[src]

Reimplemented from QAccessibleInterface::child().

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

C++ documentation:

Reimplemented from QAccessibleInterface::child().

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

Reimplemented from QAccessibleInterface::childCount().

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

C++ documentation:

Reimplemented from QAccessibleInterface::childCount().

pub unsafe fn do_action(&mut self, action_name: impl CastInto<Ref<QString>>)[src]

Reimplemented from QAccessibleActionInterface::doAction().

Calls C++ function: virtual void QAccessibleWidget::doAction(const QString& actionName).

C++ documentation:

Reimplemented from QAccessibleActionInterface::doAction().

pub unsafe fn focus_child(&self) -> MutPtr<QAccessibleInterface>[src]

Reimplemented from QAccessibleInterface::focusChild().

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

C++ documentation:

Reimplemented from QAccessibleInterface::focusChild().

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

Reimplemented from QAccessibleInterface::foregroundColor().

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

C++ documentation:

Reimplemented from QAccessibleInterface::foregroundColor().

pub unsafe fn index_of_child(
    &self,
    child: impl CastInto<Ptr<QAccessibleInterface>>
) -> c_int
[src]

Reimplemented from QAccessibleInterface::indexOfChild().

Calls C++ function: virtual int QAccessibleWidget::indexOfChild(const QAccessibleInterface* child) const.

C++ documentation:

Reimplemented from QAccessibleInterface::indexOfChild().

pub unsafe fn interface_cast(&mut self, t: InterfaceType) -> MutPtr<c_void>[src]

Reimplemented from QAccessibleInterface::interface_cast().

Calls C++ function: virtual void* QAccessibleWidget::interface_cast(QAccessible::InterfaceType t).

C++ documentation:

Reimplemented from QAccessibleInterface::interface_cast().

pub unsafe fn is_valid(&self) -> bool[src]

Reimplemented from QAccessibleInterface::isValid().

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

C++ documentation:

Reimplemented from QAccessibleInterface::isValid().

pub unsafe fn key_bindings_for_action(
    &self,
    action_name: impl CastInto<Ref<QString>>
) -> CppBox<QStringList>
[src]

Reimplemented from QAccessibleActionInterface::keyBindingsForAction().

Calls C++ function: virtual QStringList QAccessibleWidget::keyBindingsForAction(const QString& actionName) const.

C++ documentation:

Reimplemented from QAccessibleActionInterface::keyBindingsForAction().

pub unsafe fn new_3a(
    o: impl CastInto<MutPtr<QWidget>>,
    r: Role,
    name: impl CastInto<Ref<QString>>
) -> MutRef<QAccessibleWidget>
[src]

Creates a QAccessibleWidget object for widget w. role and name are optional parameters that set the object's role and name properties.

Calls C++ function: [constructor] void QAccessibleWidget::QAccessibleWidget(QWidget* o, QAccessible::Role r = …, const QString& name = …).

C++ documentation:

Creates a QAccessibleWidget object for widget w. role and name are optional parameters that set the object's role and name properties.

pub unsafe fn new_2a(
    o: impl CastInto<MutPtr<QWidget>>,
    r: Role
) -> MutRef<QAccessibleWidget>
[src]

Creates a QAccessibleWidget object for widget w. role and name are optional parameters that set the object's role and name properties.

Calls C++ function: [constructor] void QAccessibleWidget::QAccessibleWidget(QWidget* o, QAccessible::Role r = …).

C++ documentation:

Creates a QAccessibleWidget object for widget w. role and name are optional parameters that set the object's role and name properties.

pub unsafe fn new_1a(
    o: impl CastInto<MutPtr<QWidget>>
) -> MutRef<QAccessibleWidget>
[src]

Creates a QAccessibleWidget object for widget w. role and name are optional parameters that set the object's role and name properties.

Calls C++ function: [constructor] void QAccessibleWidget::QAccessibleWidget(QWidget* o).

C++ documentation:

Creates a QAccessibleWidget object for widget w. role and name are optional parameters that set the object's role and name properties.

pub unsafe fn parent(&self) -> MutPtr<QAccessibleInterface>[src]

Reimplemented from QAccessibleInterface::parent().

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

C++ documentation:

Reimplemented from QAccessibleInterface::parent().

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

Reimplemented from QAccessibleInterface::rect().

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

C++ documentation:

Reimplemented from QAccessibleInterface::rect().

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

Reimplemented from QAccessibleInterface::relations().

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

C++ documentation:

Reimplemented from QAccessibleInterface::relations().

pub unsafe fn relations_0a(
    &self
) -> CppBox<QVectorOfQPairOfQAccessibleInterfaceQFlagsRelationFlag>
[src]

Reimplemented from QAccessibleInterface::relations().

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

C++ documentation:

Reimplemented from QAccessibleInterface::relations().

pub unsafe fn role(&self) -> Role[src]

Reimplemented from QAccessibleInterface::role().

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

C++ documentation:

Reimplemented from QAccessibleInterface::role().

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

Reimplemented from QAccessibleInterface::state().

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

C++ documentation:

Reimplemented from QAccessibleInterface::state().

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

Reimplemented from QAccessibleInterface::text().

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

C++ documentation:

Reimplemented from QAccessibleInterface::text().

pub unsafe fn window(&self) -> MutPtr<QWindow>[src]

Reimplemented from QAccessibleInterface::window().

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

C++ documentation:

Reimplemented from QAccessibleInterface::window().

Methods from Deref<Target = QAccessibleObject>

pub unsafe fn child_at(&self, x: i32, y: i32) -> MutPtr<QAccessibleInterface>[src]

Reimplemented from QAccessibleInterface::childAt().

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

C++ documentation:

Reimplemented from QAccessibleInterface::childAt().

pub unsafe fn is_valid(&self) -> bool[src]

Reimplemented from QAccessibleInterface::isValid().

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

C++ documentation:

Reimplemented from QAccessibleInterface::isValid().

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

Reimplemented from QAccessibleInterface::object().

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

C++ documentation:

Reimplemented from QAccessibleInterface::object().

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

Reimplemented from QAccessibleInterface::rect().

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

C++ documentation:

Reimplemented from QAccessibleInterface::rect().

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

Reimplemented from QAccessibleInterface::setText().

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

C++ documentation:

Reimplemented from QAccessibleInterface::setText().

Trait Implementations

impl Deref for QAccessibleWidget[src]

type Target = QAccessibleObject

The resulting type after dereferencing.

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

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

impl DerefMut for QAccessibleWidget[src]

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

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

impl StaticUpcast<QAccessibleObject> for QAccessibleWidget[src]

unsafe fn static_upcast(ptr: Ptr<QAccessibleWidget>) -> Ptr<QAccessibleObject>[src]

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

unsafe fn static_upcast_mut(
    ptr: MutPtr<QAccessibleWidget>
) -> MutPtr<QAccessibleObject>
[src]

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

impl StaticUpcast<QAccessibleInterface> for QAccessibleWidget[src]

unsafe fn static_upcast(
    ptr: Ptr<QAccessibleWidget>
) -> Ptr<QAccessibleInterface>
[src]

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

unsafe fn static_upcast_mut(
    ptr: MutPtr<QAccessibleWidget>
) -> MutPtr<QAccessibleInterface>
[src]

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

impl StaticUpcast<QAccessibleActionInterface> for QAccessibleWidget[src]

unsafe fn static_upcast(
    ptr: Ptr<QAccessibleWidget>
) -> Ptr<QAccessibleActionInterface>
[src]

Calls C++ function: QAccessibleActionInterface* static_cast<QAccessibleActionInterface*>(QAccessibleWidget* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QAccessibleWidget>
) -> MutPtr<QAccessibleActionInterface>
[src]

Calls C++ function: QAccessibleActionInterface* static_cast<QAccessibleActionInterface*>(QAccessibleWidget* ptr).

impl StaticDowncast<QAccessibleWidget> for QAccessibleObject[src]

unsafe fn static_downcast(ptr: Ptr<QAccessibleObject>) -> Ptr<QAccessibleWidget>[src]

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

unsafe fn static_downcast_mut(
    ptr: MutPtr<QAccessibleObject>
) -> MutPtr<QAccessibleWidget>
[src]

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

impl StaticDowncast<QAccessibleWidget> for QAccessibleInterface[src]

unsafe fn static_downcast(
    ptr: Ptr<QAccessibleInterface>
) -> Ptr<QAccessibleWidget>
[src]

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

unsafe fn static_downcast_mut(
    ptr: MutPtr<QAccessibleInterface>
) -> MutPtr<QAccessibleWidget>
[src]

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

impl StaticDowncast<QAccessibleWidget> for QAccessibleActionInterface[src]

unsafe fn static_downcast(
    ptr: Ptr<QAccessibleActionInterface>
) -> Ptr<QAccessibleWidget>
[src]

Calls C++ function: QAccessibleWidget* static_cast<QAccessibleWidget*>(QAccessibleActionInterface* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QAccessibleActionInterface>
) -> MutPtr<QAccessibleWidget>
[src]

Calls C++ function: QAccessibleWidget* static_cast<QAccessibleWidget*>(QAccessibleActionInterface* ptr).

impl DynamicCast<QAccessibleWidget> for QAccessibleObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QAccessibleObject>) -> Ptr<QAccessibleWidget>[src]

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

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QAccessibleObject>
) -> MutPtr<QAccessibleWidget>
[src]

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

impl DynamicCast<QAccessibleWidget> for QAccessibleInterface[src]

unsafe fn dynamic_cast(ptr: Ptr<QAccessibleInterface>) -> Ptr<QAccessibleWidget>[src]

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

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QAccessibleInterface>
) -> MutPtr<QAccessibleWidget>
[src]

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

impl DynamicCast<QAccessibleWidget> for QAccessibleActionInterface[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAccessibleActionInterface>
) -> Ptr<QAccessibleWidget>
[src]

Calls C++ function: QAccessibleWidget* dynamic_cast<QAccessibleWidget*>(QAccessibleActionInterface* ptr).

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QAccessibleActionInterface>
) -> MutPtr<QAccessibleWidget>
[src]

Calls C++ function: QAccessibleWidget* dynamic_cast<QAccessibleWidget*>(QAccessibleActionInterface* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]