summaryrefslogtreecommitdiff
path: root/src/interface/Component.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/Component.h
parent7ef3f8cbe942c2f7ed47c4eea4248f21d407d71c (diff)
downloadpowder-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.h4
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:
/*