Class: Gsk::LinearGradientNode
- Inherits:
-
RenderNode
- Object
- RenderNode
- Gsk::LinearGradientNode
- Defined in:
- (unknown)
Overview
A render node for a linear gradient.
Instance Method Summary collapse
-
#end ⇒ Graphene::Point
Retrieves the final point of the linear gradient.
-
#get_color_stops(n_stops) ⇒ Array<Gsk::ColorStop>
Retrieves the color stops in the gradient.
-
#initialize(bounds, start, end, color_stops, n_color_stops) ⇒ Gsk::LinearGradientNode
constructor
Creates a
GskRenderNodethat will create a linear gradient from the given points and color stops, and render that into the area given by bounds. -
#n_color_stops ⇒ Integer
Retrieves the number of color stops in the gradient.
-
#start ⇒ Graphene::Point
Retrieves the initial point of the linear gradient.
Methods inherited from RenderNode
deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file
Constructor Details
#initialize(bounds, start, end, color_stops, n_color_stops) ⇒ Gsk::LinearGradientNode
Creates a GskRenderNode that will create a linear gradient from the given
points and color stops, and render that into the area given by bounds.
Instance Method Details
#end ⇒ Graphene::Point
Retrieves the final point of the linear gradient.
#get_color_stops(n_stops) ⇒ Array<Gsk::ColorStop>
Retrieves the color stops in the gradient.
#n_color_stops ⇒ Integer
Retrieves the number of color stops in the gradient.
#start ⇒ Graphene::Point
Retrieves the initial point of the linear gradient.