]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/selection.h
macos: add ssasc to deps, it's required to build the GTK theme
[xonotic/netradiant.git] / radiant / selection.h
index 16b9aa2f82cf46a470c5d4594919f512cf1b1cdd..99846fed6a61bda0686667f3cfc2f5f8bbd75445 100644 (file)
@@ -23,7 +23,7 @@
 #define INCLUDED_SELECTION_H
 
 #include "windowobserver.h"
-#include "generic/callbackfwd.h"
+#include "generic/callback.h"
 
 struct rect_t
 {
@@ -31,13 +31,14 @@ struct rect_t
        float max[2];
 };
 
-typedef Callback1<rect_t> RectangleCallback;
+typedef Callback<void(rect_t)> RectangleCallback;
 
 class View;
 
 class SelectionSystemWindowObserver : public WindowObserver
 {
 public:
+virtual ~SelectionSystemWindowObserver() = default;
 virtual void setView( const View& view ) = 0;
 virtual void setRectangleDrawCallback( const RectangleCallback& callback ) = 0;
 };