GIMP Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
struct GimpParasite; #define GIMP_PARASITE_PERSISTENT #define GIMP_PARASITE_UNDOABLE #define GIMP_PARASITE_ATTACH_PARENT #define GIMP_PARASITE_PARENT_PERSISTENT #define GIMP_PARASITE_PARENT_UNDOABLE #define GIMP_PARASITE_ATTACH_GRANDPARENT #define GIMP_PARASITE_GRANDPARENT_PERSISTENT #define GIMP_PARASITE_GRANDPARENT_UNDOABLE GimpParasite* gimp_parasite_new (const gchar *name, guint32 flags, guint32 size, const gpointer data); void gimp_parasite_free (GimpParasite *parasite); GimpParasite* gimp_parasite_copy (const GimpParasite *parasite); gboolean gimp_parasite_compare (const GimpParasite *a, const GimpParasite *b); gboolean gimp_parasite_is_type (const GimpParasite *parasite, const gchar *name); gboolean gimp_parasite_is_persistent (const GimpParasite *parasite); gboolean gimp_parasite_is_undoable (const GimpParasite *parasite); gboolean gimp_parasite_has_flag (const GimpParasite *parasite, gulong flag); const gchar* gimp_parasite_name (const GimpParasite *parasite); gulong gimp_parasite_flags (const GimpParasite *parasite); gpointer gimp_parasite_data (const GimpParasite *parasite); glong gimp_parasite_data_size (const GimpParasite *parasite); GimpParasite* gimp_parasite_find (gchar *name); gboolean gimp_parasite_attach (GimpParasite *parasite); gboolean gimp_parasite_detach (gchar *name); gboolean gimp_parasite_list (gint *num_parasites, gchar ***parasites); GimpParasite* gimp_drawable_parasite_find (gint32 drawable_ID, gchar *name); gboolean gimp_drawable_parasite_attach (gint32 drawable_ID, GimpParasite *parasite); gboolean gimp_drawable_parasite_detach (gint32 drawable_ID, gchar *name); gboolean gimp_drawable_parasite_list (gint32 drawable_ID, gint *num_parasites, gchar ***parasites); GimpParasite* gimp_image_parasite_find (gint32 image_ID, gchar *name); gboolean gimp_image_parasite_attach (gint32 image_ID, GimpParasite *parasite); gboolean gimp_image_parasite_detach (gint32 image_ID, gchar *name); gboolean gimp_image_parasite_list (gint32 image_ID, gint *num_parasites, gchar ***parasites); void gimp_attach_new_parasite (const gchar *name, gint flags, gint size, const gpointer data); void gimp_drawable_attach_new_parasite (gint32 drawable_ID, const gchar *name, gint flags, gint size, const gpointer data); void gimp_image_attach_new_parasite (gint32 image_ID, const gchar *name, gint flags, gint size, const gpointer data); |
struct GimpParasite { gchar *name; /* The name of the parasite. USE A UNIQUE PREFIX! */ guint32 flags; /* save Parasite in XCF file, etc. */ guint32 size; /* amount of data */ gpointer data; /* a pointer to the data. plugin is * * responsible for tracking byte order */ }; |
#define GIMP_PARASITE_PARENT_PERSISTENT (GIMP_PARASITE_PERSISTENT << 8) |
#define GIMP_PARASITE_GRANDPARENT_PERSISTENT (GIMP_PARASITE_PERSISTENT << 16) |
#define GIMP_PARASITE_GRANDPARENT_UNDOABLE (GIMP_PARASITE_UNDOABLE << 16) |
GimpParasite* gimp_parasite_new (const gchar *name, guint32 flags, guint32 size, const gpointer data); |
gboolean gimp_parasite_compare (const GimpParasite *a, const GimpParasite *b); |
gboolean gimp_parasite_is_type (const GimpParasite *parasite, const gchar *name); |
gboolean gimp_parasite_has_flag (const GimpParasite *parasite, gulong flag); |
GimpParasite* gimp_parasite_find (gchar *name); |
Finds the named parasite.
Finds and returns the named parasite that was previously attached to the gimp.
gboolean gimp_parasite_attach (GimpParasite *parasite); |
Add a parasite to the gimp.
This procedure attaches a parasite to the gimp. It has no return values.
gboolean gimp_parasite_detach (gchar *name); |
Removes a parasite from the gimp.
This procedure detaches a parasite from the gimp. It has no return values.
gboolean gimp_parasite_list (gint *num_parasites, gchar ***parasites); |
List all parasites.
Returns a list of all currently attached parasites.
GimpParasite* gimp_drawable_parasite_find (gint32 drawable_ID, gchar *name); |
Finds the named parasite in a drawable
Finds and returns the named parasite that was previously attached to a drawable.
gboolean gimp_drawable_parasite_attach (gint32 drawable_ID, GimpParasite *parasite); |
Add a parasite to a drawable.
This procedure attaches a parasite to a drawable. It has no return values.
gboolean gimp_drawable_parasite_detach (gint32 drawable_ID, gchar *name); |
Removes a parasite from a drawable.
This procedure detaches a parasite from a drawable. It has no return values.
gboolean gimp_drawable_parasite_list (gint32 drawable_ID, gint *num_parasites, gchar ***parasites); |
List all parasites.
Returns a list of all currently attached parasites.
GimpParasite* gimp_image_parasite_find (gint32 image_ID, gchar *name); |
Finds the named parasite in an image
Finds and returns the named parasite that was previously attached to an image.
gboolean gimp_image_parasite_attach (gint32 image_ID, GimpParasite *parasite); |
Add a parasite to an image.
This procedure attaches a parasite to an image. It has no return values.
gboolean gimp_image_parasite_detach (gint32 image_ID, gchar *name); |
Removes a parasite from an image.
This procedure detaches a parasite from an image. It has no return values.
gboolean gimp_image_parasite_list (gint32 image_ID, gint *num_parasites, gchar ***parasites); |
List all parasites.
Returns a list of all currently attached parasites.
void gimp_attach_new_parasite (const gchar *name, gint flags, gint size, const gpointer data); |
void gimp_drawable_attach_new_parasite (gint32 drawable_ID, const gchar *name, gint flags, gint size, const gpointer data); |
gimp_image_parasite_attach(), gimp_drawable_parasite_attach(), gimp_parasite_attach() and their related functions.