GskPath.def 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. DEFINITION MODULE FOR "C" GskPath ;
  2. (*
  3. m2-GTK4 - GskPath: an immutable, conic-capable path. Mapped onto <gsk/gskpath.h>.
  4. *)
  5. FROM SYSTEM IMPORT ADDRESS;
  6. EXPORT UNQUALIFIED
  7. GskPath,
  8. gsk_path_foreach,
  9. gsk_path_get_bounds,
  10. gsk_path_get_closest_point,
  11. gsk_path_get_end_point,
  12. gsk_path_get_start_point,
  13. gsk_path_get_stroke_bounds,
  14. gsk_path_in_fill,
  15. gsk_path_is_closed,
  16. gsk_path_is_empty,
  17. gsk_path_print,
  18. gsk_path_ref,
  19. gsk_path_to_cairo,
  20. gsk_path_to_string,
  21. gsk_path_unref,
  22. gsk_path_parse;
  23. TYPE
  24. GskPath = ADDRESS;
  25. (* gboolean gsk_path_foreach(GskPath *self, GskPathForeachFlags flags, gpointer user_data) *)
  26. PROCEDURE gsk_path_foreach (self: GskPath; flags: CARDINAL; user_data: ADDRESS) : INTEGER;
  27. (* gboolean gsk_path_get_bounds(GskPath *self, graphene_rect_t *bounds) *)
  28. PROCEDURE gsk_path_get_bounds (self: GskPath; bounds: ADDRESS) : INTEGER;
  29. (* gboolean gsk_path_get_closest_point(GskPath *self, const graphene_point_t *point, float threshold, GskPathPoint *result, float *distance) *)
  30. PROCEDURE gsk_path_get_closest_point (self: GskPath; point: ADDRESS; threshold: SHORTREAL; result: ADDRESS; VAR distance: SHORTREAL) : INTEGER;
  31. (* gboolean gsk_path_get_end_point(GskPath *self, GskPathPoint *result) *)
  32. PROCEDURE gsk_path_get_end_point (self: GskPath; result: ADDRESS) : INTEGER;
  33. (* gboolean gsk_path_get_start_point(GskPath *self, GskPathPoint *result) *)
  34. PROCEDURE gsk_path_get_start_point (self: GskPath; result: ADDRESS) : INTEGER;
  35. (* gboolean gsk_path_get_stroke_bounds(GskPath *self, const GskStroke *stroke, graphene_rect_t *bounds) *)
  36. PROCEDURE gsk_path_get_stroke_bounds (self: GskPath; stroke: ADDRESS; bounds: ADDRESS) : INTEGER;
  37. (* gboolean gsk_path_in_fill(GskPath *self, const graphene_point_t *point, GskFillRule fill_rule) *)
  38. PROCEDURE gsk_path_in_fill (self: GskPath; point: ADDRESS; fill_rule: CARDINAL) : INTEGER;
  39. (* gboolean gsk_path_is_closed(GskPath *self) *)
  40. PROCEDURE gsk_path_is_closed (self: GskPath) : INTEGER;
  41. (* gboolean gsk_path_is_empty(GskPath *self) *)
  42. PROCEDURE gsk_path_is_empty (self: GskPath) : INTEGER;
  43. (* void gsk_path_print(GskPath *self, GString *string) *)
  44. PROCEDURE gsk_path_print (self: GskPath; string: ADDRESS);
  45. (* GskPath *gsk_path_ref(GskPath *self) *)
  46. PROCEDURE gsk_path_ref (self: GskPath) : ADDRESS;
  47. (* void gsk_path_to_cairo(GskPath *self, cairo_t *cr) *)
  48. PROCEDURE gsk_path_to_cairo (self: GskPath; cr: ADDRESS);
  49. (* char *gsk_path_to_string(GskPath *self) *)
  50. PROCEDURE gsk_path_to_string (self: GskPath) : ADDRESS;
  51. (* void gsk_path_unref(GskPath *self) *)
  52. PROCEDURE gsk_path_unref (self: GskPath);
  53. (* GskPath *gsk_path_parse(const char *string) *)
  54. PROCEDURE gsk_path_parse (string: ARRAY OF CHAR) : ADDRESS;
  55. END GskPath.