File: afloatwidget.h

package info (click to toggle)
aeskulap 0.2.2b1%2Bgit20161206-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,840 kB
  • ctags: 1,302
  • sloc: cpp: 8,894; sh: 5,551; ansic: 685; makefile: 317; xml: 25
file content (50 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (8)
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