FactoryFunc


Description:

[ CCode ( instance_pos = 1.9 ) ]
public delegate Object FactoryFunc (Parameter[] parameters)

A FactoryFunc is a factory function which will instanciate a new extension of a given type.

[ctor@GObject.Object.newv] is such a function.

It is used with [method@ObjectModule.register_extension_factory].

Parameters:

parameters

The parameters.

n_parameters

The number of paramteters.

user_data

Optional data to be passed to the function, or null.

Returns:

The created object.


Namespace: Peas
Package: libpeas-1.0