gdkpango.inc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // included by gdk2.pp
  2. {$IFDEF read_interface_types}
  3. { Attributes use to render insensitive text in GTK+. }
  4. PGdkPangoAttrStipple = ^TGdkPangoAttrStipple;
  5. TGdkPangoAttrStipple = record
  6. attr : TPangoAttribute;
  7. stipple : PGdkBitmap;
  8. end;
  9. PGdkPangoAttrEmbossed = ^TGdkPangoAttrEmbossed;
  10. TGdkPangoAttrEmbossed = record
  11. attr : TPangoAttribute;
  12. embossed : gboolean;
  13. end;
  14. {$ENDIF read_interface_types}
  15. //------------------------------------------------------------------------------
  16. {$IFDEF read_interface_rest}
  17. { Pango interaction }
  18. function gdk_pango_context_get_for_screen(screen:PGdkScreen):PPangoContext; cdecl; external gdklib;
  19. {$ifndef GDK_MULTIHEAD_SAFE}
  20. function gdk_pango_context_get:PPangoContext; cdecl; external gdklib;
  21. {$endif}
  22. procedure gdk_pango_context_set_colormap(context:PPangoContext; colormap:PGdkColormap); cdecl; external gdklib;
  23. { Get a clip region to draw only part of a layout or
  24. line. index_ranges contains alternating range starts/stops. The
  25. region is the region which contains the given ranges, i.e. if you
  26. draw with the region as clip, only the given ranges are drawn.
  27. }
  28. function gdk_pango_layout_line_get_clip_region(line:PPangoLayoutLine; x_origin:gint; y_origin:gint; index_ranges:Pgint; n_ranges:gint):PGdkRegion; cdecl; external gdklib;
  29. function gdk_pango_layout_get_clip_region(layout:PPangoLayout; x_origin:gint; y_origin:gint; index_ranges:Pgint; n_ranges:gint):PGdkRegion; cdecl; external gdklib;
  30. function gdk_pango_attr_stipple_new(stipple:PGdkBitmap):PPangoAttribute; cdecl; external gdklib;
  31. function gdk_pango_attr_embossed_new(embossed:gboolean):PPangoAttribute; cdecl; external gdklib;
  32. {$endif read_interface_rest}
  33. //------------------------------------------------------------------------------
  34. {$IFDEF read_implementation}
  35. {$ENDIF}