GroupLayer


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.8" ) ]
public GroupLayer (Image image, string? name)

Create a new group layer.

This procedure creates a new group layer with a given name. If name is null, 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].

Parameters:

image

The image to which to add the group layer.

name

The group layer name.

Returns:

The newly created group layer.