Permalink
Browse files

XYinfo: add print method

  • Loading branch information...
tias committed Jun 13, 2012
1 parent c66bee8 commit 574f73f127fd7e53cea10b9cb7c5c5b846be194b
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/calibrator.hh
View
@@ -27,6 +27,7 @@
#include <stdexcept>
#include <X11/Xlib.h>
#include <stdio.h>
#include <vector>
/*
@@ -91,6 +92,11 @@ struct XYinfo {
void do_swap_xy() {
swap_xy = !swap_xy;
}
void print(const char* xtra="\n") {
printf("XYinfo: x.min=%i, x.max=%i, y.min=%i, y.max=%i, swap_xy=%i, invert_x=%i, invert_y=%i%s",
x.min, x.max, y.min, y.max, swap_xy, x.invert, y.invert, xtra);
}
};
/// Names of the points

0 comments on commit 574f73f

Please sign in to comment.