Top | ![]() |
![]() |
![]() |
![]() |
GimpParasite * | gimp_parasite_new () |
void | gimp_parasite_free () |
GimpParasite * | gimp_parasite_copy () |
gboolean | gimp_parasite_compare () |
gboolean | gimp_parasite_is_type () |
gboolean | gimp_parasite_is_persistent () |
gboolean | gimp_parasite_is_undoable () |
gboolean | gimp_parasite_has_flag () |
gulong | gimp_parasite_flags () |
const gchar * | gimp_parasite_name () |
gconstpointer | gimp_parasite_data () |
glong | gimp_parasite_data_size () |
#define | GIMP_IS_PARAM_SPEC_PARASITE() |
GParamSpec * | gimp_param_spec_parasite () |
#define | GIMP_VALUE_HOLDS_PARASITE() |
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 |
#define | GIMP_TYPE_PARASITE |
#define | GIMP_TYPE_PARAM_PARASITE |
GimpParasite * gimp_parasite_new (const gchar *name
,guint32 flags
,guint32 size
,gconstpointer data
);
Creates a new parasite and save data
which may be a proper text (in
which case you may want to set size
as strlen(data
) + 1) or not.
name |
the new GimpParasite name. |
|
flags |
see libgimpbase/gimpparasite.h macros. |
|
size |
the size of |
|
data |
the data to save in a parasite. |
[nullable] |
void
gimp_parasite_free (GimpParasite *parasite
);
Free parasite
's dynamically allocated memory.
GimpParasite *
gimp_parasite_copy (const GimpParasite *parasite
);
Create a new parasite with all the same values.
gboolean gimp_parasite_compare (const GimpParasite *a
,const GimpParasite *b
);
Compare parasite's contents.
gboolean gimp_parasite_is_type (const GimpParasite *parasite
,const gchar *name
);
Compare parasite's names.
gboolean gimp_parasite_has_flag (const GimpParasite *parasite
,gulong flag
);
gconstpointer
gimp_parasite_data (const GimpParasite *parasite
);
Gets the parasite's data. It may not necessarily be text, nor is it
guaranteed to be NULL
-terminated. It is your responsibility to also
call gimp_parasite_data_size()
and to know how to deal with this
data.
#define GIMP_IS_PARAM_SPEC_PARASITE(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_PARASITE))
GParamSpec * gimp_param_spec_parasite (const gchar *name
,const gchar *nick
,const gchar *blurb
,GParamFlags flags
);
Creates a new GimpParamSpecParasite specifying a GIMP_TYPE_PARASITE property.
See g_param_spec_internal()
for details on property names.
name |
Canonical name of the property specified. |
|
nick |
Nick name of the property specified. |
|
blurb |
Description of the property specified. |
|
flags |
Flags for the property specified. |
Since: 2.4
typedef struct { gchar *name; guint32 flags; guint32 size; gpointer data; } GimpParasite;
#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)