edelib  2.1.0
MenuTooltip.h
1 /*
2  * $Id: String.h 2839 2009-09-28 11:36:20Z karijes $
3  *
4  * Tooltip support for menus
5  * Copyright (c) 2012 edelib authors
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef __EDELIB_STRING_H__
22 #define __EDELIB_STRING_H__
23 
24 #include "edelib-global.h"
25 #include <FL/Fl_Widget.H>
26 
27 EDELIB_NS_BEGIN
28 
39 class EDELIB_API MenuTooltip {
40 private:
41  static Fl_Widget *widget_;
42  static void exit_(Fl_Widget*);
43 public:
45  static void enter_area(Fl_Widget *w, int X, int Y, int W, int H, const char *tip);
47  static void current(Fl_Widget*);
49  static Fl_Widget *current(void) { return widget_; }
50 };
51 
52 EDELIB_NS_END
53 #endif
Tooltip support inside menus.
Definition: MenuTooltip.h:39
static Fl_Widget * current(void)
Definition: MenuTooltip.h:49