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/Component.h | |
| parent | 7ef3f8cbe942c2f7ed47c4eea4248f21d407d71c (diff) | |
| download | powder-6b08d1e2f9196ee2f6b810300e4aeb841b0d6a6d.zip powder-6b08d1e2f9196ee2f6b810300e4aeb841b0d6a6d.tar.gz | |
Copy, cut and paste for Textboxes
Diffstat (limited to 'src/interface/Component.h')
| -rw-r--r-- | src/interface/Component.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface/Component.h b/src/interface/Component.h index 555be84..bd3878a 100644 --- a/src/interface/Component.h +++ b/src/interface/Component.h @@ -7,6 +7,7 @@ namespace ui { + class ContextMenu; class Window; class Panel; @@ -25,6 +26,7 @@ namespace ui ui::Point textPosition; ui::Point textSize; ui::Point iconPosition; + ui::ContextMenu * menu; public: Component(Window* parent_state); Component(Point position, Point size); @@ -55,6 +57,8 @@ namespace ui //Get the parent component. inline Panel* const GetParent() const { return _parent; } + + virtual void OnContextMenuAction(int item); //UI functions: /* |
