add cursor autohide
[uwplayer.git] / application / window.h
index f63add5..7230515 100644 (file)
@@ -37,7 +37,14 @@ typedef struct Player {
     pid_t process;
     int log;
     int ipc;
+    int status;
     bool isactive;
+    bool isstarted;
+    Window window;
+    double playback_time;
+    int width;
+    int height;
+    int osd_height;
 } Player;
     
 typedef struct MainWindow {
@@ -48,16 +55,39 @@ typedef struct MainWindow {
     Player *player;
     bool fullscreen;
     bool mbvisible;
+    bool cursorhidden;
+    bool buttongrab;
+    
+    Time player_event_time;
+    Time button_press_time;
+    double motion_playback_time;
+    int mouse_x;
+    int mouse_y;
+    int mouse_x_orig;
+    int mouse_y_orig;
 } MainWindow;
 
 MainWindow* WindowCreate(Display *dp);
 
+MainWindow* GetMainWindow(void);
+
 void WindowShow(MainWindow *win);
 
 void WindowFullscreen(MainWindow *win, bool enableFullscreen);
 
 void WindowMenubarSetVisible(MainWindow *win, bool visible);
 
+void WindowSetFile(MainWindow *win, char *file);
+
+void WindowAdjustAspectRatio(MainWindow *win);
+
+void WindowClosePlayer(MainWindow *win);
+
+void WindowHidePlayerCursor(MainWindow *win);
+void WindowShowPlayerCursor(MainWindow *win);
+
+void WindowHandlePlayerEvent(MainWindow *win, XEvent *event);
+
 #ifdef __cplusplus
 }
 #endif