|
Ardour
9.0-pre0-1950-g391fe97693
|
#include <persistent_tooltip.h>
Public Member Functions | |
| PersistentTooltip (Gtk::Widget *, bool draggable=false, int margin_y=0) | |
| virtual | ~PersistentTooltip () |
| void | set_tip (std::string) |
| void | set_font (Pango::FontDescription font) |
| virtual bool | dragging () const |
Static Public Member Functions | |
| static void | set_tooltips_enabled (bool en) |
| static bool | tooltips_enabled () |
Private Member Functions | |
| void | update_position () |
| bool | timeout () |
| void | show () |
| void | hide () |
| bool | enter (GdkEventCrossing *) |
| bool | leave (GdkEventCrossing *) |
| bool | press (GdkEventButton *) |
| bool | release (GdkEventButton *) |
| void | realized () |
| bool | parent_focus_out (GdkEventFocus *) |
Private Attributes | |
| Gtk::Widget * | _target |
| Gtk::Window * | _window |
| Gtk::Label * | _label |
| bool | _draggable |
| bool | _maybe_dragging |
| sigc::connection | _timeout |
| std::string | _tip |
| Pango::FontDescription | _font |
| int | _margin_y |
Static Private Attributes | |
| static bool | _tooltips_enabled |
| static unsigned int | _tooltip_timeout |
A class which offers a tooltip-like window which can be made to stay open during a drag.
Definition at line 33 of file persistent_tooltip.h.
| Gtkmm2ext::PersistentTooltip::PersistentTooltip | ( | Gtk::Widget * | , |
| bool | draggable = false, |
||
| int | margin_y = 0 |
||
| ) |
|
virtual |
|
virtual |
Reimplemented in ArdourWidgets::CtrlPersistentTooltip, and PannerPersistentTooltip.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void Gtkmm2ext::PersistentTooltip::set_font | ( | Pango::FontDescription | font | ) |
| void Gtkmm2ext::PersistentTooltip::set_tip | ( | std::string | ) |
|
inlinestatic |
Definition at line 43 of file persistent_tooltip.h.
|
private |
|
private |
|
inlinestatic |
Definition at line 44 of file persistent_tooltip.h.
|
private |
|
private |
allow to drag
Definition at line 69 of file persistent_tooltip.h.
|
private |
Definition at line 78 of file persistent_tooltip.h.
|
private |
Our label
Definition at line 65 of file persistent_tooltip.h.
|
private |
Definition at line 79 of file persistent_tooltip.h.
|
private |
true if we are ‘dragging’, in the sense that button 1 is being held over _target.
Definition at line 73 of file persistent_tooltip.h.
|
private |
The widget that we are providing a tooltip for
Definition at line 61 of file persistent_tooltip.h.
|
private |
Connection to a timeout used to open the tooltip
Definition at line 75 of file persistent_tooltip.h.
|
private |
The tip text
Definition at line 77 of file persistent_tooltip.h.
|
staticprivate |
Definition at line 48 of file persistent_tooltip.h.
|
staticprivate |
Definition at line 47 of file persistent_tooltip.h.
|
private |
Our window
Definition at line 63 of file persistent_tooltip.h.