X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fselection.h;h=b15ff93c7d54ca1709ecd2636162bdfc4aaefcb9;hb=0c748cb13b9eee76674ef72fa4751590ee223956;hp=1082c002d5f2ac6962db55ff06c8dee6a8f867a6;hpb=34ec2a7ed336d403fc8d7d0951b5dd3af26224bb;p=xonotic%2Fnetradiant.git diff --git a/radiant/selection.h b/radiant/selection.h index 1082c002..b15ff93c 100644 --- a/radiant/selection.h +++ b/radiant/selection.h @@ -23,33 +23,33 @@ #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 RectangleCallback; +typedef Callback 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; }; -SelectionSystemWindowObserver* NewWindowObserver(); +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