]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/window.h
Allow configuring window positions as well
[libs/gui.git] / source / graphics / window.h
index 55751b3d5a15cf689972ac38e3dc0f890f2d4a64..31fa248a65e2a7080fdbfeebfd1a4d290e39d689 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,9 @@ public:
        objects instead. */
        sigc::signal<void, const Event &> signal_input_event;
 
+       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:
@@ -38,7 +43,9 @@ protected:
        WindowOptions options;
        bool visible;
        bool kbd_autorepeat;
+       bool touch_input;
        bool resizing;
+       bool moving;
        Private *priv;
 
 public:
@@ -60,6 +67,11 @@ public:
        bool get_keyboard_autorepeat() const { return kbd_autorepeat; }
        void show_cursor(bool);
        void warp_pointer(int, int);
+       void set_touch_input(bool);
+private:
+       void platform_set_touch_input();
+public:
+       bool get_touch_input() const { return touch_input; }
 
        Display &get_display() const { return display; }
        const WindowOptions &get_options() const { return options; }