summaryrefslogtreecommitdiff
path: root/src/interface/Label.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-24 21:55:39 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-24 21:55:39 (GMT)
commit6b08d1e2f9196ee2f6b810300e4aeb841b0d6a6d (patch)
treed9272735c773766ff739a956282c317886f990ed /src/interface/Label.h
parent7ef3f8cbe942c2f7ed47c4eea4248f21d407d71c (diff)
downloadpowder-6b08d1e2f9196ee2f6b810300e4aeb841b0d6a6d.zip
powder-6b08d1e2f9196ee2f6b810300e4aeb841b0d6a6d.tar.gz
Copy, cut and paste for Textboxes
Diffstat (limited to 'src/interface/Label.h')
-rw-r--r--src/interface/Label.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface/Label.h b/src/interface/Label.h
index c8c63d4..1fa7148 100644
--- a/src/interface/Label.h
+++ b/src/interface/Label.h
@@ -37,6 +37,8 @@ namespace ui
int getLowerSelectionBound();
int getHigherSelectionBound();
+
+ virtual void copySelection();
public:
//Label(Window* parent_state, std::string labelText);
Label(Point position, Point size, std::string labelText);
@@ -53,9 +55,11 @@ namespace ui
void SetTextColour(Colour textColour) { this->textColour = textColour; }
+ virtual void OnContextMenuAction(int item);
virtual void OnMouseClick(int x, int y, unsigned button);
virtual void OnMouseUp(int x, int y, unsigned button);
virtual void OnMouseMoved(int localx, int localy, int dx, int dy);
+ virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);
virtual void Draw(const Point& screenPos);
virtual void Tick(float dt);
};