[−][src]Struct qt_gui::QIconEnginePlugin
The QIconEnginePlugin class provides an abstract base for custom QIconEngine plugins.
C++ class: QIconEnginePlugin
.
The QIconEnginePlugin class provides an abstract base for custom QIconEngine plugins.
The icon engine plugin is a simple plugin interface that makes it easy to create custom icon engines that can be loaded dynamically into applications through QIcon. QIcon uses the file or resource name's suffix to determine what icon engine to use.
Writing a icon engine plugin is achieved by subclassing this base class, reimplementing the pure virtual function create(), and exporting the class with the Q_PLUGIN_METADATA() macro.
The json metadata should contain a list of icon engine keys that this plugin supports. The keys correspond to the suffix of the file or resource name used when the plugin was created. Keys are case insensitive.
{ "Keys": [ "myiconengine" ] }
Methods
impl QIconEnginePlugin
[src]
pub unsafe fn create_1a(
&self,
filename: impl CastInto<Ref<QString>>
) -> Ptr<QIconEngine>
[src]
&self,
filename: impl CastInto<Ref<QString>>
) -> Ptr<QIconEngine>
Creates and returns a QIconEngine object for the icon with the given filename.
Calls C++ function: pure virtual QIconEngine* QIconEnginePlugin::create(const QString& filename = …)
.
Creates and returns a QIconEngine object for the icon with the given filename.
pub unsafe fn create_0a(&self) -> Ptr<QIconEngine>
[src]
Creates and returns a QIconEngine object for the icon with the given filename.
Calls C++ function: pure virtual QIconEngine* QIconEnginePlugin::create()
.
Creates and returns a QIconEngine object for the icon with the given filename.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* QIconEnginePlugin::metaObject() const
.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int QIconEnginePlugin::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
Calls C++ function: virtual void* QIconEnginePlugin::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: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QIconEnginePlugin::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString QIconEnginePlugin::trUtf8(const char* s, const char* c, int n)
.
Trait Implementations
impl CppDeletable for QIconEnginePlugin
[src]
unsafe fn delete(&self)
[src]
Destroys the icon engine plugin.
Calls C++ function: virtual [destructor] void QIconEnginePlugin::~QIconEnginePlugin()
.
Destroys the icon engine plugin.
You never have to call this explicitly. Qt destroys a plugin automatically when it is no longer used.
impl Deref for QIconEnginePlugin
[src]
type Target = QObject
The resulting type after dereferencing.
fn deref(&self) -> &QObject
[src]
Calls C++ function: QObject* static_cast<QObject*>(QIconEnginePlugin* ptr)
.
impl DynamicCast<QIconEnginePlugin> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QIconEnginePlugin>
[src]
Calls C++ function: QIconEnginePlugin* dynamic_cast<QIconEnginePlugin*>(QObject* ptr)
.
impl StaticDowncast<QIconEnginePlugin> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QIconEnginePlugin>
[src]
Calls C++ function: QIconEnginePlugin* static_cast<QIconEnginePlugin*>(QObject* ptr)
.
impl StaticUpcast<QObject> for QIconEnginePlugin
[src]
unsafe fn static_upcast(ptr: Ptr<QIconEnginePlugin>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(QIconEnginePlugin* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QIconEnginePlugin
impl Send for QIconEnginePlugin
impl Sync for QIconEnginePlugin
impl Unpin for QIconEnginePlugin
impl UnwindSafe for QIconEnginePlugin
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]
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>,