Class Index | Cross Index | Namespace Index |
Tooltip group
Contained in: Gtk
Derived from:
Gtk::Data
Derived by:
none
#include <gtk--/tooltips.h>
public function member index: |
||
Tooltips | (); | |
void | disable | (); |
void | enable | (); |
void | force_window | (); |
GtkTooltips* | gtkobj | (); |
const GtkTooltips* | gtkobj | () const; |
static bool | isA | (Object* object); |
void | set_colors | (const Gdk_Color& background, const Gdk_Color& foreground); |
void | set_delay | (guint delay); |
void | set_tip | (const Gtk::Widget& widget, const nstring& tip_text=0, const nstring& tip_private=0); |
virtual | ~Tooltips | (); |
protected function member index: |
||
static GtkTooltipsData* | data_get | (Gtk::Widget& widget); |
An individual tooltip belongs to a group of tooltips. Every tooltip in the group can then be turned off with a call to disable and enabled with enable.
The length of time the user must keep the mouse over a widget before the tip is shown, can be altered with set_delay. This is set on a 'per group of tooltips' basis.
To assign a tip to a particular Gtk::Widget, set_tip is used.
Note: Tooltips can only be set on widgets which have their own X window. To add a tooltip to a widget that doesn't have its own window, place the widget inside a Gtk::EventBox and add a tooltip to that instead.
The default appearance of all tooltips in a program is determined by the current gtk theme that the user has selected.
Information about the tooltip (if any) associated with an arbitrary widget can be
retrieved using data_get.
delay is in seconds.