diff options
Diffstat (limited to 'src/interface/Component.cpp')
| -rw-r--r-- | src/interface/Component.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/interface/Component.cpp b/src/interface/Component.cpp index 7e22984..3c52ed9 100644 --- a/src/interface/Component.cpp +++ b/src/interface/Component.cpp @@ -18,7 +18,8 @@ Component::Component(Window* parent_state): textPosition(0, 0), textSize(0, 0), iconPosition(0, 0), - drawn(false) + drawn(false), + menu(NULL) { } @@ -33,7 +34,8 @@ Component::Component(Point position, Point size): textPosition(0, 0), textSize(0, 0), iconPosition(0, 0), - drawn(false) + drawn(false), + menu(NULL) { } @@ -48,7 +50,8 @@ Component::Component(): textPosition(0, 0), textSize(0, 0), iconPosition(0, 0), - drawn(false) + drawn(false), + menu(NULL) { } @@ -154,6 +157,11 @@ void Component::SetParent(Panel* new_parent) // ***** OVERRIDEABLES ***** // Kept empty. +void Component::OnContextMenuAction(int item) +{ + +} + void Component::Draw(const Point& screenPos) { drawn = true; @@ -217,5 +225,6 @@ void Component::OnMouseWheelInside(int localx, int localy, int d) Component::~Component() { - + if(menu) + delete menu; } |
