aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/widget.h')
-rw-r--r--gui/widget.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/gui/widget.h b/gui/widget.h
index 3a97cab747..1b6623d620 100644
--- a/gui/widget.h
+++ b/gui/widget.h
@@ -24,6 +24,7 @@
#include "common/scummsys.h"
#include "common/str.h"
#include "graphics/font.h"
+#include "graphics/surface.h"
#include "gui/object.h"
namespace GUI {
@@ -52,7 +53,8 @@ enum {
kListWidget = 'LIST',
kScrollBarWidget = 'SCRB',
kPopUpWidget = 'POPU',
- kTabWidget = 'TABW'
+ kTabWidget = 'TABW',
+ kGraphicsWidget = 'GFXW'
};
enum {
@@ -210,6 +212,19 @@ protected:
int posToValue(int pos);
};
+/* GraphicsWidget */
+class GraphicsWidget : public Widget {
+public:
+ GraphicsWidget(GuiObject *boss, int x, int y, int w, int h);
+ ~GraphicsWidget();
+
+ void setGfx(const Graphics::Surface *gfx);
+protected:
+ void drawWidget(bool hilite);
+
+ Graphics::Surface _gfx;
+};
+
} // End of namespace GUI
#endif