Ardour
9.0-pre0-582-g084a23a80d
|
#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) |
void | set_center_alignment (bool align_to_center) |
virtual bool | dragging () const |
Static Public Member Functions | |
static void | set_tooltips_enabled (bool en) |
static bool | tooltips_enabled () |
Private Member Functions | |
bool | timeout () |
void | show () |
void | hide () |
bool | enter (GdkEventCrossing *) |
bool | leave (GdkEventCrossing *) |
bool | press (GdkEventButton *) |
bool | release (GdkEventButton *) |
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 |
bool | _align_to_center |
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 |
void Gtkmm2ext::PersistentTooltip::set_center_alignment | ( | bool | align_to_center | ) |
void Gtkmm2ext::PersistentTooltip::set_font | ( | Pango::FontDescription | font | ) |
void Gtkmm2ext::PersistentTooltip::set_tip | ( | std::string | ) |
|
inlinestatic |
Definition at line 44 of file persistent_tooltip.h.
|
private |
|
private |
|
inlinestatic |
Definition at line 45 of file persistent_tooltip.h.
|
private |
Definition at line 77 of file persistent_tooltip.h.
|
private |
allow to drag
Definition at line 67 of file persistent_tooltip.h.
|
private |
Definition at line 76 of file persistent_tooltip.h.
|
private |
Our label
Definition at line 63 of file persistent_tooltip.h.
|
private |
Definition at line 78 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 71 of file persistent_tooltip.h.
|
private |
The widget that we are providing a tooltip for
Definition at line 59 of file persistent_tooltip.h.
|
private |
Connection to a timeout used to open the tooltip
Definition at line 73 of file persistent_tooltip.h.
|
private |
The tip text
Definition at line 75 of file persistent_tooltip.h.
|
staticprivate |
Definition at line 49 of file persistent_tooltip.h.
|
staticprivate |
Definition at line 48 of file persistent_tooltip.h.
|
private |
Our window
Definition at line 61 of file persistent_tooltip.h.