gwymodule-layer

gwymodule-layer — GwyDataView layer modules

Synopsis




            GwyLayerFuncInfo;
gboolean    gwy_layer_func_register         (const gchar *modname,
                                             GwyLayerFuncInfo *func_info);

Description

Details

GwyLayerFuncInfo

typedef struct {
    const gchar *name;
    GType type;
} GwyLayerFuncInfo;

Information about one layer function.

const gchar *name; An unique data layer type name (GwyLayerSomething is preferred).
GType type; The type as obtained from gwy_layer_something_get_type().

gwy_layer_func_register ()

gboolean    gwy_layer_func_register         (const gchar *modname,
                                             GwyLayerFuncInfo *func_info);

Registeres a layer function.

To keep compatibility with old versions func_info should not be an automatic variable. However, since 1.6 it keeps a copy of func_info.

modname : Module identifier (name).
func_info : Layer function info.
Returns : TRUE on success, FALSE on failure.