summaryrefslogtreecommitdiffstats
path: root/Project/ControlElement.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2017-03-04 17:14:52 -0300
committerThales1330 <thaleslima.ufu@gmail.com>2017-03-04 17:14:52 -0300
commitd11da00a993f1eeae6a1be50839ac72740e4e27b (patch)
treeda8c3327dbd077c37b3f5a0c0a5ac3ddffd14baa /Project/ControlElement.h
parent4ddc7be64451db873e49169e951532ce8893e359 (diff)
downloadPSP.git-d11da00a993f1eeae6a1be50839ac72740e4e27b.tar.gz
PSP.git-d11da00a993f1eeae6a1be50839ac72740e4e27b.tar.xz
PSP.git-d11da00a993f1eeae6a1be50839ac72740e4e27b.zip
Delete element implemented
Diffstat (limited to 'Project/ControlElement.h')
-rw-r--r--Project/ControlElement.h7
1 files changed, 6 insertions, 1 deletions
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;