Class: Gsk::RadialGradientNode
- Inherits:
-
RenderNode
- Object
- RenderNode
- Gsk::RadialGradientNode
- Defined in:
- (unknown)
Overview
A render node for a radial gradient.
Instance Method Summary collapse
-
#center ⇒ Graphene::Point
Retrieves the center pointer for the gradient.
-
#end ⇒ Gsk::gfloat
Retrieves the end value for the gradient.
-
#get_color_stops(n_stops) ⇒ Array<Gsk::ColorStop>
Retrieves the color stops in the gradient.
-
#hradius ⇒ Gsk::gfloat
Retrieves the horizontal radius for the gradient.
-
#initialize(bounds, center, hradius, vradius, start, end, color_stops, n_color_stops) ⇒ Gsk::RadialGradientNode
constructor
Creates a
GskRenderNodethat draws a radial gradient. -
#n_color_stops ⇒ Integer
Retrieves the number of color stops in the gradient.
-
#start ⇒ Gsk::gfloat
Retrieves the start value for the gradient.
-
#vradius ⇒ Gsk::gfloat
Retrieves the vertical radius for the gradient.
Methods inherited from RenderNode
deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file
Constructor Details
#initialize(bounds, center, hradius, vradius, start, end, color_stops, n_color_stops) ⇒ Gsk::RadialGradientNode
Creates a GskRenderNode that draws a radial gradient.
The radial gradient starts around center. The size of the gradient is dictated by hradius in horizontal orientation and by vradius in vertical orientation.
Instance Method Details
#center ⇒ Graphene::Point
Retrieves the center pointer for the gradient.
#end ⇒ Gsk::gfloat
Retrieves the end value for the gradient.
#get_color_stops(n_stops) ⇒ Array<Gsk::ColorStop>
Retrieves the color stops in the gradient.
#hradius ⇒ Gsk::gfloat
Retrieves the horizontal radius for the gradient.
#n_color_stops ⇒ Integer
Retrieves the number of color stops in the gradient.
#start ⇒ Gsk::gfloat
Retrieves the start value for the gradient.
#vradius ⇒ Gsk::gfloat
Retrieves the vertical radius for the gradient.