]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/uilib/uilib.h
Wrap more GTK
[xonotic/netradiant.git] / libs / uilib / uilib.h
index e15bdbe4ab5bfa8db1dfa5d73ede82e24dd07d19..f02a51727939bc8ed1fa7f98b04b7e78065d5546 100644 (file)
@@ -244,14 +244,10 @@ namespace ui {
         int height;
     };
 
+    class Window;
     WRAP(Widget, Object, _GtkWidget, (),
     ,
-         alert_response alert(
-                 std::string text,
-                 std::string title = "NetRadiant",
-                 alert_type type = alert_type::OK,
-                 alert_icon icon = alert_icon::Default
-         );
+         Window window();
          const char *file_dialog(
                  bool open,
                  const char *title,
@@ -288,6 +284,13 @@ namespace ui {
     WRAP(Window, Bin, _GtkWindow, (),
          explicit Window(window_type type);
     ,
+         alert_response alert(
+                 std::string text,
+                 std::string title = "NetRadiant",
+                 alert_type type = alert_type::OK,
+                 alert_icon icon = alert_icon::Default
+         );
+
          Window create_dialog_window(
                  const char *title,
                  void func(),