summaryrefslogtreecommitdiff
path: root/src/Fl_Widget.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-08-02 15:32:00 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-08-02 15:32:00 +0000
commit836d2fac260c861106e0d96203bea4a04c9dd2d2 (patch)
treee265f4eab743fc350dac1af4394fe88440c7181c /src/Fl_Widget.cxx
parentbd069130577e28b3b26dbb5637bb3172fe108e81 (diff)
Fix tooltips a la 2.0.
Update 1.1 tooltip interface to be identical to the 2.0 interface for most things (no enter_area function right now...) Add localized makedepend files (no system include files, just ../FL/bla.h) so that builds recompile as necessary. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Widget.cxx')
-rw-r--r--src/Fl_Widget.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx
index 1ba161afd..f10655e3d 100644
--- a/src/Fl_Widget.cxx
+++ b/src/Fl_Widget.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Widget.cxx,v 1.5.2.4 2001/01/22 15:13:40 easysw Exp $"
+// "$Id: Fl_Widget.cxx,v 1.5.2.4.2.1 2001/08/02 15:31:59 easysw Exp $"
//
// Base widget class for the Fast Light Tool Kit (FLTK).
//
@@ -26,6 +26,8 @@
#include <FL/Fl.H>
#include <FL/Fl_Widget.H>
#include <FL/Fl_Group.H>
+#include <FL/Fl_Tooltip.H>
+
////////////////////////////////////////////////////////////////
// for compatability with Forms, all widgets without callbacks are
@@ -93,6 +95,11 @@ Fl_Widget::Fl_Widget(int X, int Y, int W, int H, const char* L) {
if (Fl_Group::current()) Fl_Group::current()->add(this);
}
+void Fl_Widget::tooltip(const char *t) {
+ Fl_Tooltip::enable();
+ tooltip_ = t;
+}
+
void Fl_Widget::resize(int X, int Y, int W, int H) {
x_ = X; y_ = Y; w_ = W; h_ = H;
}
@@ -198,5 +205,5 @@ int Fl_Widget::contains(const Fl_Widget *o) const {
}
//
-// End of "$Id: Fl_Widget.cxx,v 1.5.2.4 2001/01/22 15:13:40 easysw Exp $".
+// End of "$Id: Fl_Widget.cxx,v 1.5.2.4.2.1 2001/08/02 15:31:59 easysw Exp $".
//