1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#ifndef AESKULAP_FLOATWIDGET_H
#define AESKULAP_FLOATWIDGET_H
#include <gtkmm.h>
#include <set>
namespace Aeskulap {
class FloatWidget : public Gtk::Window {
public:
FloatWidget(Gtk::Widget& parent, int width, int height);
virtual ~FloatWidget();
static void raise_global();
protected:
void on_realize();
void on_show();
void on_hide();
bool on_timeout(int timer);
sigc::connection m_motion_connection;
int m_width;
int m_height;
int last_x;
int last_y;
Gtk::Widget* m_parent;
Glib::RefPtr<Gdk::Window> m_win;
private:
static std::set<FloatWidget*> m_widgetlist;
};
} // namespace Aeskulap
#endif // AESKULAP_FLOATWIDGET_H
|