ObjectModule.registerExtensionFactory

Register an implementation for an extension type through a factory function @factory_func which will instantiate the extension when requested.

This method is primarily meant to be used by native bindings (like gtkmm), creating native types which cannot be instantiated correctly using g_object_new(). For other uses, you will usually prefer relying on peas_object_module_register_extension_type().

class ObjectModule
void
registerExtensionFactory

Parameters

ifaceType GType

The #GType of the extension interface you implement.

factoryFunc PeasFactoryFunc

The #PeasFactoryFunc that will create the @iface_type instance when requested.

userData void*

Data to pass to @func calls.

destroyFunc GDestroyNotify

A #GDestroyNotify for @user_data.

Meta