]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/selection.h
iqmmodel: better format description
[xonotic/netradiant.git] / radiant / selection.h
index 16b9aa2f82cf46a470c5d4594919f512cf1b1cdd..b15ff93c7d54ca1709ecd2636162bdfc4aaefcb9 100644 (file)
 #define INCLUDED_SELECTION_H
 
 #include "windowobserver.h"
-#include "generic/callbackfwd.h"
+#include "generic/callback.h"
 
-struct rect_t
-{
-       float min[2];
-       float max[2];
+struct rect_t {
+    float min[2];
+    float max[2];
 };
 
-typedef Callback1<rect_t> RectangleCallback;
+typedef Callback<void(rect_t)> RectangleCallback;
 
 class View;
 
-class SelectionSystemWindowObserver : public WindowObserver
-{
+class SelectionSystemWindowObserver : public WindowObserver {
 public:
-virtual void setView( const View& view ) = 0;
-virtual void setRectangleDrawCallback( const RectangleCallback& callback ) = 0;
+    virtual ~SelectionSystemWindowObserver() = default;
+
+    virtual void setView(const View &view) = 0;
+
+    virtual void setRectangleDrawCallback(const RectangleCallback &callback) = 0;
 };
 
-SelectionSystemWindowObserverNewWindowObserver();
+SelectionSystemWindowObserver *NewWindowObserver();
 
 class AABB;
-namespace scene
-{
-class Graph;
+namespace scene {
+    class Graph;
 }
-void Scene_BoundsSelected( scene::Graph& graph, AABB& bounds );
+
+void Scene_BoundsSelected(scene::Graph &graph, AABB &bounds);
 
 #endif