#ifndef JUCI_TOOLTIPS_H_ #define JUCI_TOOLTIPS_H_ #include "gtkmm.h" #include #include class Tooltip : public Gtk::Window { public: Tooltip(std::shared_ptr tooltip_widget, Gtk::TextView& text_view, Glib::RefPtr start_mark, Glib::RefPtr end_mark); void update(); void adjust(); Gdk::Rectangle activation_rectangle; private: std::shared_ptr tooltip_widget; Glib::RefPtr start_mark; Glib::RefPtr end_mark; Gtk::TextView& text_view; int tooltip_width, tooltip_height; }; class Tooltips : public std::list { public: void init() {drawn_tooltips_rectangle=Gdk::Rectangle();} void show(const Gdk::Rectangle& rectangle); void show(); void hide(); static Gdk::Rectangle drawn_tooltips_rectangle; }; #endif // JUCI_TOOLTIPS_H_