Top | ![]() |
![]() |
![]() |
![]() |
GimpItem *
gimp_item_get_by_id (gint32 item_id
);
Returns a GimpItem representing item_id
. Since GimpItem is an
abstract class, the real object type will actually be the proper
subclass.
a GimpItem for item_id
or
NULL
if item_id
does not represent a valid item.
The object belongs to libgimp and you must not modify
or unref it.
[nullable][transfer none]
Since: 3.0
gboolean
gimp_item_is_valid (GimpItem *item
);
Returns TRUE if the item is valid.
This procedure checks if the given item is valid and refers to an existing item.
Since: 2.8
gboolean
gimp_item_id_is_valid (gint item_id
);
Returns TRUE if the item ID is valid.
This procedure checks if the given item ID is valid and refers to an existing item.
Since: 3.0
GimpImage *
gimp_item_get_image (GimpItem *item
);
Returns the item's image.
This procedure returns the item's image.
Since: 2.8
gboolean
gimp_item_delete (GimpItem *item
);
Delete a item.
This procedure deletes the specified item. This must not be done if the image containing this item was already deleted or if the item was already removed from the image. The only case in which this procedure is useful is if you want to get rid of a item which has not yet been added to an image.
Since: 2.8
gboolean
gimp_item_is_drawable (GimpItem *item
);
Returns whether the item is a drawable.
This procedure returns TRUE if the specified item is a drawable.
Since: 2.8
gboolean
gimp_item_id_is_drawable (gint item_id
);
Returns whether the item ID is a drawable.
This procedure returns TRUE if the specified item ID is a drawable.
Since: 3.0
gboolean
gimp_item_is_layer (GimpItem *item
);
Returns whether the item is a layer.
This procedure returns TRUE if the specified item is a layer.
Since: 2.8
gboolean
gimp_item_id_is_layer (gint item_id
);
Returns whether the item ID is a layer.
This procedure returns TRUE if the specified item ID is a layer.
Since: 3.0
gboolean
gimp_item_is_text_layer (GimpItem *item
);
Returns whether the item is a text layer.
This procedure returns TRUE if the specified item is a text layer.
Since: 2.8
gboolean
gimp_item_id_is_text_layer (gint item_id
);
Returns whether the item ID is a text layer.
This procedure returns TRUE if the specified item ID is a text layer.
Since: 3.0
gboolean
gimp_item_is_channel (GimpItem *item
);
Returns whether the item is a channel.
This procedure returns TRUE if the specified item is a channel.
Since: 2.8
gboolean
gimp_item_id_is_channel (gint item_id
);
Returns whether the item ID is a channel.
This procedure returns TRUE if the specified item ID is a channel.
Since: 3.0
gboolean
gimp_item_is_layer_mask (GimpItem *item
);
Returns whether the item is a layer mask.
This procedure returns TRUE if the specified item is a layer mask.
Since: 2.8
gboolean
gimp_item_id_is_layer_mask (gint item_id
);
Returns whether the item ID is a layer mask.
This procedure returns TRUE if the specified item ID is a layer mask.
Since: 3.0
gboolean
gimp_item_is_selection (GimpItem *item
);
Returns whether the item is a selection.
This procedure returns TRUE if the specified item is a selection.
Since: 2.8
gboolean
gimp_item_id_is_selection (gint item_id
);
Returns whether the item ID is a selection.
This procedure returns TRUE if the specified item ID is a selection.
Since: 3.0
gboolean
gimp_item_is_vectors (GimpItem *item
);
Returns whether the item is a vectors.
This procedure returns TRUE if the specified item is a vectors.
Since: 2.8
gboolean
gimp_item_id_is_vectors (gint item_id
);
Returns whether the item ID is a vectors.
This procedure returns TRUE if the specified item ID is a vectors.
Since: 3.0
gboolean
gimp_item_is_group (GimpItem *item
);
Returns whether the item is a group item.
This procedure returns TRUE if the specified item is a group item which can have children.
Since: 2.8
GimpItem *
gimp_item_get_parent (GimpItem *item
);
Returns the item's parent item.
This procedure returns the item's parent item, if any.
Since: 2.8
GimpItem ** gimp_item_get_children (GimpItem *item
,gint *num_children
);
Returns the item's list of children.
This procedure returns the list of items which are children of the specified item. The order is topmost to bottommost.
The item's list of children.
The returned value must be freed with g_free()
.
[array length=num_children][element-type GimpItem][transfer container]
Since: 2.8
GList *
gimp_item_list_children (GimpItem *item
);
Returns the item's list of children.
This procedure returns the list of items which are children of the specified item. The order is topmost to bottommost.
The item's list of children.
The returned list must be freed with g_list_free()
. Item
elements belong to libgimp and must not be unrefed.
[element-type GimpItem][transfer container]
Since: 3.0
gboolean
gimp_item_get_expanded (GimpItem *item
);
Returns whether the item is expanded.
This procedure returns TRUE if the specified item is expanded.
Since: 2.10
gboolean gimp_item_set_expanded (GimpItem *item
,gboolean expanded
);
Sets the expanded state of the item.
This procedure expands or collapses the item.
Since: 2.10
gchar *
gimp_item_get_name (GimpItem *item
);
Get the name of the specified item.
This procedure returns the specified item's name.
Since: 2.8
gboolean gimp_item_set_name (GimpItem *item
,const gchar *name
);
Set the name of the specified item.
This procedure sets the specified item's name.
Since: 2.8
gboolean
gimp_item_get_visible (GimpItem *item
);
Get the visibility of the specified item.
This procedure returns the specified item's visibility.
Since: 2.8
gboolean gimp_item_set_visible (GimpItem *item
,gboolean visible
);
Set the visibility of the specified item.
This procedure sets the specified item's visibility.
Since: 2.8
gboolean
gimp_item_get_linked (GimpItem *item
);
Get the linked state of the specified item.
This procedure returns the specified item's linked state.
Since: 2.8
gboolean gimp_item_set_linked (GimpItem *item
,gboolean linked
);
Set the linked state of the specified item.
This procedure sets the specified item's linked state.
Since: 2.8
gboolean
gimp_item_get_lock_content (GimpItem *item
);
Get the 'lock content' state of the specified item.
This procedure returns the specified item's lock content state.
Since: 2.8
gboolean gimp_item_set_lock_content (GimpItem *item
,gboolean lock_content
);
Set the 'lock content' state of the specified item.
This procedure sets the specified item's lock content state.
Since: 2.8
gboolean
gimp_item_get_lock_position (GimpItem *item
);
Get the 'lock position' state of the specified item.
This procedure returns the specified item's lock position state.
Since: 2.10
gboolean gimp_item_set_lock_position (GimpItem *item
,gboolean lock_position
);
Set the 'lock position' state of the specified item.
This procedure sets the specified item's lock position state.
Since: 2.10
GimpColorTag
gimp_item_get_color_tag (GimpItem *item
);
Get the color tag of the specified item.
This procedure returns the specified item's color tag.
Since: 2.10
gboolean gimp_item_set_color_tag (GimpItem *item
,GimpColorTag color_tag
);
Set the color tag of the specified item.
This procedure sets the specified item's color tag.
Since: 2.10
guint
gimp_item_get_tattoo (GimpItem *item
);
Get the tattoo of the specified item.
This procedure returns the specified item's tattoo. A tattoo is a unique and permanent identifier attached to a item that can be used to uniquely identify a item within an image even between sessions.
Since: 2.8
gboolean gimp_item_set_tattoo (GimpItem *item
,guint tattoo
);
Set the tattoo of the specified item.
This procedure sets the specified item's tattoo. A tattoo is a unique and permanent identifier attached to a item that can be used to uniquely identify a item within an image even between sessions.
Since: 2.8
gboolean gimp_item_attach_parasite (GimpItem *item
,const GimpParasite *parasite
);
Add a parasite to an item.
This procedure attaches a parasite to an item. It has no return values.
Since: 2.8
gboolean gimp_item_detach_parasite (GimpItem *item
,const gchar *name
);
Removes a parasite from an item.
This procedure detaches a parasite from an item. It has no return values.
Since: 2.8
GimpParasite * gimp_item_get_parasite (GimpItem *item
,const gchar *name
);
Look up a parasite in an item
Finds and returns the parasite that is attached to an item.
Since: 2.8
gchar ** gimp_item_get_parasite_list (GimpItem *item
,gint *num_parasites
);
List all parasites.
Returns a list of all parasites currently attached the an item.
The names of currently attached parasites.
The returned value must be freed with g_strfreev()
.
[array length=num_parasites][element-type gchar*][transfer full]
Since: 2.8