]> 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 8065762a4b2cc57d826db9f904f594de17365b96..443cac79210afe3904b5cbc2008daceabc907197 100644 (file)
@@ -13,6 +13,7 @@ struct WindowOptions
 {
        int x;
        int y;
+       bool user_position;
        unsigned width;
        unsigned height;
        bool fullscreen;
@@ -32,6 +33,9 @@ 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;
@@ -44,6 +48,7 @@ protected:
        bool kbd_autorepeat;
        bool touch_input;
        bool resizing;
+       bool moving;
        Private *priv;
 
 public:
@@ -59,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);