diff options
author | corvid <corvid@lavabit.com> | 2009-10-03 02:22:31 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-10-03 02:22:31 +0000 |
commit | 74c690bc83186311a0567b5d35edd30961104ed4 (patch) | |
tree | 237cccf6a1b46b8499bb085bd92619e967f1749a /dw/fltkplatform.hh | |
parent | 21979bd9dc1bc58ee8537d92d172ba4b23745a46 (diff) |
some tooltips
Diffstat (limited to 'dw/fltkplatform.hh')
-rw-r--r-- | dw/fltkplatform.hh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dw/fltkplatform.hh b/dw/fltkplatform.hh index 253f1bbd..d83f34ea 100644 --- a/dw/fltkplatform.hh +++ b/dw/fltkplatform.hh @@ -43,6 +43,20 @@ public: static FltkColor *create(int color); }; +class FltkTooltip: public core::style::Tooltip +{ +private: + FltkTooltip (const char *text); + ~FltkTooltip (); + bool shown; + static ::fltk::Widget *widget; +public: + static FltkTooltip *create(const char *text); + void onEnter(); + void onLeave(); + void onMotion(); +}; + /** * \brief This interface adds some more methods for all flkt-based views. @@ -136,6 +150,7 @@ public: core::style::Font *createFont (core::style::FontAttrs *attrs, bool tryEverything); core::style::Color *createColor (int color); + core::style::Tooltip *createTooltip (const char *text); core::Imgbuf *createImgbuf (core::Imgbuf::Type type, int width, int height); |