Struct cxx_qt_gen::QQmlExtensionPluginData
source · [−]pub struct QQmlExtensionPluginData { /* private fields */ }
Expand description
Holds meta data relating to QQmlExtensionPlugin
Implementations
sourceimpl QQmlExtensionPluginData
impl QQmlExtensionPluginData
sourcepub fn new(
module_identifier: &'static str,
cpp_plugin_name: &'static str
) -> Self
pub fn new(
module_identifier: &'static str,
cpp_plugin_name: &'static str
) -> Self
Constructs a QQmlExtensionPluginData with the given module identifier and C++ plugin name
sourcepub fn push_type(&mut self, object: &QObject)
pub fn push_type(&mut self, object: &QObject)
Adds a given QObject as a QML type that will be registered in the QQmlExtensionPlugin
sourcepub fn gen_qmldir(&self) -> String
pub fn gen_qmldir(&self) -> String
Generate the contents of the qmldir for this QQmlExtensionPluginData
sourcepub fn gen_qqmlextensionplugin(&self) -> String
pub fn gen_qqmlextensionplugin(&self) -> String
Generate the contents of the plugin.cpp for this QQmlExtensionPluginData
Auto Trait Implementations
impl RefUnwindSafe for QQmlExtensionPluginData
impl Send for QQmlExtensionPluginData
impl Sync for QQmlExtensionPluginData
impl Unpin for QQmlExtensionPluginData
impl UnwindSafe for QQmlExtensionPluginData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more