aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.h
diff options
context:
space:
mode:
authorEugene Sandulenko2010-07-23 19:36:47 +0000
committerEugene Sandulenko2010-07-23 19:36:47 +0000
commitd6695e180cfedb723a670d94d8ed132ed896498d (patch)
tree488fc9682e3c448fc29d2d98cba7b51b4efe9151 /gui/widget.h
parent0e5aa06db03e782137a40942b1d5fe97dfbcfad0 (diff)
downloadscummvm-rg350-d6695e180cfedb723a670d94d8ed132ed896498d.tar.gz
scummvm-rg350-d6695e180cfedb723a670d94d8ed132ed896498d.tar.bz2
scummvm-rg350-d6695e180cfedb723a670d94d8ed132ed896498d.zip
GUI: Fix tooltip drawing
With help of Tanoku tooltips were switched from widgets to dialogs which helped to fix nasty bug with background not being restored. Although it is basically a hack around inconsistent font backbuffering in our GUI code, for the time being it is feasible. The patch was extended with way to specify tooltip background in the theme file. svn-id: r51217
Diffstat (limited to 'gui/widget.h')
-rw-r--r--gui/widget.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/gui/widget.h b/gui/widget.h
index 25e4b9a235..92bfbf8256 100644
--- a/gui/widget.h
+++ b/gui/widget.h
@@ -159,31 +159,6 @@ protected:
void handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { assert(_boss); _boss->handleCommand(sender, cmd, data); }
};
-class GuiManager;
-
-class Tooltip : public GuiObject {
-public:
- Tooltip(GuiManager *guiManager);
-
- bool isVisible() const { return _visible; }
- void draw();
- void reflowLayout();
- void releaseFocus() {}
- void setVisible(bool state);
- void setMouseXY(int x, int y);
-
-protected:
- Common::String _text;
- GuiManager *_guiManager;
- bool _visible;
- int _mouseX, _mouseY;
- int _maxWidth;
- int _xdelta, _ydelta;
-
- Common::StringArray _wrappedLines;
- ThemeEngine::StoredState *_storedState;
-};
-
/* StaticTextWidget */
class StaticTextWidget : public Widget {
protected: