[][src]Struct qt_gui::QAccessiblePlugin

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

The QAccessiblePlugin class provides an abstract base class for plugins provinding accessibility information for user interface elements.

C++ class: QAccessiblePlugin.

C++ documentation:

The QAccessiblePlugin class provides an abstract base class for plugins provinding accessibility information for user interface elements.

Writing an accessibility plugin is achieved by subclassing this base class, reimplementing the pure virtual function create(), and exporting the class with the Q_PLUGIN_METADATA() macro.

Methods

impl QAccessiblePlugin[src]

pub unsafe fn create(
    &mut self,
    key: impl CastInto<Ref<QString>>,
    object: impl CastInto<MutPtr<QObject>>
) -> MutPtr<QAccessibleInterface>
[src]

Creates and returns a QAccessibleInterface implementation for the class key and the object object. Keys are case sensitive.

Calls C++ function: pure virtual QAccessibleInterface* QAccessiblePlugin::create(const QString& key, QObject* object).

C++ documentation:

Creates and returns a QAccessibleInterface implementation for the class key and the object object. Keys are case sensitive.

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QAccessiblePlugin::metaObject() const.

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int QAccessiblePlugin::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QAccessiblePlugin::qt_metacast(const char* arg1).

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QAccessiblePlugin::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QAccessiblePlugin::trUtf8(const char* s, const char* c, int n).

Trait Implementations

impl CppDeletable for QAccessiblePlugin[src]

unsafe fn delete(&mut self)[src]

Destroys the accessibility plugin.

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

C++ documentation:

Destroys the accessibility plugin.

You never have to call this explicitly. Qt destroys a plugin automatically when it is no longer used.

impl Deref for QAccessiblePlugin[src]

type Target = QObject

The resulting type after dereferencing.

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

Calls C++ function: QObject* static_cast<QObject*>(QAccessiblePlugin* ptr).

impl DerefMut for QAccessiblePlugin[src]

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

Calls C++ function: QObject* static_cast<QObject*>(QAccessiblePlugin* ptr).

impl DynamicCast<QAccessiblePlugin> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QAccessiblePlugin>[src]

Calls C++ function: QAccessiblePlugin* dynamic_cast<QAccessiblePlugin*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QAccessiblePlugin>[src]

Calls C++ function: QAccessiblePlugin* dynamic_cast<QAccessiblePlugin*>(QObject* ptr).

impl StaticDowncast<QAccessiblePlugin> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QAccessiblePlugin>[src]

Calls C++ function: QAccessiblePlugin* static_cast<QAccessiblePlugin*>(QObject* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QAccessiblePlugin>[src]

Calls C++ function: QAccessiblePlugin* static_cast<QAccessiblePlugin*>(QObject* ptr).

impl StaticUpcast<QObject> for QAccessiblePlugin[src]

unsafe fn static_upcast(ptr: Ptr<QAccessiblePlugin>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QAccessiblePlugin* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QAccessiblePlugin>) -> MutPtr<QObject>[src]

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