diff options
author | Eugene Sandulenko | 2020-01-03 00:49:48 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2020-01-03 00:50:24 +0100 |
commit | d9f6a0cf4d6a5765b73814738ca7662e1adea2cd (patch) | |
tree | 7af73bb8938e378bfa211fcd56b0a90ae39e23e8 /graphics/macgui/macwidget.h | |
parent | c3c23c28a194ac5e3a2b74d42530d8b05824b091 (diff) | |
download | scummvm-rg350-d9f6a0cf4d6a5765b73814738ca7662e1adea2cd.tar.gz scummvm-rg350-d9f6a0cf4d6a5765b73814738ca7662e1adea2cd.tar.bz2 scummvm-rg350-d9f6a0cf4d6a5765b73814738ca7662e1adea2cd.zip |
GRAPHICS: MACGUI: Further work on MacEditableText
Diffstat (limited to 'graphics/macgui/macwidget.h')
-rw-r--r-- | graphics/macgui/macwidget.h | 14 |
1 files changed, 8 insertions, 6 deletions
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; |