]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/window.h
Track the currently focused window in Display
[libs/gui.git] / source / graphics / window.h
index 70b40443d3d84575f93f4fefc51ffa99119da2c1..2d4376e1761baf82c7e59316b7823e5436721d9b 100644 (file)
@@ -11,6 +11,9 @@ class Display;
 
 struct WindowOptions
 {
+       int x;
+       int y;
+       bool user_position;
        unsigned width;
        unsigned height;
        bool fullscreen;
@@ -30,7 +33,12 @@ public:
        objects instead. */
        sigc::signal<void, const Event &> signal_input_event;
 
+       sigc::signal<void> signal_got_focus;
+       sigc::signal<void> signal_lost_focus;
+
+       sigc::signal<void, int, int> signal_move;
        sigc::signal<void, unsigned, unsigned> signal_resize;
+       sigc::signal<void, unsigned, unsigned, unsigned, unsigned, const Event &> signal_expose;
        sigc::signal<void> signal_close;
 
 protected:
@@ -40,6 +48,7 @@ protected:
        bool kbd_autorepeat;
        bool touch_input;
        bool resizing;
+       bool moving;
        Private *priv;
 
 public: