summaryrefslogtreecommitdiff
path: root/src/Fl_Tooltip.cxx
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2008-09-15 20:56:17 +0000
committerFabien Costantini <fabien@onepost.net>2008-09-15 20:56:17 +0000
commite6652d845a06147064fca7f90c76320036a4ee4e (patch)
tree54546ee49ae2c482efc158961706edf695b5ac77 /src/Fl_Tooltip.cxx
parenta99524ef2d24ce14334a171b9de29dfdf93928cd (diff)
Doxygen documentation increment 2: adding more classes, comments not referenced in original doc. hide public enter_(), exit_() functions, made friend Fl_Widget::tooltip(), these should not appear in the public member dox. documentation. added static variables initialisation to 0 in glut for msvc platform compilers."
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Tooltip.cxx')
-rw-r--r--src/Fl_Tooltip.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx
index 8825da797..8df5320f1 100644
--- a/src/Fl_Tooltip.cxx
+++ b/src/Fl_Tooltip.cxx
@@ -44,15 +44,19 @@ Fl_Fontsize Fl_Tooltip::size_ = FL_NORMAL_SIZE;
#define MAX_WIDTH 400
static const char* tip;
-
+/**
+ This widget creates a tooltip box window, with no caption.
+*/
class Fl_TooltipBox : public Fl_Menu_Window {
public:
+ /** Creates the box window */
Fl_TooltipBox() : Fl_Menu_Window(0, 0) {
set_override();
end();
}
void draw();
void layout();
+ /** Shows the tooltip windows only if a tooltip text is available. */
void show() {
if (tip) Fl_Menu_Window::show();
}