From a54f50d0bf86c7c4d400e8b4d30cbc6091cfd9df Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Fri, 24 Feb 2017 12:25:41 -0300 Subject: Connection line implementation start --- Project/ConnectionLine.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Project/ConnectionLine.h (limited to 'Project/ConnectionLine.h') diff --git a/Project/ConnectionLine.h b/Project/ConnectionLine.h new file mode 100644 index 0000000..8249df8 --- /dev/null +++ b/Project/ConnectionLine.h @@ -0,0 +1,17 @@ +#ifndef CONNECTIONLINE_H +#define CONNECTIONLINE_H + +#include "ControlElement.h" + +class ConnectionLine : public ControlElement +{ +public: + ConnectionLine(); + ~ConnectionLine(); + + virtual void Draw(wxPoint2DDouble translation, double scale) const; + virtual bool Contains(wxPoint2DDouble position) const; + virtual bool Intersects(wxRect2DDouble rect) const; +}; + +#endif // CONNECTIONLINE_H -- cgit