diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-26 20:51:30 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-26 20:51:30 (GMT) |
| commit | f8ca8af387b8611c18ca7c5357efd19c8bc28941 (patch) | |
| tree | fe790e2abede326949bb299b564ba8e75a979ecf /src/interface/Panel.h | |
| parent | 121e7c772cfc7b3e1305a03144264fc5b66564c2 (diff) | |
| download | powder-f8ca8af387b8611c18ca7c5357efd19c8bc28941.zip powder-f8ca8af387b8611c18ca7c5357efd19c8bc28941.tar.gz | |
Scroll Panel
Diffstat (limited to 'src/interface/Panel.h')
| -rw-r--r-- | src/interface/Panel.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/interface/Panel.h b/src/interface/Panel.h index a5d80e3..cfeace3 100644 --- a/src/interface/Panel.h +++ b/src/interface/Panel.h @@ -6,6 +6,12 @@ #include "interface/Window.h" #include "interface/Component.h" +#ifdef OGLI +#include "graphics/OpenGLHeaders.h" +#endif + + +class Graphics; namespace ui { /* class XComponent @@ -15,15 +21,22 @@ namespace ui * * See sys::Component */ + class Component; class Panel : public Component { public: friend class Component; - Panel(Window* parent_state); +#ifdef OGLI + GLuint myVid, myVidTex; +#else + pixel * myVid; +#endif + ui::Point InnerSize; + ui::Point ViewportPosition; + Panel(Point position, Point size); - Panel(); virtual ~Panel(); /* Add a child component. @@ -65,6 +78,7 @@ class Component; protected: // child components std::vector<ui::Component*> children; + bool mouseInside; //UI functions: /* |
