]> Shamusworld >> Repos - architektonas/blobdiff - src/circle.cpp
Initial stab at getting Circle to respond to selection rectangle.
[architektonas] / src / circle.cpp
index d6ed3064b175b7fd2fe2310d8a8da0a3bce7b2df..6473440ccdb287408e24870b501b23ebbd611551 100644 (file)
@@ -87,6 +87,17 @@ Circle::~Circle()
 
 /*virtual*/ void Circle::PointerMoved(Vector point)
 {
+       if (selectionInProgress)
+       {
+               // Check for whether or not the rect contains this circle
+               if (selection.normalized().contains(Extents()))
+                       state = OSSelected;
+               else
+                       state = OSInactive;
+
+               return;
+       }
+
        // Hit test tells us what we hit (if anything) through boolean variables. It
        // also tells us whether or not the state changed.
        needUpdate = HitTest(point);