From 80d05eb962ce78a43faf15c572158f603ce5a029 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Mon, 13 May 2002 14:01:38 +0000 Subject: Updated tooltip documentation git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Tooltip.html | 45 ++++++++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 13 deletions(-) (limited to 'documentation') diff --git a/documentation/Fl_Tooltip.html b/documentation/Fl_Tooltip.html index 00ae89ffe..df80a6466 100644 --- a/documentation/Fl_Tooltip.html +++ b/documentation/Fl_Tooltip.html @@ -33,27 +33,18 @@ all FLTK widgets.

  • enabled
  • enable
  • enter
  • +
  • enter_area
  • exit
  • font
  • size
  • +
  • textcolor
  • -

    void color(unsigned c);
    -Fl_Color color();

    - -

    Gets or sets the background color for tooltips. The label color is -set to white or black depending on the background color. The default -background color is a pale yellow. -

    void delay(float f);
    float delay();

    -

    Gets or sets the tooltip delay. The default delay is 0.5 seconds. - -

    void disable();

    - -

    Disables tooltips on all widgets. +

    Gets or sets the tooltip delay. The default delay is 1.0 seconds.

    int enabled();

    @@ -61,18 +52,46 @@ float delay();

    void enable(int b = 1);

    -

    Enables tooltips on all widgets. +

    Enables tooltips on all widgets (or disables if b is false). + +

    void disable();

    + +

    Same as enable(0), disables tooltips on all widgets.

    void enter(Fl_Widget *w);

    This method is called when the mouse pointer enters a widget. +

    void enter_area(Fl_Widget* widget, int x,int y,int w,int h, const char* tip)

    + +

    You may be able to use this to provide tooltips for internal pieces +of your widget. Call this after setting Fl::belowmouse() to +your widget (because that calls the above enter() method). Then figure +out what thing the mouse is pointing at, and call this with the widget +(this pointer is used to remove the tooltip if the widget is deleted +or hidden, and to locate the tooltip), the rectangle surrounding the +area, relative to the top-left corner of the widget (used to calculate +where to put the tooltip), and the text of the tooltip (which must be +a pointer to static data as it is not copied). +

    void exit(Fl_Widget *w);

    This method is called when the mouse pointer leaves a widget. +

    void color(unsigned c);
    +Fl_Color color();

    + +

    Gets or sets the background color for tooltips. The default +background color is a pale yellow. + +

    void textcolor(unsigned c);
    +Fl_Color textcolor();

    + +

    Gets or sets the color of the text in the tooltip. The default is +black. +

    void font(int i);
    int font();

    -- cgit v1.2.3