X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcircle.cpp;h=94a9ec8f807b47b5e867bb3e5fab79b951c46c3a;hb=771113b26ca27707c96fdcd80d79a08e40884268;hp=d8a2e5d61bda7faa31c349546a7b94c79d0771c1;hpb=921bf050ffe5fc81a9ab377e634180e659ee5d5d;p=architektonas diff --git a/src/circle.cpp b/src/circle.cpp index d8a2e5d..94a9ec8 100644 --- a/src/circle.cpp +++ b/src/circle.cpp @@ -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; } @@ -253,7 +254,6 @@ same reference number. /*virtual*/ void Circle::Mirror(Point p1, Point p2) { Point c1 = Geometry::MirrorPointAroundLine(position, p1, p2); -// return new Circle(c1, radius); position = c1; }