]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/uilib/uilib.h
Wrap GtkGLArea
[xonotic/netradiant.git] / libs / uilib / uilib.h
index 925384ee752ab1451dcea601846f2305b1c52196..72470990ea8cf7c5e4804a377ae8038de97c7c58 100644 (file)
@@ -64,6 +64,14 @@ struct _GtkWidget;
 struct _GtkWindow;
 struct _GTypeInstance;
 
+#if GTK_TARGET == 3
+struct _GtkGLArea;
+#endif
+
+#if GTK_TARGET == 2
+using _GtkGLArea = struct _GtkDrawingArea;
+#endif
+
 struct ModalDialog;
 
 namespace ui {
@@ -530,6 +538,13 @@ namespace ui {
     ,
     );
 
+    // Custom
+
+    WRAP(GLArea, Widget, _GtkGLArea, (),
+    ,
+         guint on_render(GCallback pFunction, void *data);
+    );
+
 #undef WRAP
 
     // callbacks