Gsk.PasteNode

g Gsk.PasteNode Gsk.PasteNode Gsk.RenderNode Gsk.RenderNode Gsk.RenderNode->Gsk.PasteNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (9)

class

new (bounds, depth)

get_depth ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.PasteNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node for a paste.

New in version 4.22.

classmethod new(bounds, depth)
Parameters:
  • bounds (Graphene.Rect) – the rectangle to render the paste into

  • depth (int) – the index of which copy to paste. This will usually be 0.

Returns:

A new GskRenderNode

Return type:

Gsk.PasteNode

Creates a GskRenderNode that will paste copied contents.

New in version 4.22.

get_depth()
Returns:

the index of the copy to paste.

Return type:

int

Retrieves the index of the copy that should be pasted.

New in version 4.22.