From d9f6a0cf4d6a5765b73814738ca7662e1adea2cd Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 3 Jan 2020 00:49:48 +0100 Subject: GRAPHICS: MACGUI: Further work on MacEditableText --- graphics/macgui/macwidget.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'graphics/macgui/macwidget.h') diff --git a/graphics/macgui/macwidget.h b/graphics/macgui/macwidget.h index a6edef1f42..b5a4cd9217 100644 --- a/graphics/macgui/macwidget.h +++ b/graphics/macgui/macwidget.h @@ -25,29 +25,31 @@ #include "common/rect.h" +namespace Common { + struct Event; +} + namespace Graphics { class MacWindow; +class ManagedSurface; class MacWidget { friend class MacEditableText; public: - MacWidget(int id, bool focusable, MacWindow *parent); + MacWidget(MacWindow *parent, int x, int y, int w, int h, bool focusable); virtual ~MacWidget() {} const Common::Rect &getDimensions() { return _dims; } - int getId() { return _id; } bool isFocusable() { return _focusable; } virtual void setActive(bool active) = 0; void setDirty(bool dirty) { _contentIsDirty = dirty; } - //virtual bool draw(ManagedSurface *g, bool forceRedraw = false) = 0; - //virtual bool processEvent(Common::Event &event) = 0; + virtual bool draw(ManagedSurface *g, bool forceRedraw = false) = 0; + virtual bool processEvent(Common::Event &event) = 0; virtual bool hasAllFocus() = 0; protected: - int _id; - bool _focusable; bool _contentIsDirty; -- cgit v1.2.3