Class: Gsk::ColorNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node for a solid color.

Instance Method Summary collapse

Methods inherited from RenderNode

deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file

Constructor Details

#initialize(rgba, bounds) ⇒ Gsk::ColorNode

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

Parameters:

  • rgba (Gdk::RGBA)

    a GdkRGBA specifying a color

  • bounds (Graphene::Rect)

    the rectangle to render the color into

Instance Method Details

#colorGdk::RGBA

Retrieves the color of the given node.

Returns:

  • (Gdk::RGBA)

    the color of the node