class Cairo::Path
- Cairo::Path
- Reference
- Object
Overview
Paths are the most basic drawing tools and are primarily used to implicitly generate simple masks.
Path is a data structure for holding a path. This data structure serves as the return value for
Context#copy_path˙ and
Context#copy_path_flatas well the input value for
Context#append`.
See PathDataType
for hints on how to iterate over the actual data within the path.
The num_data function gives the number of elements in the data array.
This number is larger than the number of independent path portions (defined in PathDataType
),
since the data includes both headers and coordinates for each portion.
Defined in:
cairo/path.crConstructors
Instance Method Summary
- #[](index : Int) : PathData
-
#finalize
Immediately releases all memory associated with path.
-
#num_data : Int32
Returns the number of elements in the path.
-
#status : Status
Returns the current error status.
- #status=(status : Status)
- #to_cairo_path : LibCairo::PathT
- #to_unsafe : LibCairo::PPathT
Constructor Detail
Instance Method Detail
Immediately releases all memory associated with path.
After a call to Path#finalize
the path pointer is no longer valid and should not be used further.
NOTE should only be called Path
returned by a Context
function.
Any path that is created manually (ie. outside of Context
) should be destroyed manually as well.