Gimp.Parasite – gimp-3.0 Reference Manual
Packages
gimp-3.0
Gimp
Parasite
Parasite
compare
copy
free
get_data
get_flags
get_name
has_flag
is_persistent
is_type
is_undoable
data
flags
name
size
Parasite
Object Hierarchy:
Description:
[
CCode
( copy_function =
"g_boxed_copy"
, free_function =
"g_boxed_free"
, type_id =
"gimp_parasite_get_type ()"
) ]
[
Compact
]
public
class
Parasite
Arbitrary pieces of data which can be attached to various GIMP objects.
Namespace:
Gimp
Package:
gimp-3.0
Content:
Creation methods:
public
Parasite
(
string
name,
uint32
flags,
char
[]? data)
Creates a new parasite and save
data
which may be a proper text (in which case you may want to set
data.length
as strlen(
data
) + 1) or not.
Methods:
public
bool
compare
(
Parasite
b)
Compare parasite's contents.
public
Parasite
copy
()
Create a new parasite with all the same values.
public
void
free
()
Free
this
's dynamically allocated memory.
public
unowned
char
[]
get_data
()
Gets the parasite's data.
public
ulong
get_flags
()
Get the flags of the parasite.
public
unowned
string
get_name
()
public
bool
has_flag
(
ulong
flag)
public
bool
is_persistent
()
public
bool
is_type
(
string
name)
Compare parasite's names.
public
bool
is_undoable
()
Fields:
public
unowned
void
*[]
data
public
uint32
flags
public
unowned
string
name
public
uint32
size