Gimp.LayerMask

g GObject.Object GObject.Object Gimp.Item Gimp.Item GObject.Object->Gimp.Item Gimp.Channel Gimp.Channel Gimp.LayerMask Gimp.LayerMask Gimp.Channel->Gimp.LayerMask Gimp.Drawable Gimp.Drawable Gimp.Drawable->Gimp.Channel Gimp.Item->Gimp.Drawable

Subclasses:

None

Methods

Inherited:

Gimp.Channel (11), Gimp.Drawable (55), Gimp.Item (55), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_by_id (layer_mask_id)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Gimp.Item (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gimp.LayerMask(**kwargs)
Bases:

Gimp.Channel

Abstract:

No

Structure:

Gimp.LayerMaskClass

classmethod get_by_id(layer_mask_id)
Parameters:

layer_mask_id (int) – The layer_mask id.

Returns:

a Gimp.LayerMask for layer_mask_id or None if layer_mask_id does not represent a valid layer_mask. The object belongs to libgimp and you must not modify or unref it.

Return type:

Gimp.LayerMask or None

Returns a Gimp.LayerMask representing layer_mask_id. This function calls Gimp.Item.get_by_id() and returns the item if it is layer_mask or None otherwise.

New in version 3.0.