From d11da00a993f1eeae6a1be50839ac72740e4e27b Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Sat, 4 Mar 2017 17:14:52 -0300 Subject: Delete element implemented --- Project/ControlElement.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Project/ControlElement.h') diff --git a/Project/ControlElement.h b/Project/ControlElement.h index dedcc80..2a516aa 100644 --- a/Project/ControlElement.h +++ b/Project/ControlElement.h @@ -32,11 +32,16 @@ public: void StartMove(wxPoint2DDouble position); void Move(wxPoint2DDouble position); - bool Contains(wxPoint2DDouble position) const { return m_rect.Contains(position); } + bool Contains(wxPoint2DDouble position) const; + + bool IsConnected() const { return m_connected; } + void SetConnected(bool connected = true) { m_connected = connected; } protected: wxRect2DDouble m_rect; NodeType m_nodeType; + + bool m_connected = false; wxPoint2DDouble m_moveStartPt; wxPoint2DDouble m_movePos; -- cgit