X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fstructs.h;h=daa5127046fbd4fc895ceecc9ccf99473e3b2b5b;hb=e06428cc60e07d9ef33af8b559d60f23894130fb;hp=b63921248aca8fc1071d8b8fdd8f2b4b777faff6;hpb=8fdd047c1ee3688f5538cae30e0acc98b96a2150;p=architektonas diff --git a/src/structs.h b/src/structs.h index b639212..daa5127 100644 --- a/src/structs.h +++ b/src/structs.h @@ -35,7 +35,7 @@ struct Line { Line(): type(OTLine), id(Global::objectID++) {} Line(Vector pt1, Vector pt2, float th = 1.0, uint32_t c = 0, int l = LSSolid): type(OTLine), id(Global::objectID++), layer(0), color(c), thickness(th), - style(l), selected(false), hovered(false), p1(pt1), p2(pt2) {} + style(l), selected(false), hovered(false), hitObject(false), p1(pt1), p2(pt2) {} }; struct Circle { @@ -45,7 +45,7 @@ struct Circle { Circle(Vector pt1, double r, float th = 1.0, uint32_t c = 0, int l = LSSolid): type(OTCircle), id(Global::objectID++), layer(0), color(c), thickness(th), - style(l), selected(false), hovered(false), p1(pt1), radius(r) {} + style(l), selected(false), hovered(false), hitObject(false), p1(pt1), radius(r) {} }; struct Ellipse { @@ -57,7 +57,7 @@ struct Ellipse { Ellipse(Vector pt1, Vector pt2, double r1, double r2, float th = 1.0, uint32_t c = 0, int l = LSSolid): type(OTEllipse), id(Global::objectID++), layer(0), color(c), thickness(th), - style(l), selected(false), hovered(false), p1(pt1), p2(pt2), radius1(r1), radius2(r2) {} + style(l), selected(false), hovered(false), hitObject(false), p1(pt1), p2(pt2), radius1(r1), radius2(r2) {} }; struct Arc { @@ -69,7 +69,7 @@ struct Arc { Arc(Vector pt1, double r, double a1, double a2, float th = 1.0, uint32_t c = 0, int l = LSSolid): type(OTArc), id(Global::objectID++), layer(0), color(c), thickness(th), - style(l), selected(false), hovered(false), p1(pt1), radius(r), angle1(a1), angle2(a2) {} + style(l), selected(false), hovered(false), hitObject(false), p1(pt1), radius(r), angle1(a1), angle2(a2) {} }; struct Dimension { @@ -81,7 +81,7 @@ struct Dimension { Dimension(Vector pt1, Vector pt2, DimensionType dt = DTLinear, float th = 1.0, uint32_t c = 0x0000FF, int l = LSSolid): type(OTDimension), id(Global::objectID++), layer(0), color(c), thickness(th), - style(l), selected(false), hovered(false), subtype(dt), p1(pt1), p2(pt2) {} + style(l), selected(false), hovered(false), hitObject(false), subtype(dt), p1(pt1), p2(pt2) {} }; struct Text { @@ -91,7 +91,7 @@ struct Text { Text(Vector pt, char * str, float th = 10.0, uint32_t c = 0): type(OTText), id(Global::objectID++), layer(0), color(c), thickness(th), - style(LSSolid), selected(false), hovered(false), p1(pt), s(str) {} + style(LSSolid), selected(false), hovered(false), hitObject(false), p1(pt), s(str) {} }; struct Container { @@ -101,7 +101,7 @@ struct Container { double angle; double scale; - Container(): type(OTContainer), id(Global::objectID++), selected(false), hovered(false) {} + Container(): type(OTContainer), id(Global::objectID++), selected(false), hovered(false), hitObject(false) {} }; struct Object {