Class: Gsk::StrokeNode
- Inherits:
-
RenderNode
- Object
- RenderNode
- Gsk::StrokeNode
- Defined in:
- (unknown)
Overview
A render node that will fill the area determined by stroking the the given
[structGsk.Path] using the [structGsk.Stroke] attributes.
Instance Method Summary collapse
-
#child ⇒ Gsk::RenderNode
Gets the child node that is getting drawn by the given node.
-
#initialize(child, path, stroke) ⇒ Gsk::StrokeNode
constructor
Creates a Gsk::RenderNode that will fill the outline generated by stroking the given path using the attributes defined in stroke.
-
#path ⇒ Gsk::Path
Retrieves the path that will be stroked with the contents of the node.
-
#stroke ⇒ Gsk::Stroke
Retrieves the stroke attributes used in this node.
Methods inherited from RenderNode
deserialize, #draw, #get_bounds, #get_children, #get_opaque_rect, #node_type, #ref, #serialize, #unref, #write_to_file
Constructor Details
#initialize(child, path, stroke) ⇒ Gsk::StrokeNode
Creates a Gsk::RenderNode that will fill the outline generated by stroking
the given path using the attributes defined in stroke.
The area is filled with child.
GSK aims to follow the SVG semantics for stroking paths.
E.g. zero-length contours will get round or square line
caps drawn, regardless whether they are closed or not.
Instance Method Details
#child ⇒ Gsk::RenderNode
Gets the child node that is getting drawn by the given node.
#path ⇒ Gsk::Path
Retrieves the path that will be stroked with the contents of
the node.
#stroke ⇒ Gsk::Stroke
Retrieves the stroke attributes used in this node.