Gimp.Item
Description: Reference for Gimp.Item

### Class

# GimpItem

#### Description [src]

    abstract class Gimp.Item : GObject.Object {
      parent_instance: GObject
    }

Functions to manipulate items.

#### Hierarchy

#### Ancestors

- GObject

#### Descendants

- GimpDrawable
- GimpVectors

#### Functions

###### gimp_item_get_by_id

Returns a `GimpItem` representing `item_id`. Since `GimpItem` is an abstract class, the real object type will actually be the proper subclass.

unstable since: 3.0

###### gimp_item_id_is_channel

Returns whether the item ID is a channel.

unstable since: 3.0

###### gimp_item_id_is_drawable

Returns whether the item ID is a drawable.

unstable since: 3.0

###### gimp_item_id_is_layer

Returns whether the item ID is a layer.

unstable since: 3.0

###### gimp_item_id_is_layer_mask

Returns whether the item ID is a layer mask.

unstable since: 3.0

###### gimp_item_id_is_selection

Returns whether the item ID is a selection.

unstable since: 3.0

###### gimp_item_id_is_text_layer

Returns whether the item ID is a text layer.

unstable since: 3.0

###### gimp_item_id_is_valid

Returns TRUE if the item ID is valid.

unstable since: 3.0

###### gimp_item_id_is_vectors

Returns whether the item ID is a vectors.

unstable since: 3.0

#### Instance methods

###### gimp_item_attach_parasite

Add a parasite to an item.

since: 2.8

###### gimp_item_delete

Delete a item.

since: 2.8

###### gimp_item_detach_parasite

Removes a parasite from an item.

since: 2.8

###### gimp_item_get_children

Returns the item’s list of children.

since: 2.8

###### gimp_item_get_color_tag

Get the color tag of the specified item.

since: 2.10

###### gimp_item_get_expanded

Returns whether the item is expanded.

since: 2.10

###### gimp_item_get_id

No description available.

unstable since: 3.0

###### gimp_item_get_image

Returns the item’s image.

since: 2.8

###### gimp_item_get_lock_content

Get the ‘lock content’ state of the specified item.

since: 2.8

###### gimp_item_get_lock_position

Get the ‘lock position’ state of the specified item.

since: 2.10

###### gimp_item_get_lock_visibility

Get the ‘lock visibility’ state of the specified item.

unstable since: 3.0

###### gimp_item_get_name

Get the name of the specified item.

since: 2.8

###### gimp_item_get_parasite

Look up a parasite in an item.

since: 2.8

###### gimp_item_get_parasite_list

List all parasites.

since: 2.8

###### gimp_item_get_parent

Returns the item’s parent item.

since: 2.8

###### gimp_item_get_tattoo

Get the tattoo of the specified item.

since: 2.8

###### gimp_item_get_visible

Get the visibility of the specified item.

since: 2.8

###### gimp_item_is_channel

Returns whether the item is a channel.

since: 2.8

###### gimp_item_is_drawable

Returns whether the item is a drawable.

since: 2.8

###### gimp_item_is_group

Returns whether the item is a group item.

since: 2.8

###### gimp_item_is_layer

Returns whether the item is a layer.

since: 2.8

###### gimp_item_is_layer_mask

Returns whether the item is a layer mask.

since: 2.8

###### gimp_item_is_selection

Returns whether the item is a selection.

since: 2.8

###### gimp_item_is_text_layer

Returns whether the item is a text layer.

since: 2.8

###### gimp_item_is_valid

Returns TRUE if the item is valid.

since: 2.8

###### gimp_item_is_vectors

Returns whether the item is a vectors.

since: 2.8

###### gimp_item_list_children

Returns the item’s list of children.

unstable since: 3.0

###### gimp_item_set_color_tag

Set the color tag of the specified item.

since: 2.10

###### gimp_item_set_expanded

Sets the expanded state of the item.

since: 2.10

###### gimp_item_set_lock_content

Set the ‘lock content’ state of the specified item.

since: 2.8

###### gimp_item_set_lock_position

Set the ‘lock position’ state of the specified item.

since: 2.10

###### gimp_item_set_lock_visibility

Set the ‘lock visibility’ state of the specified item.

unstable since: 3.0

###### gimp_item_set_name

Set the name of the specified item.

since: 2.8

###### gimp_item_set_tattoo

Set the tattoo of the specified item.

since: 2.8

###### gimp_item_set_visible

Set the visibility of the specified item.

since: 2.8

###### gimp_item_transform_2d

Transform the specified item in 2d.

since: 2.8

###### gimp_item_transform_flip

Flip the specified item around a given line.

since: 2.8

###### gimp_item_transform_flip_simple

Flip the specified item either vertically or horizontally.

since: 2.2

###### gimp_item_transform_matrix

Transform the specified item in 2d.

since: 2.8

###### gimp_item_transform_perspective

Perform a possibly non-affine transformation on the specified item.

since: 2.8

###### gimp_item_transform_rotate

Rotate the specified item about given coordinates through the specified angle.

since: 2.8

###### gimp_item_transform_rotate_simple

Rotate the specified item about given coordinates through the specified angle.

since: 2.8

###### gimp_item_transform_scale

Scale the specified item.

since: 2.8

###### gimp_item_transform_shear

Shear the specified item about its center by the specified magnitude.

since: 2.8

###### gimp_item_transform_translate

Translate the item by the specified offsets.

since: 2.10

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Gimp.Item:id

No description available.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct GimpItemClass {
      GObjectClass parent_class;
      void (* _gimp_reserved1) (
    void
      );
      void (* _gimp_reserved2) (
    void
      );
      void (* _gimp_reserved3) (
    void
      );
      void (* _gimp_reserved4) (
    void
      );
      void (* _gimp_reserved5) (
    void
      );
      void (* _gimp_reserved6) (
    void
      );
      void (* _gimp_reserved7) (
    void
      );
      void (* _gimp_reserved8) (
    void
      );

    }

No description available.

###### Class members

`parent_class: GObjectClass`
  No description available.
`_gimp_reserved1: void (* _gimp_reserved1) ( void )`
  No description available.
`_gimp_reserved2: void (* _gimp_reserved2) ( void )`
  No description available.
`_gimp_reserved3: void (* _gimp_reserved3) ( void )`
  No description available.
`_gimp_reserved4: void (* _gimp_reserved4) ( void )`
  No description available.
`_gimp_reserved5: void (* _gimp_reserved5) ( void )`
  No description available.
`_gimp_reserved6: void (* _gimp_reserved6) ( void )`
  No description available.
`_gimp_reserved7: void (* _gimp_reserved7) ( void )`
  No description available.
`_gimp_reserved8: void (* _gimp_reserved8) ( void )`
  No description available.