GwyParamResource — Resources holding set of parameters
GType | gwy_param_def_make_resource_type () |
GwyParams * | gwy_param_resource_get_params () |
GwyParamResource | |
GwyParamResourceClass |
GObject ╰── GwyResource ╰── GwyParamResource
#include <app/gwyapp.h>
GwyParamResource represents a resource holding a GwyParams set of module parameter values. It can be useful to implement parameter presets, stored on disk.
It is an abstract base class. Modules have to create a specific class for their presets using
gwy_param_def_make_resource_type()
which constructs, registers and returns a new Gtype for the specific resource
class.
GType gwy_param_def_make_resource_type (GwyParamDef *pardef
,const gchar *glibtypename
,const gchar *resname
);
Creates a resource class for holding parameters of given type.
The created resource can be used to handle module presets without having to implement loading and saving the parameters from and to files.
If pardef
has already set function name with gwy_param_def_set_function_name()
(recommended), resname
can be
NULL
to use the pardef
's function name.
pardef |
A set of parameter definitions. |
|
glibtypename |
Type name in the GLib type system to create, for instance GwyRawFilePreset. |
|
resname |
Resource name, used as directory name ( |
A newly registered type id in the GLib type system.
Since: 2.62
GwyParams *
gwy_param_resource_get_params (GwyParamResource *resource
);
Gets the set of parameter values of a parameter resource.
resource |
A resource holding a pararameter set. |
The parameter set.
Since: 2.62
typedef struct _GwyParamResource GwyParamResource;
Abstract object representing a resource holding a set of parameter values.
The GwyParamResource struct contains no public fields.
Since: 2.62
typedef struct _GwyParamResourceClass GwyParamResourceClass;
Abstract class of resources holding parameter value sets.
Since: 2.62