gdkglwindow.inc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. { Original file is /usr/include/gtkglext-1.0/gdk/gdkglwindow.h }
  2. {$ifdef read_interface_types}
  3. { PGdkGLWindow already defined in gdkgltypes.inc }
  4. TGdkGLWindow = record
  5. parent_instance: TGObject;
  6. drawable: PGdkDrawable; {* Associated GdkWindow *}
  7. end;
  8. PGdkGLWindowClass = ^TGdkGLWindowClass;
  9. TGdkGLWindowClass = record
  10. parent_class: TGObjectClass;
  11. end;
  12. {$endif read_interface_types}
  13. {$ifdef read_interface_rest}
  14. function GDK_TYPE_GL_WINDOW: GType;
  15. function GDK_GL_WINDOW(anObject: Pointer): PGdkGLWindow;
  16. function GDK_GL_WINDOW_CLASS(klass: Pointer): PGdkGLWindowClass;
  17. function GDK_IS_GL_WINDOW(anObject: Pointer): boolean;
  18. function GDK_IS_GL_WINDOW_CLASS(klass: Pointer): boolean;
  19. function GDK_GL_WINDOW_GET_CLASS(obj: Pointer): PGdkGLWindowClass;
  20. function gdk_gl_window_get_type: GType; cdecl; external GdkGLExtLib;
  21. {*
  22. * attrib_list is currently unused. This must be set to NULL or empty
  23. * (first attribute of None). See GLX 1.3 spec.
  24. *}
  25. function gdk_gl_window_new(
  26. glconfig: PGdkGLConfig;
  27. window: PGdkWindow;
  28. attrib_list: PLongInt): PGdkGLWindow;
  29. cdecl; external GdkGLExtLib;
  30. procedure gdk_gl_window_destroy(glwindow: PGdkGLWindow);
  31. cdecl; external GdkGLExtLib;
  32. function gdk_gl_window_get_window(glwindow: PGdkGLWindow): PGdkWindow;
  33. cdecl; external GdkGLExtLib;
  34. {*
  35. * OpenGL extension to GdkWindow
  36. *}
  37. function gdk_window_set_gl_capability(
  38. window: PGdkWindow;
  39. glconfig: PGdkGLConfig;
  40. attrib_list: PLongInt): PGdkGLWindow;
  41. cdecl; external GdkGLExtLib;
  42. procedure gdk_window_unset_gl_capability(window: PGdkWindow);
  43. cdecl; external GdkGLExtLib;
  44. function gdk_window_is_gl_capable(window: PGdkWindow): gboolean;
  45. cdecl; external GdkGLExtLib;
  46. function gdk_window_get_gl_window(window: PGdkWindow): PGdkGLWindow;
  47. cdecl; external GdkGLExtLib;
  48. function gdk_window_get_gl_drawable(window: PGdkWindow): PGdkGLDrawable;
  49. {$endif read_interface_rest}
  50. {$ifdef read_implementation}
  51. function GDK_TYPE_GL_WINDOW: GType;
  52. begin
  53. GDK_TYPE_GL_WINDOW := gdk_gl_window_get_type;
  54. end;
  55. function GDK_GL_WINDOW(anObject: Pointer): PGdkGLWindow;
  56. begin
  57. GDK_GL_WINDOW := PGdkGLWindow(
  58. G_TYPE_CHECK_INSTANCE_CAST(anObject, GDK_TYPE_GL_WINDOW));
  59. end;
  60. function GDK_GL_WINDOW_CLASS(klass: Pointer): PGdkGLWindowClass;
  61. begin
  62. GDK_GL_WINDOW_CLASS := PGdkGLWindowClass(
  63. G_TYPE_CHECK_CLASS_CAST(klass, GDK_TYPE_GL_WINDOW));
  64. end;
  65. function GDK_IS_GL_WINDOW(anObject: Pointer): boolean;
  66. begin
  67. GDK_IS_GL_WINDOW := G_TYPE_CHECK_INSTANCE_TYPE(anObject, GDK_TYPE_GL_WINDOW);
  68. end;
  69. function GDK_IS_GL_WINDOW_CLASS(klass: Pointer): boolean;
  70. begin
  71. GDK_IS_GL_WINDOW_CLASS := G_TYPE_CHECK_CLASS_TYPE(klass, GDK_TYPE_GL_WINDOW);
  72. end;
  73. function GDK_GL_WINDOW_GET_CLASS(obj: Pointer): PGdkGLWindowClass;
  74. begin
  75. GDK_GL_WINDOW_GET_CLASS := PGdkGLWindowClass(
  76. G_TYPE_INSTANCE_GET_CLASS(obj, GDK_TYPE_GL_WINDOW));
  77. end;
  78. function gdk_window_get_gl_drawable(window: PGdkWindow): PGdkGLDrawable;
  79. begin
  80. gdk_window_get_gl_drawable :=
  81. GDK_GL_DRAWABLE (gdk_window_get_gl_window (window));
  82. end;
  83. {$endif read_implementation}