gdkselection.inc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. // included by gdk2.pp
  2. {$IFDEF read_interface_types}
  3. {$ifndef GDK_DISABLE_DEPRECATED}
  4. PGdkSelection = ^TGdkSelection;
  5. TGdkSelection = TGdkAtom;
  6. PGdkTarget = ^TGdkTarget;
  7. TGdkTarget = TGdkAtom;
  8. PGdkSelectionType = ^TGdkSelectionType;
  9. TGdkSelectionType = TGdkAtom;
  10. {$endif}
  11. { GDK_DISABLE_DEPRECATED }
  12. {$ENDIF read_interface_types}
  13. //------------------------------------------------------------------------------
  14. {$IFDEF read_interface_rest}
  15. { Predefined atoms relating to selections. In general, one will need to use
  16. gdk_intern_atom
  17. }
  18. function GDK_SELECTION_PRIMARY : TGdkAtom;
  19. function GDK_SELECTION_SECONDARY : TGdkAtom;
  20. function GDK_SELECTION_CLIPBOARD : TGdkAtom;
  21. function GDK_TARGET_BITMAP : TGdkAtom;
  22. function GDK_TARGET_COLORMAP : TGdkAtom;
  23. function GDK_TARGET_DRAWABLE : TGdkAtom;
  24. function GDK_TARGET_PIXMAP : TGdkAtom;
  25. function GDK_TARGET_STRING : TGdkAtom;
  26. function GDK_SELECTION_TYPE_ATOM : TGdkAtom;
  27. function GDK_SELECTION_TYPE_BITMAP : TGdkAtom;
  28. function GDK_SELECTION_TYPE_COLORMAP : TGdkAtom;
  29. function GDK_SELECTION_TYPE_DRAWABLE : TGdkAtom;
  30. function GDK_SELECTION_TYPE_INTEGER : TGdkAtom;
  31. function GDK_SELECTION_TYPE_PIXMAP : TGdkAtom;
  32. function GDK_SELECTION_TYPE_WINDOW : TGdkAtom;
  33. function GDK_SELECTION_TYPE_STRING : TGdkAtom;
  34. { Selections }
  35. {$ifndef GDK_MULTIHEAD_SAFE}
  36. function gdk_selection_owner_set(owner:PGdkWindow; selection:TGdkAtom; time:guint32; send_event:gboolean):gboolean; cdecl; external gdklib;
  37. function gdk_selection_owner_get(selection:TGdkAtom):PGdkWindow; cdecl; external gdklib;
  38. {$endif}
  39. { GDK_MULTIHEAD_SAFE }
  40. function gdk_selection_owner_set_for_display(display:PGdkDisplay; owner:PGdkWindow; selection:TGdkAtom; time:guint32; send_event:gboolean):gboolean; cdecl; external gdklib;
  41. function gdk_selection_owner_get_for_display(display:PGdkDisplay; selection:TGdkAtom):PGdkWindow; cdecl; external gdklib;
  42. procedure gdk_selection_convert(requestor:PGdkWindow; selection:TGdkAtom; target:TGdkAtom; time:guint32); cdecl; external gdklib;
  43. function gdk_selection_property_get(requestor:PGdkWindow; data:PPguchar; prop_type:PGdkAtom; prop_format:Pgint):gboolean; cdecl; external gdklib;
  44. {$ifndef GDK_MULTIHEAD_SAFE}
  45. procedure gdk_selection_send_notify(requestor:guint32; selection:TGdkAtom; target:TGdkAtom; _property:TGdkAtom; time:guint32); cdecl; external gdklib;
  46. {$endif}
  47. { GDK_MULTIHEAD_SAFE }
  48. procedure gdk_selection_send_notify_for_display(display:PGdkDisplay; requestor:guint32; selection:TGdkAtom; target:TGdkAtom; _property:TGdkAtom;
  49. time:guint32); cdecl; external gdklib;
  50. {$endif read_interface_rest}
  51. //------------------------------------------------------------------------------
  52. {$IFDEF read_implementation}
  53. function GDK_SELECTION_PRIMARY : TGdkAtom;
  54. begin
  55. GDK_SELECTION_PRIMARY:=_GDK_MAKE_ATOM(1);
  56. end;
  57. function GDK_SELECTION_SECONDARY : TGdkAtom;
  58. begin
  59. GDK_SELECTION_SECONDARY:=_GDK_MAKE_ATOM(2);
  60. end;
  61. function GDK_SELECTION_CLIPBOARD : TGdkAtom;
  62. begin
  63. GDK_SELECTION_CLIPBOARD:=_GDK_MAKE_ATOM(69);
  64. end;
  65. function GDK_TARGET_BITMAP : TGdkAtom;
  66. begin
  67. GDK_TARGET_BITMAP:=_GDK_MAKE_ATOM(5);
  68. end;
  69. function GDK_TARGET_COLORMAP : TGdkAtom;
  70. begin
  71. GDK_TARGET_COLORMAP:=_GDK_MAKE_ATOM(7);
  72. end;
  73. function GDK_TARGET_DRAWABLE : TGdkAtom;
  74. begin
  75. GDK_TARGET_DRAWABLE:=_GDK_MAKE_ATOM(17);
  76. end;
  77. function GDK_TARGET_PIXMAP : TGdkAtom;
  78. begin
  79. GDK_TARGET_PIXMAP:=_GDK_MAKE_ATOM(20);
  80. end;
  81. function GDK_TARGET_STRING : TGdkAtom;
  82. begin
  83. GDK_TARGET_STRING:=_GDK_MAKE_ATOM(31);
  84. end;
  85. function GDK_SELECTION_TYPE_ATOM : TGdkAtom;
  86. begin
  87. GDK_SELECTION_TYPE_ATOM:=_GDK_MAKE_ATOM(4);
  88. end;
  89. function GDK_SELECTION_TYPE_BITMAP : TGdkAtom;
  90. begin
  91. GDK_SELECTION_TYPE_BITMAP:=_GDK_MAKE_ATOM(5);
  92. end;
  93. function GDK_SELECTION_TYPE_COLORMAP : TGdkAtom;
  94. begin
  95. GDK_SELECTION_TYPE_COLORMAP:=_GDK_MAKE_ATOM(7);
  96. end;
  97. function GDK_SELECTION_TYPE_DRAWABLE : TGdkAtom;
  98. begin
  99. GDK_SELECTION_TYPE_DRAWABLE:=_GDK_MAKE_ATOM(17);
  100. end;
  101. function GDK_SELECTION_TYPE_INTEGER : TGdkAtom;
  102. begin
  103. GDK_SELECTION_TYPE_INTEGER:=_GDK_MAKE_ATOM(19);
  104. end;
  105. function GDK_SELECTION_TYPE_PIXMAP : TGdkAtom;
  106. begin
  107. GDK_SELECTION_TYPE_PIXMAP:=_GDK_MAKE_ATOM(20);
  108. end;
  109. function GDK_SELECTION_TYPE_WINDOW : TGdkAtom;
  110. begin
  111. GDK_SELECTION_TYPE_WINDOW:=_GDK_MAKE_ATOM(33);
  112. end;
  113. function GDK_SELECTION_TYPE_STRING : TGdkAtom;
  114. begin
  115. GDK_SELECTION_TYPE_STRING:=_GDK_MAKE_ATOM(31);
  116. end;
  117. {$ENDIF}