MenuTooltip.h
/*
* $Id: String.h 2839 2009-09-28 11:36:20Z karijes $
*
* Tooltip support for menus
* Copyright (c) 2012 edelib authors
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EDELIB_STRING_H__
#define __EDELIB_STRING_H__
#include "edelib-global.h"
#include <FL/Fl_Widget.H>
EDELIB_NS_BEGIN
class EDELIB_API MenuTooltip {
private:
static Fl_Widget *widget_;
static void exit_(Fl_Widget*);
public:
static void enter_area(Fl_Widget *w, int X, int Y, int W, int H, const char *tip);
static void current(Fl_Widget*);
static Fl_Widget *current(void) { return widget_; }
};
EDELIB_NS_END
#endif