Gimp.GroupLayer¶
- Subclasses:
None
Methods¶
- Inherited:
Gimp.Layer (37), Gimp.Drawable (55), Gimp.Item (55), GObject.Object (37)
- Structs:
class |
|
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gimp.GroupLayer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Operations on a group layer.
- classmethod get_by_id(layer_id)¶
- Parameters:
layer_id (
int
) – The layer id.- Returns:
a
Gimp.GroupLayer
for layer_id orNone
if layer_id does not represent a valid group layer. The object belongs to libgimp and you must not modify or unref it.- Return type:
Returns a
Gimp.GroupLayer
representing layer_id. This function callsGimp.Item.get_by_id
() and returns the item if it is a group layer orNone
otherwise.New in version 3.0.
- classmethod new(image, name)¶
- Parameters:
image (
Gimp.Image
) – The image to which to add the group layer.
- Returns:
The newly created group layer.
- Return type:
Create a new group layer.
This procedure creates a new group layer with a given name. If name is
None
, GIMP will choose a name using its default layer name algorithm.The new group layer still needs to be added to the image, as this is not automatic. Add the new layer with the [method`Image`.insert_layer] method. Other attributes such as layer mask, modes and offsets should be set with explicit procedure calls.
Other procedures useful with group layers: [method`Image`.reorder_item], [method`Item`.get_parent], [method`Item`.get_children], [method`Item`.is_group].
New in version 2.8.
- merge()¶
- Returns:
The resulting layer.
- Return type:
Merge the passed group layer’s layers into one normal layer.
This procedure combines the layers of the passed group layer into a single normal layer, replacing the group. The group layer is expected to be attached to an image.
New in version 2.10.14.