gdkregion.inc 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // included by gdk2.pp
  2. {$IFDEF read_interface_types}
  3. { GC fill rule for polygons
  4. EvenOddRule
  5. WindingRule
  6. }
  7. PGdkFillRule = ^TGdkFillRule;
  8. TGdkFillRule = (
  9. GDK_EVEN_ODD_RULE,
  10. GDK_WINDING_RULE
  11. );
  12. { Types of overlapping between a rectangle and a region
  13. GDK_OVERLAP_RECTANGLE_IN: rectangle is in region
  14. GDK_OVERLAP_RECTANGLE_OUT: rectangle in not in region
  15. GDK_OVERLAP_RECTANGLE_PART: rectangle in partially in region
  16. }
  17. PGdkOverlapType = ^TGdkOverlapType;
  18. TGdkOverlapType = (
  19. GDK_OVERLAP_RECTANGLE_IN,
  20. GDK_OVERLAP_RECTANGLE_OUT,
  21. GDK_OVERLAP_RECTANGLE_PART
  22. );
  23. TGdkSpanFunc = procedure (span:PGdkSpan; data:gpointer); cdecl;
  24. {$ENDIF read_interface_types}
  25. //------------------------------------------------------------------------------
  26. {$IFDEF read_interface_rest}
  27. function gdk_region_new:PGdkRegion; cdecl; external gdklib;
  28. function gdk_region_polygon(points:PGdkPoint; npoints:gint; fill_rule:TGdkFillRule):PGdkRegion; cdecl; external gdklib;
  29. function gdk_region_copy(region:PGdkRegion):PGdkRegion; cdecl; external gdklib;
  30. function gdk_region_rectangle(rectangle:PGdkRectangle):PGdkRegion; cdecl; external gdklib;
  31. procedure gdk_region_destroy(region:PGdkRegion); cdecl; external gdklib;
  32. procedure gdk_region_get_clipbox(region:PGdkRegion; rectangle:PGdkRectangle); cdecl; external gdklib;
  33. procedure gdk_region_get_rectangles(region:PGdkRegion; var rectangles:PGdkRectangle; n_rectangles:Pgint); cdecl; external gdklib;
  34. function gdk_region_empty(region:PGdkRegion):gboolean; cdecl; external gdklib;
  35. function gdk_region_equal(region1:PGdkRegion; region2:PGdkRegion):gboolean; cdecl; external gdklib;
  36. function gdk_region_point_in(region:PGdkRegion; x:longint; y:longint):gboolean; cdecl; external gdklib;
  37. function gdk_region_rect_in(region:PGdkRegion; rect:PGdkRectangle):TGdkOverlapType; cdecl; external gdklib;
  38. procedure gdk_region_offset(region:PGdkRegion; dx:gint; dy:gint); cdecl; external gdklib;
  39. procedure gdk_region_shrink(region:PGdkRegion; dx:gint; dy:gint); cdecl; external gdklib;
  40. procedure gdk_region_union_with_rect(region:PGdkRegion; rect:PGdkRectangle); cdecl; external gdklib;
  41. procedure gdk_region_intersect(source1:PGdkRegion; source2:PGdkRegion); cdecl; external gdklib;
  42. procedure gdk_region_union(source1:PGdkRegion; source2:PGdkRegion); cdecl; external gdklib;
  43. procedure gdk_region_subtract(source1:PGdkRegion; source2:PGdkRegion); cdecl; external gdklib;
  44. procedure gdk_region_xor(source1:PGdkRegion; source2:PGdkRegion); cdecl; external gdklib;
  45. procedure gdk_region_spans_intersect_foreach(region:PGdkRegion; spans:PGdkSpan; n_spans:longint; sorted:gboolean; _function:TGdkSpanFunc;
  46. data:gpointer); cdecl; external gdklib;
  47. {$endif read_interface_rest}
  48. //------------------------------------------------------------------------------
  49. {$IFDEF read_implementation}
  50. {$ENDIF}