add handler for motion/button events
[uwplayer.git] / application / window.h
index 82623e7..4424273 100644 (file)
@@ -44,6 +44,7 @@ typedef struct Player {
     double playback_time;
     int width;
     int height;
+    int osd_height;
 } Player;
     
 typedef struct MainWindow {
@@ -54,6 +55,8 @@ typedef struct MainWindow {
     Player *player;
     bool fullscreen;
     bool mbvisible;
+    bool cursorhidden;
+    bool buttongrab;
 } MainWindow;
 
 MainWindow* WindowCreate(Display *dp);
@@ -72,6 +75,11 @@ void WindowAdjustAspectRatio(MainWindow *win);
 
 void WindowClosePlayer(MainWindow *win);
 
+void WindowHidePlayerCursor(MainWindow *win);
+void WindowShowPlayerCursor(MainWindow *win);
+
+void WindowPlayerWidgetEvent(MainWindow *win, XEvent *event);
+
 #ifdef __cplusplus
 }
 #endif