Ardour  9.0-pre0-582-g084a23a80d
Gtkmm2ext::PersistentTooltip Class Reference

#include <persistent_tooltip.h>

Inheritance diagram for Gtkmm2ext::PersistentTooltip:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PersistentTooltip()

Gtkmm2ext::PersistentTooltip::PersistentTooltip ( Gtk::Widget ,
bool  draggable = false,
int  margin_y = 0 
)

◆ ~PersistentTooltip()

virtual Gtkmm2ext::PersistentTooltip::~PersistentTooltip ( )
virtual

Member Function Documentation

◆ dragging()

virtual bool Gtkmm2ext::PersistentTooltip::dragging ( ) const
virtual

◆ enter()

bool Gtkmm2ext::PersistentTooltip::enter ( GdkEventCrossing )
private

◆ hide()

void Gtkmm2ext::PersistentTooltip::hide ( )
private

◆ leave()

bool Gtkmm2ext::PersistentTooltip::leave ( GdkEventCrossing )
private

◆ press()

bool Gtkmm2ext::PersistentTooltip::press ( GdkEventButton )
private

◆ release()

bool Gtkmm2ext::PersistentTooltip::release ( GdkEventButton )
private

◆ set_center_alignment()

void Gtkmm2ext::PersistentTooltip::set_center_alignment ( bool  align_to_center)

◆ set_font()

void Gtkmm2ext::PersistentTooltip::set_font ( Pango::FontDescription  font)

◆ set_tip()

void Gtkmm2ext::PersistentTooltip::set_tip ( std::string  )

◆ set_tooltips_enabled()

static void Gtkmm2ext::PersistentTooltip::set_tooltips_enabled ( bool  en)
inlinestatic

Definition at line 44 of file persistent_tooltip.h.

◆ show()

void Gtkmm2ext::PersistentTooltip::show ( )
private

◆ timeout()

bool Gtkmm2ext::PersistentTooltip::timeout ( )
private

◆ tooltips_enabled()

static bool Gtkmm2ext::PersistentTooltip::tooltips_enabled ( )
inlinestatic

Definition at line 45 of file persistent_tooltip.h.

Member Data Documentation

◆ _align_to_center

bool Gtkmm2ext::PersistentTooltip::_align_to_center
private

Definition at line 77 of file persistent_tooltip.h.

◆ _draggable

bool Gtkmm2ext::PersistentTooltip::_draggable
private

allow to drag

Definition at line 67 of file persistent_tooltip.h.

◆ _font

Pango::FontDescription Gtkmm2ext::PersistentTooltip::_font
private

Definition at line 76 of file persistent_tooltip.h.

◆ _label

Gtk::Label* Gtkmm2ext::PersistentTooltip::_label
private

Our label

Definition at line 63 of file persistent_tooltip.h.

◆ _margin_y

int Gtkmm2ext::PersistentTooltip::_margin_y
private

Definition at line 78 of file persistent_tooltip.h.

◆ _maybe_dragging

bool Gtkmm2ext::PersistentTooltip::_maybe_dragging
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.

◆ _target

Gtk::Widget* Gtkmm2ext::PersistentTooltip::_target
private

The widget that we are providing a tooltip for

Definition at line 59 of file persistent_tooltip.h.

◆ _timeout

sigc::connection Gtkmm2ext::PersistentTooltip::_timeout
private

Connection to a timeout used to open the tooltip

Definition at line 73 of file persistent_tooltip.h.

◆ _tip

std::string Gtkmm2ext::PersistentTooltip::_tip
private

The tip text

Definition at line 75 of file persistent_tooltip.h.

◆ _tooltip_timeout

unsigned int Gtkmm2ext::PersistentTooltip::_tooltip_timeout
staticprivate

Definition at line 49 of file persistent_tooltip.h.

◆ _tooltips_enabled

bool Gtkmm2ext::PersistentTooltip::_tooltips_enabled
staticprivate

Definition at line 48 of file persistent_tooltip.h.

◆ _window

Gtk::Window* Gtkmm2ext::PersistentTooltip::_window
private

Our window

Definition at line 61 of file persistent_tooltip.h.


The documentation for this class was generated from the following file: