Package ch.bailu.gtk.gsk
Schnittstelle Path.OnPathForeachFunc
- Umschließende Klasse:
Path
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
onPathForeachFunc
(CallbackHandler __self, int op, Point pts, long n_pts, float weight, Pointer user_data) Type of the callback to iterate through the operations of a path.
-
Methodendetails
-
onPathForeachFunc
boolean onPathForeachFunc(CallbackHandler __self, int op, @Nonnull Point pts, long n_pts, float weight, @Nullable Pointer user_data) 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_PATH_MOVE operation.
Closed contours end with a @GSK_PATH_CLOSE operation.- Parameter:
op
- The operationpts
- The points of the operationn_pts
- The number of pointsweight
- The weight for conic curves, or unused if not a conic curveuser_data
- The user data provided with the function- Gibt zurück:
- %TRUE to continue iterating the path, %FALSE to immediately abort and not call the function again.
-