~alexlauni/unity/autopilot-for-autohide

« back to all changes in this revision

Viewing changes to src/WindowManager.h

Merge Sam's scale  hacks branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include <glib.h>
23
23
#include <sigc++/sigc++.h>
 
24
#include "Nux/Nux.h"
 
25
#include "Nux/WindowThread.h"
 
26
#include "NuxGraphics/GLWindowManager.h"
 
27
#include <gdk/gdkx.h>
24
28
 
25
29
class WindowManager
26
30
{
34
38
  // it.
35
39
 
36
40
public:
 
41
  WindowManager () :
 
42
    m_MoveResizeAtom (XInternAtom (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
 
43
                                   "_NET_WM_MOVERESIZE", FALSE))
 
44
  {
 
45
  }
 
46
 
37
47
  static WindowManager * Default ();
38
48
  static void            SetDefault (WindowManager *manager);
39
49
 
47
57
  virtual void Decorate   (guint32 xid);
48
58
  virtual void Undecorate (guint32 xid);
49
59
 
 
60
  void StartMove (guint32 id, int, int);
 
61
 
50
62
  // Signals
51
63
  sigc::signal<void, guint32> window_mapped;
52
64
  sigc::signal<void, guint32> window_unmapped;
53
65
  sigc::signal<void, guint32> window_maximized;
54
66
  sigc::signal<void, guint32> window_restored;
 
67
  sigc::signal<void, guint32> window_minimized;
 
68
  sigc::signal<void, guint32> window_unminimized;
 
69
  sigc::signal<void, guint32> window_shaded;
 
70
  sigc::signal<void, guint32> window_unshaded;
 
71
  sigc::signal<void, guint32> window_shown;
 
72
  sigc::signal<void, guint32> window_hidden;
 
73
  sigc::signal<void, guint32> window_resized;
 
74
  sigc::signal<void, guint32> window_moved;
 
75
  sigc::signal<void, std::list<guint32> &> initiate_spread;
 
76
  sigc::signal<void, std::list<guint32> &> terminate_spread;
 
77
 
 
78
private:
 
79
  Atom m_MoveResizeAtom;
55
80
};
56
81
 
57
82
#endif // WINDOW_MANAGER_H