]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/selection.h
reformat code! now the code is only ugly on the *inside*
[xonotic/netradiant.git] / radiant / selection.h
index 99846fed6a61bda0686667f3cfc2f5f8bbd75445..b15ff93c7d54ca1709ecd2636162bdfc4aaefcb9 100644 (file)
 #include "windowobserver.h"
 #include "generic/callback.h"
 
-struct rect_t
-{
-       float min[2];
-       float max[2];
+struct rect_t {
+    float min[2];
+    float max[2];
 };
 
 typedef Callback<void(rect_t)> RectangleCallback;
 
 class View;
 
-class SelectionSystemWindowObserver : public WindowObserver
-{
+class SelectionSystemWindowObserver : public WindowObserver {
 public:
-virtual ~SelectionSystemWindowObserver() = default;
-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