Gsk.ColorNode

g Gsk.ColorNode Gsk.ColorNode Gsk.RenderNode Gsk.RenderNode Gsk.RenderNode->Gsk.ColorNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (8)

class

new (rgba, bounds)

get_color ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.ColorNode
Bases:

Gsk.RenderNode

Abstract:

No

A render node for a solid color.

classmethod new(rgba, bounds)
Parameters:
  • rgba (Gdk.RGBA) – a GdkRGBA specifying a color

  • bounds (Graphene.Rect) – the rectangle to render the color into

Returns:

A new GskRenderNode

Return type:

Gsk.ColorNode

Creates a GskRenderNode that will render the color specified by rgba into the area given by bounds.

get_color()
Returns:

the color of the node

Return type:

Gdk.RGBA

Retrieves the color of the given self.