- public bool @delete ()
Delete a item.
- public bool attach_parasite (Parasite parasite)
Add a parasite to an item.
- public bool detach_parasite (string name)
Removes a parasite from an item.
- public (unowned Item)[] get_children ()
Returns the item's list of children.
- public ColorTag get_color_tag ()
Get the color tag of the specified item.
- public bool get_expanded ()
Returns whether the item is expanded.
- public int32 get_id ()
Note: in most use cases, you should not need an item's ID which is
mostly internal data and not reusable across sessions.
- public unowned Image get_image ()
Returns the item's image.
- public bool get_lock_content ()
Get the 'lock content' state of the specified item.
- public bool get_lock_position ()
Get the 'lock position' state of the specified item.
- public bool get_lock_visibility ()
Get the 'lock visibility' state of the specified item.
- public string get_name ()
Get the name of the specified item.
- public Parasite get_parasite (string name)
Look up a parasite in an item
- public string[] get_parasite_list ()
List all parasites.
- public unowned Item get_parent ()
Returns the item's parent item.
- public uint get_tattoo ()
Get the tattoo of the specified item.
- public bool get_visible ()
Get the visibility of the specified item.
- public bool is_channel ()
Returns whether the item is a channel.
- public bool is_drawable ()
Returns whether the item is a drawable.
- public bool is_group ()
Returns whether the item is a group item.
- public bool is_group_layer ()
Returns whether the item is a group layer.
- public bool is_layer ()
Returns whether the item is a layer.
- public bool is_layer_mask ()
Returns whether the item is a layer mask.
- public bool is_link_layer ()
Returns whether the item is a link layer.
- public bool is_path ()
Returns whether the item is a path.
- public bool is_selection ()
Returns whether the item is a selection.
- public bool is_text_layer ()
Returns whether the item is a text layer.
- public bool is_valid ()
Returns TRUE if the item is valid.
- public bool is_vector_layer ()
Returns whether the item is a vector layer.
- public bool set_color_tag (ColorTag color_tag)
Set the color tag of the specified item.
- public bool set_expanded (bool expanded)
Sets the expanded state of the item.
- public bool set_lock_content (bool lock_content)
Set the 'lock content' state of the specified item.
- public bool set_lock_position (bool lock_position)
Set the 'lock position' state of the specified item.
- public bool set_lock_visibility (bool lock_visibility)
Set the 'lock visibility' state of the specified item.
- public bool set_name (string name)
Set the name of the specified item.
- public bool set_tattoo (uint tattoo)
Set the tattoo of the specified item.
- public bool set_visible (bool visible)
Set the visibility of the specified item.
- public unowned Item transform_2d (double source_x, double source_y, double scale_x, double scale_y, double angle, double dest_x, double dest_y)
Transform the specified item in 2d.
- public unowned Item transform_flip (double x0, double y0, double x1, double y1)
Flip the specified item around a given line.
- public unowned Item transform_flip_simple (OrientationType flip_type, bool auto_center, double axis)
Flip the specified item either vertically or horizontally.
- public unowned Item transform_matrix (double coeff_0_0, double coeff_0_1, double coeff_0_2, double coeff_1_0, double coeff_1_1, double coeff_1_2, double coeff_2_0, double coeff_2_1, double coeff_2_2)
Transform the specified item in 2d.
- public unowned Item transform_perspective (double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)
Perform a possibly non-affine transformation on the specified item.
- public unowned Item transform_rotate (double angle, bool auto_center, double center_x, double center_y)
Rotate the specified item about given coordinates through the
specified angle.
- public unowned Item transform_rotate_simple (RotationType rotate_type, bool auto_center, double center_x, double center_y)
Rotate the specified item about given coordinates through the
specified angle.
- public unowned Item transform_scale (double x0, double y0, double x1, double y1)
Scale the specified item.
- public unowned Item transform_shear (OrientationType shear_type, double magnitude)
Shear the specified item about its center by the specified magnitude.
- public unowned Item transform_translate (double off_x, double off_y)
Translate the item by the specified offsets.