gtktextmarkprivate.inc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // included by gtk2.pas
  2. {$IFDEF read_forward_definitions}
  3. {$ENDIF read_forward_definitions}
  4. //------------------------------------------------------------------------------
  5. {$IFDEF read_interface_types}
  6. {
  7. The data structure below defines line segments that represent
  8. marks. There is one of these for each mark in the text.
  9. }
  10. PGtkTextMarkBody = ^TGtkTextMarkBody;
  11. TGtkTextMarkBody = record
  12. obj : PGtkTextMark;
  13. name : Pgchar;
  14. tree : PGtkTextBTree;
  15. line : PGtkTextLine;
  16. flag0 : word;
  17. end;
  18. {$ENDIF read_interface_types}
  19. //------------------------------------------------------------------------------
  20. {$IFDEF read_interface_rest}
  21. const
  22. bm_TGtkTextMarkBody_visible = $1;
  23. bp_TGtkTextMarkBody_visible = 0;
  24. bm_TGtkTextMarkBody_not_deleteable = $2;
  25. bp_TGtkTextMarkBody_not_deleteable = 1;
  26. function visible(var a : TGtkTextMarkBody) : guint; overload;
  27. procedure set_visible(var a : TGtkTextMarkBody; __visible : guint); overload;
  28. function not_deleteable(var a : TGtkTextMarkBody) : guint;
  29. procedure set_not_deleteable(var a : TGtkTextMarkBody; __not_deleteable : guint);
  30. function _gtk_mark_segment_new(tree:PGtkTextBTree; left_gravity:gboolean; name:Pgchar):PGtkTextLineSegment; cdecl; external gtklib;
  31. {$ENDIF read_interface_rest}
  32. //------------------------------------------------------------------------------
  33. {$IFDEF read_implementation}
  34. function visible(var a : TGtkTextMarkBody) : guint;
  35. begin
  36. visible:=(a.flag0 and bm_TGtkTextMarkBody_visible) shr bp_TGtkTextMarkBody_visible;
  37. end;
  38. procedure set_visible(var a : TGtkTextMarkBody; __visible : guint);
  39. begin
  40. a.flag0:=a.flag0 or ((__visible shl bp_TGtkTextMarkBody_visible) and bm_TGtkTextMarkBody_visible);
  41. end;
  42. function not_deleteable(var a : TGtkTextMarkBody) : guint;
  43. begin
  44. not_deleteable:=(a.flag0 and bm_TGtkTextMarkBody_not_deleteable) shr bp_TGtkTextMarkBody_not_deleteable;
  45. end;
  46. procedure set_not_deleteable(var a : TGtkTextMarkBody; __not_deleteable : guint);
  47. begin
  48. a.flag0:=a.flag0 or ((__not_deleteable shl bp_TGtkTextMarkBody_not_deleteable) and bm_TGtkTextMarkBody_not_deleteable);
  49. end;
  50. {$ENDIF read_implementation}
  51. // included by gtk2.pas