Gsk.ColorNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gsk.ColorNode¶
- Bases:
- Abstract:
No
A render node for a solid color.
- classmethod new(rgba, bounds)¶
- Parameters:
rgba (
Gdk.RGBA) – aGdkRGBAspecifying a colorbounds (
Graphene.Rect) – the rectangle to render the color into
- Returns:
A new
GskRenderNode- Return type:
Creates a
GskRenderNodethat will render the color specified by rgba into the area given by bounds.
- get_color()¶
- Returns:
the color of the node
- Return type:
Retrieves the color of the given self.
The value returned by this function will not be correct if the render node was created for a non-sRGB color.