GimpDataFactory

GimpDataFactory

Synopsis

GimpData *          (*GimpDataNewFunc)                  (GimpContext *context,
                                                         const gchar *name);
GList *             (*GimpDataLoadFunc)                 (GimpContext *context,
                                                         const gchar *filename,
                                                         GError **error);
GimpData *          (*GimpDataGetStandardFunc)          (GimpContext *context);
struct              GimpDataFactoryLoaderEntry;
                    GimpDataFactory;
                    GimpDataFactoryPriv;
GimpDataFactory *   gimp_data_factory_new               (Gimp *gimp,
                                                         GType data_type,
                                                         const gchar *path_property_name,
                                                         const gchar *writable_property_name,
                                                         const GimpDataFactoryLoaderEntry *loader_entries,
                                                         gint n_loader_entries,
                                                         GimpDataNewFunc new_func,
                                                         GimpDataGetStandardFunc get_standard_func);
void                gimp_data_factory_data_init         (GimpDataFactory *factory,
                                                         GimpContext *context,
                                                         gboolean no_data);
void                gimp_data_factory_data_refresh      (GimpDataFactory *factory,
                                                         GimpContext *context);
void                gimp_data_factory_data_free         (GimpDataFactory *factory);
void                gimp_data_factory_data_save         (GimpDataFactory *factory);
GimpData *          gimp_data_factory_data_new          (GimpDataFactory *factory,
                                                         GimpContext *context,
                                                         const gchar *name);
GimpData *          gimp_data_factory_data_duplicate    (GimpDataFactory *factory,
                                                         GimpData *data);
gboolean            gimp_data_factory_data_save_single  (GimpDataFactory *factory,
                                                         GimpData *data,
                                                         GError **error);
gboolean            gimp_data_factory_data_delete       (GimpDataFactory *factory,
                                                         GimpData *data,
                                                         gboolean delete_from_disk,
                                                         GError **error);
GimpData *          gimp_data_factory_data_get_standard (GimpDataFactory *factory,
                                                         GimpContext *context);
GimpContainer *     gimp_data_factory_get_container     (GimpDataFactory *factory);
GimpContainer *     gimp_data_factory_get_container_obsolete
                                                        (GimpDataFactory *factory);
Gimp *              gimp_data_factory_get_gimp          (GimpDataFactory *factory);
gboolean            gimp_data_factory_has_data_new_func (GimpDataFactory *factory);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpDataFactory

Description

Details

GimpDataNewFunc ()

GimpData *          (*GimpDataNewFunc)                  (GimpContext *context,
                                                         const gchar *name);


GimpDataLoadFunc ()

GList *             (*GimpDataLoadFunc)                 (GimpContext *context,
                                                         const gchar *filename,
                                                         GError **error);


GimpDataGetStandardFunc ()

GimpData *          (*GimpDataGetStandardFunc)          (GimpContext *context);


struct GimpDataFactoryLoaderEntry

struct GimpDataFactoryLoaderEntry {
  GimpDataLoadFunc  load_func;
  const gchar      *extension;
  gboolean          writable;
};


GimpDataFactory

typedef struct _GimpDataFactory GimpDataFactory;


GimpDataFactoryPriv

typedef struct _GimpDataFactoryPriv GimpDataFactoryPriv;


gimp_data_factory_new ()

GimpDataFactory *   gimp_data_factory_new               (Gimp *gimp,
                                                         GType data_type,
                                                         const gchar *path_property_name,
                                                         const gchar *writable_property_name,
                                                         const GimpDataFactoryLoaderEntry *loader_entries,
                                                         gint n_loader_entries,
                                                         GimpDataNewFunc new_func,
                                                         GimpDataGetStandardFunc get_standard_func);


gimp_data_factory_data_init ()

void                gimp_data_factory_data_init         (GimpDataFactory *factory,
                                                         GimpContext *context,
                                                         gboolean no_data);


gimp_data_factory_data_refresh ()

void                gimp_data_factory_data_refresh      (GimpDataFactory *factory,
                                                         GimpContext *context);


gimp_data_factory_data_free ()

void                gimp_data_factory_data_free         (GimpDataFactory *factory);


gimp_data_factory_data_save ()

void                gimp_data_factory_data_save         (GimpDataFactory *factory);


gimp_data_factory_data_new ()

GimpData *          gimp_data_factory_data_new          (GimpDataFactory *factory,
                                                         GimpContext *context,
                                                         const gchar *name);


gimp_data_factory_data_duplicate ()

GimpData *          gimp_data_factory_data_duplicate    (GimpDataFactory *factory,
                                                         GimpData *data);


gimp_data_factory_data_save_single ()

gboolean            gimp_data_factory_data_save_single  (GimpDataFactory *factory,
                                                         GimpData *data,
                                                         GError **error);


gimp_data_factory_data_delete ()

gboolean            gimp_data_factory_data_delete       (GimpDataFactory *factory,
                                                         GimpData *data,
                                                         gboolean delete_from_disk,
                                                         GError **error);


gimp_data_factory_data_get_standard ()

GimpData *          gimp_data_factory_data_get_standard (GimpDataFactory *factory,
                                                         GimpContext *context);


gimp_data_factory_get_container ()

GimpContainer *     gimp_data_factory_get_container     (GimpDataFactory *factory);


gimp_data_factory_get_container_obsolete ()

GimpContainer *     gimp_data_factory_get_container_obsolete
                                                        (GimpDataFactory *factory);


gimp_data_factory_get_gimp ()

Gimp *              gimp_data_factory_get_gimp          (GimpDataFactory *factory);


gimp_data_factory_has_data_new_func ()

gboolean            gimp_data_factory_has_data_new_func (GimpDataFactory *factory);