Code

more correct double opacity fix: do not multiply by opacity if item->render_opacity...
[inkscape.git] / src / seltrans.h
index ccb00708e70c54a112d4268f8ef8b318590fe81e..3ba56ffb4ce18223a5821073c7dacb71f6feab48 100644 (file)
@@ -8,6 +8,7 @@
  *   Lauris Kaplinski <lauris@kaplinski.com>
  *   Carl Hetherington <inkscape@carlh.net>
  *
+ * Copyright (C) 2006      Johan Engelen <johan@shouraizou.nl>
  * Copyright (C) 1999-2002 Lauris Kaplinski
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
@@ -57,13 +58,13 @@ public:
     void scale(NR::Point &pt, guint state);
     void skew(SPSelTransHandle const &handle, NR::Point &pt, guint state);
     void rotate(NR::Point &pt, guint state);
-    bool scaleRequest(NR::Point &pt, guint state);
-    bool stretchRequest(SPSelTransHandle const &handle, NR::Point &pt, guint state);
-    bool skewRequest(SPSelTransHandle const &handle, NR::Point &pt, guint state);
-    bool rotateRequest(NR::Point &pt, guint state);
-    bool centerRequest(NR::Point &pt, guint state);
+    gboolean scaleRequest(NR::Point &pt, guint state);
+    gboolean stretchRequest(SPSelTransHandle const &handle, NR::Point &pt, guint state);
+    gboolean skewRequest(SPSelTransHandle const &handle, NR::Point &pt, guint state);
+    gboolean rotateRequest(NR::Point &pt, guint state);
+    gboolean centerRequest(NR::Point &pt, guint state);
 
-    bool handleRequest(SPKnot *knot, NR::Point *position, guint state, SPSelTransHandle const &handle);
+    gboolean handleRequest(SPKnot *knot, NR::Point *position, guint state, SPSelTransHandle const &handle);
     void handleGrab(SPKnot *knot, guint state, SPSelTransHandle const &handle);
     void handleClick(SPKnot *knot, guint state, SPSelTransHandle const &handle);
     void handleNewEvent(SPKnot *knot, NR::Point *position, guint state, SPSelTransHandle const &handle);
@@ -80,6 +81,9 @@ public:
     bool isEmpty() {
         return _empty;
     }
+    bool isGrabbed() {
+        return _grabbed;    
+    }
     
 private:
     void _updateHandles();