Code

Filters. Custom predefined filters update and new ABC filters.
[inkscape.git] / src / context-fns.h
index 522871e753b75b498de2b0d6abab75195f43af82..be8b4dfd5599bd946a8060d326ad139c1a00a9a5 100644 (file)
@@ -1,5 +1,23 @@
+#ifndef SEEN_CONTEXT_FNS_H
+#define SEEN_CONTEXT_FNS_H
+
+/*
+ * <description>
+ *
+ * Authors:
+ *
+ * Copyright (C) 
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
 #include <gdk/gdkevents.h>
+#include <2geom/forward.h>
+
 struct SPDesktop;
+struct SPItem;
+
+const double goldenratio = 1.61803398874989484820; // golden ratio
 
 namespace Inkscape
 {
@@ -9,12 +27,14 @@ class MessageStack;
 
 extern bool have_viable_layer(SPDesktop *desktop, MessageContext *message);
 extern bool have_viable_layer(SPDesktop *desktop, MessageStack *message);
-::NR::Rect snap_rectangular_box(SPDesktop const *desktop, SPItem *item,
-                              NR::Point const &pt, NR::Point const &center, int state);
-NR::Point setup_for_drag_start(SPDesktop *desktop, SPEventContext* ec, GdkEvent *ev);
+Geom::Rect snap_rectangular_box(SPDesktop const *desktop, SPItem *item,
+                              Geom::Point const &pt, Geom::Point const &center, int state);
+Geom::Point setup_for_drag_start(SPDesktop *desktop, SPEventContext* ec, GdkEvent *ev);
 
 }
 
+#endif // !SEEN_CONTEXT_FNS_H
+
 /*
   Local Variables:
   mode:c++
@@ -24,4 +44,4 @@ NR::Point setup_for_drag_start(SPDesktop *desktop, SPEventContext* ec, GdkEvent
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :