[−][src]Struct qt_gui::QGenericPlugin
The QGenericPlugin class is an abstract base class for plugins.
C++ class: QGenericPlugin
.
The QGenericPlugin class is an abstract base class for plugins.
A mouse plugin can be created by subclassing QGenericPlugin and reimplementing the pure virtual create() function. By exporting the derived class using the Q_PLUGIN_METADATA() macro, The default implementation of the QGenericPluginFactory class will automatically detect the plugin and load the driver into the server application at run-time. See How to Create Qt Plugins for details.
The json metadata file should contain a list of keys supported by this plugin.
Methods
impl QGenericPlugin
[src]
pub unsafe fn create(
&mut self,
name: impl CastInto<Ref<QString>>,
spec: impl CastInto<Ref<QString>>
) -> MutPtr<QObject>
[src]
&mut self,
name: impl CastInto<Ref<QString>>,
spec: impl CastInto<Ref<QString>>
) -> MutPtr<QObject>
Implement this function to create a driver matching the type specified by the given key and specification parameters. Note that keys are case-insensitive.
Calls C++ function: pure virtual QObject* QGenericPlugin::create(const QString& name, const QString& spec)
.
Implement this function to create a driver matching the type specified by the given key and specification parameters. Note that keys are case-insensitive.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* QGenericPlugin::metaObject() const
.
pub unsafe fn qt_metacall(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
Calls C++ function: virtual int QGenericPlugin::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]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* QGenericPlugin::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]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QGenericPlugin::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]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QGenericPlugin::trUtf8(const char* s, const char* c, int n)
.
Trait Implementations
impl CppDeletable for QGenericPlugin
[src]
unsafe fn delete(&mut self)
[src]
Destroys the plugin.
Calls C++ function: virtual [destructor] void QGenericPlugin::~QGenericPlugin()
.
Destroys the plugin.
Note that Qt destroys a plugin automatically when it is no longer used, so there is no need for calling the destructor explicitly.
impl Deref for QGenericPlugin
[src]
type Target = QObject
The resulting type after dereferencing.
fn deref(&self) -> &QObject
[src]
Calls C++ function: QObject* static_cast<QObject*>(QGenericPlugin* ptr)
.
impl DerefMut for QGenericPlugin
[src]
fn deref_mut(&mut self) -> &mut QObject
[src]
Calls C++ function: QObject* static_cast<QObject*>(QGenericPlugin* ptr)
.
impl DynamicCast<QGenericPlugin> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QGenericPlugin>
[src]
Calls C++ function: QGenericPlugin* dynamic_cast<QGenericPlugin*>(QObject* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QGenericPlugin>
[src]
Calls C++ function: QGenericPlugin* dynamic_cast<QGenericPlugin*>(QObject* ptr)
.
impl StaticDowncast<QGenericPlugin> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QGenericPlugin>
[src]
Calls C++ function: QGenericPlugin* static_cast<QGenericPlugin*>(QObject* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QGenericPlugin>
[src]
Calls C++ function: QGenericPlugin* static_cast<QGenericPlugin*>(QObject* ptr)
.
impl StaticUpcast<QObject> for QGenericPlugin
[src]
unsafe fn static_upcast(ptr: Ptr<QGenericPlugin>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(QGenericPlugin* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QGenericPlugin>) -> MutPtr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(QGenericPlugin* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QGenericPlugin
impl Send for QGenericPlugin
impl Sync for QGenericPlugin
impl Unpin for QGenericPlugin
impl UnwindSafe for QGenericPlugin
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,