]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/measure.h
Rewrite input even handling
[r2c2.git] / source / designer / measure.h
index 6800ecce307826fa0bcc46d204e0ec84b539b4b4..b991d42be50b30eddc4c39697150565b4b0d9046 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #ifndef MEASURE_H_
 #define MEASURE_H_
 
@@ -28,8 +21,8 @@ public:
 
 private:
        Designer &designer;
-       R2C2::Point pointer;
-       R2C2::Point spoint;
+       R2C2::Vector pointer;
+       R2C2::Vector spoint;
        float sdir;
        float par_dist;
        float perp_dist;
@@ -42,11 +35,11 @@ public:
        float get_perpendicular_distance() const { return perp_dist; }
        float get_angle_difference() const { return adiff; }
        void start();
-       void button_press(int, int, float, float, unsigned);
-       void pointer_motion(int, int, float, float);
+       void button_press(float, float, unsigned);
+       void pointer_motion(float, float);
        void render();
 private:
-       void snap_to_tracks(R2C2::Point &, float &);
+       void snap_to_tracks(R2C2::Vector &, float &);
 };
 
 #endif