| 1 |
/* |
| 2 |
Copyright (C) 2002 Kai Sterker <[email protected]> |
| 3 |
Part of the Adonthell Project <http://adonthell.nongnu.org> |
| 4 |
|
| 5 |
Dlgedit is free software; you can redistribute it and/or modify |
| 6 |
it under the terms of the GNU General Public License as published by |
| 7 |
the Free Software Foundation; either version 2 of the License, or |
| 8 |
(at your option) any later version. |
| 9 |
|
| 10 |
Dlgedit is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
GNU General Public License for more details. |
| 14 |
|
| 15 |
You should have received a copy of the GNU General Public License |
| 16 |
along with Dlgedit. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
|
| 19 |
/** |
| 20 |
* @file gui_tooltip.h |
| 21 |
* |
| 22 |
* @author Kai Sterker |
| 23 |
* @brief A custom, tooltip-like widget |
| 24 |
*/ |
| 25 |
|
| 26 |
#ifndef GUI_TOOLTIP_H |
| 27 |
#define GUI_TOOLTIP_H |
| 28 |
|
| 29 |
#include "dlg_node.h" |
| 30 |
|
| 31 |
/** |
| 32 |
* A widget similar to the GtkTooltip that is used to display a |
| 33 |
* DlgCircle's text as long as the mouse hovers over the circle. |
| 34 |
*/ |
| 35 |
class GuiTooltip |
| 36 |
{ |
| 37 |
public: |
| 38 |
GuiTooltip (DlgNode *node); |
| 39 |
~GuiTooltip (); |
| 40 |
|
| 41 |
void draw (GtkWidget *parent, DlgPoint &offset); |
| 42 |
|
| 43 |
private: |
| 44 |
DlgNode *node; |
| 45 |
GtkWidget *tooltip; |
| 46 |
}; |
| 47 |
|
| 48 |
#endif // GUI_TOOLTIP_H |