X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbox.C;h=b4d8bdd5bc5b497f444c8a04f145c24cd85539ec;hb=65ca7003ba47b7348610393a9a0d2d309b4e9702;hp=159be4cc3ba47ad650c939aec5cb444b6f0917f8;hpb=0be0fcfd5907d448cd51addf83ed7032719a0692;p=lyx.git diff --git a/src/box.C b/src/box.C index 159be4cc3b..b4d8bdd5bc 100644 --- a/src/box.C +++ b/src/box.C @@ -14,17 +14,22 @@ #include "box.h" -#include "support/LOstream.h" +#include "support/std_ostream.h" using std::ostream; -Box::Box(int x1_, int x2_, int y1_, int y2_) : - x1(x1_), x2(x2_), y1(y1_), y2(y2_) +Box::Box() + : x1(0), x2(0), y1(0), y2(0) {} -bool Box::contained(int x, int y) +Box::Box(int x1_, int x2_, int y1_, int y2_) + : x1(x1_), x2(x2_), y1(y1_), y2(y2_) +{} + + +bool Box::contains(int x, int y) { return (x1 < x && x2 > x && y1 < y && y2 > y); }