]> Shamusworld >> Repos - architektonas/blobdiff - src/circle.cpp
Trim tool now works for Lines, but inaccurate.
[architektonas] / src / circle.cpp
index 88cdaa714684be3272265a3ffaae7c08f1d6dc70..94a9ec8f807b47b5e867bb3e5fab79b951c46c3a 100644 (file)
@@ -118,7 +118,7 @@ Circle::~Circle()
 }
 
 
-/*virtual*/ void Circle::PointerMoved(Vector point)
+/*virtual*/ bool Circle::PointerMoved(Vector point)
 {
        if (selectionInProgress)
        {
@@ -129,13 +129,13 @@ Circle::~Circle()
                else
                        state = OSInactive;
 
-               return;
+               return false;
        }
 
        // Hit test tells us what we hit (if anything) through boolean variables. It
        // also tells us whether or not the state changed.
        SaveHitState();
-       HitTest(point);
+       bool hovered = HitTest(point);
        needUpdate = HitStateChanged();
        objectWasDragged = (draggingEdge | draggingCenter);
 
@@ -149,6 +149,7 @@ Circle::~Circle()
 
        // Save this point so the rendering code knows where to draw the handle...
        dragPoint = point;
+       return hovered;
 }