X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fline.cpp;h=46a6d85860c8d598b8f76497f9ea4ace005bb20d;hb=8a5bf49d09b5a00ebea3ffc449519ad05b0326cc;hp=efd92e50900088804ef25b9ee6eed570ea8a7f4e;hpb=31dd33b097661175a86b6799df525972055099fb;p=architektonas diff --git a/src/line.cpp b/src/line.cpp index efd92e5..46a6d85 100644 --- a/src/line.cpp +++ b/src/line.cpp @@ -299,7 +299,7 @@ a dimension only) Draw() function... :-/ } -/*virtual*/ void Line::PointerMoved(Vector point) +/*virtual*/ bool Line::PointerMoved(Vector point) { if (selectionInProgress) { @@ -310,13 +310,13 @@ a dimension only) Draw() function... :-/ 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. --not any more) SaveHitState(); - HitTest(point); + bool hovered = HitTest(point); needUpdate = HitStateChanged(); objectWasDragged = (draggingLine | draggingHandle1 | draggingHandle2); @@ -416,6 +416,8 @@ the horizontal line or vertical line that intersects from the current mouse posi dimPoint2->SetPoint2(draggingHandle2 ? v2 : endpoint); #endif } + + return hovered; }