]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/window.h
Swap fullscreen mode dimensions if the desktop is rotated
[libs/gui.git] / source / graphics / window.h
index 70b40443d3d84575f93f4fefc51ffa99119da2c1..443cac79210afe3904b5cbc2008daceabc907197 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:
@@ -55,6 +64,7 @@ public:
        void set_title(const std::string &);
        void reconfigure(const WindowOptions &);
 private:
+       void set_fullscreen_mode();
        void platform_reconfigure(bool);
 public:
        void set_keyboard_autorepeat(bool);