GskRoundedRect.def 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. DEFINITION MODULE FOR "C" GskRoundedRect ;
  2. (*
  3. m2-GTK4 - GskRoundedRect: a rounded rectangle with four corner sizes.
  4. Mapped onto <gsk/gskroundedrect.h>.
  5. *)
  6. FROM SYSTEM IMPORT ADDRESS;
  7. EXPORT UNQUALIFIED
  8. GskRoundedRect,
  9. gsk_rounded_rect_contains_point,
  10. gsk_rounded_rect_contains_rect,
  11. gsk_rounded_rect_init,
  12. gsk_rounded_rect_init_copy,
  13. gsk_rounded_rect_init_from_rect,
  14. gsk_rounded_rect_intersects_rect,
  15. gsk_rounded_rect_is_rectilinear,
  16. gsk_rounded_rect_normalize,
  17. gsk_rounded_rect_offset,
  18. gsk_rounded_rect_shrink;
  19. TYPE
  20. GskRoundedRect = ADDRESS;
  21. (* gboolean gsk_rounded_rect_contains_point(const GskRoundedRect *self, const graphene_point_t *point) *)
  22. PROCEDURE gsk_rounded_rect_contains_point (self: GskRoundedRect; point: ADDRESS) : INTEGER;
  23. (* gboolean gsk_rounded_rect_contains_rect(const GskRoundedRect *self, const graphene_rect_t *rect) *)
  24. PROCEDURE gsk_rounded_rect_contains_rect (self: GskRoundedRect; rect: ADDRESS) : INTEGER;
  25. (* GskRoundedRect *gsk_rounded_rect_init(GskRoundedRect *self, const graphene_rect_t *bounds, const graphene_size_t *top_left, const graphene_size_t *top_right, const graphene_size_t *bottom_right, const graphene_size_t *bottom_left) *)
  26. PROCEDURE gsk_rounded_rect_init (self: GskRoundedRect; bounds: ADDRESS; top_left: ADDRESS; top_right: ADDRESS; bottom_right: ADDRESS; bottom_left: ADDRESS) : ADDRESS;
  27. (* GskRoundedRect *gsk_rounded_rect_init_copy(GskRoundedRect *self, const GskRoundedRect *src) *)
  28. PROCEDURE gsk_rounded_rect_init_copy (self: GskRoundedRect; src: GskRoundedRect) : ADDRESS;
  29. (* GskRoundedRect *gsk_rounded_rect_init_from_rect(GskRoundedRect *self, const graphene_rect_t *bounds, float radius) *)
  30. PROCEDURE gsk_rounded_rect_init_from_rect (self: GskRoundedRect; bounds: ADDRESS; radius: SHORTREAL) : ADDRESS;
  31. (* gboolean gsk_rounded_rect_intersects_rect(const GskRoundedRect *self, const graphene_rect_t *rect) *)
  32. PROCEDURE gsk_rounded_rect_intersects_rect (self: GskRoundedRect; rect: ADDRESS) : INTEGER;
  33. (* gboolean gsk_rounded_rect_is_rectilinear(const GskRoundedRect *self) *)
  34. PROCEDURE gsk_rounded_rect_is_rectilinear (self: GskRoundedRect) : INTEGER;
  35. (* GskRoundedRect *gsk_rounded_rect_normalize(GskRoundedRect *self) *)
  36. PROCEDURE gsk_rounded_rect_normalize (self: GskRoundedRect) : ADDRESS;
  37. (* GskRoundedRect *gsk_rounded_rect_offset(GskRoundedRect *self, float dx, float dy) *)
  38. PROCEDURE gsk_rounded_rect_offset (self: GskRoundedRect; dx: SHORTREAL; dy: SHORTREAL) : ADDRESS;
  39. (* GskRoundedRect *gsk_rounded_rect_shrink(GskRoundedRect *self, float top, float right, float bottom, float left) *)
  40. PROCEDURE gsk_rounded_rect_shrink (self: GskRoundedRect; top: SHORTREAL; right: SHORTREAL; bottom: SHORTREAL; left: SHORTREAL) : ADDRESS;
  41. END GskRoundedRect.