Gsk.StrokeNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gsk.StrokeNode¶
- Bases:
- Abstract:
No
A render node that will fill the area determined by stroking the the given [struct`Gsk`.Path] using the [struct`Gsk`.Stroke] attributes.
New in version 4.14.
- classmethod new(child, path, stroke)¶
- Parameters:
child (
Gsk.RenderNode) – The node to stroke the area withpath (
Gsk.Path) – The path describing the area to strokestroke (
Gsk.Stroke) – The stroke attributes to use
- Returns:
A new
Gsk.RenderNode- Return type:
Creates a
Gsk.RenderNodethat 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.
New in version 4.14.
- get_child()¶
- Returns:
The child that is getting drawn
- Return type:
Gets the child node that is getting drawn by the given self.
New in version 4.14.
- get_path()¶
-
Retrieves the path that will be stroked with the contents of the self.
New in version 4.14.
- get_stroke()¶
- Returns:
- Return type:
Retrieves the stroke attributes used in this self.
New in version 4.14.