diff options
| author | Simon 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) |
| commit | 6b08d1e2f9196ee2f6b810300e4aeb841b0d6a6d (patch) | |
| tree | d9272735c773766ff739a956282c317886f990ed /src/interface/Textbox.h | |
| parent | 7ef3f8cbe942c2f7ed47c4eea4248f21d407d71c (diff) | |
| download | powder-6b08d1e2f9196ee2f6b810300e4aeb841b0d6a6d.zip powder-6b08d1e2f9196ee2f6b810300e4aeb841b0d6a6d.tar.gz | |
Copy, cut and paste for Textboxes
Diffstat (limited to 'src/interface/Textbox.h')
| -rw-r--r-- | src/interface/Textbox.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interface/Textbox.h b/src/interface/Textbox.h index e8e9d22..95588cb 100644 --- a/src/interface/Textbox.h +++ b/src/interface/Textbox.h @@ -26,6 +26,9 @@ protected: TextboxAction *actionCallback; std::string backingText; std::string placeHolder; + + virtual void cutSelection(); + virtual void pasteIntoSelection(); public: Textbox(Point position, Point size, std::string textboxText = "", std::string textboxPlaceholder = ""); virtual ~Textbox(); @@ -37,10 +40,11 @@ public: virtual void SetPlaceholder(std::string text); void SetBorder(bool border) { this->border = border; }; - void SetHidden(bool hidden) { masked = hidden; } + void SetHidden(bool hidden); bool GetHidden() { return masked; } void SetActionCallback(TextboxAction * action) { actionCallback = action; } + 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); |
