Callbacks¶
|
|
|
|
|
Details¶
- Gsk.ParseErrorFunc(start, end, error, *user_data)¶
- Parameters:
start (
Gsk.ParseLocation) – start of the error locationend (
Gsk.ParseLocation) – end of the error locationerror (
GLib.Error) – the error
Type of callback that is called when an error occurs during node deserialization.
- Gsk.PathForeachFunc(op, pts, weight, *user_data)¶
- Parameters:
op (
Gsk.PathOperation) – The operationpts ([
Graphene.Point]) – The points of the operationweight (
float) – The weight for conic curves, or unused if not a conic curveuser_data (
objectorNone) – The user data provided with the function
- Returns:
Trueto continue iterating the path,Falseto immediately abort and not call the function again.- Return type:
Type of the callback to iterate through the operations of a path.
For each operation, the callback is given the op itself, the points that the operation is applied to in pts, and a weight for conic curves. The n_pts argument is somewhat redundant, since the number of points can be inferred from the operation.
Each contour of the path starts with a
Gsk.PathOperation.MOVEoperation. Closed contours end with aGsk.PathOperation.CLOSEoperation.
- Gsk.PathIntersectionFunc(path1, point1, path2, point2, kind, *user_data)¶
- Parameters:
path1 (
Gsk.Path) – the first pathpoint1 (
Gsk.PathPoint) – the intersection as point on path1path2 (
Gsk.Path) – the second pathpoint2 (
Gsk.PathPoint) – the intersection as point on path2kind (
Gsk.PathIntersection) – the nature of the intersection
- Returns:
true to continue iterating, false to stop the iteration and not call the function again
- Return type:
Prototype of the callback to iterate through the intersections of two paths.
New in version 4.20.