X-Git-Url: https://develop.uap-core.de/gitweb/uwplayer.git/blobdiff_plain/57cee2c27458b34d1f407877b04ad3dee7915708..663ac840aba3c8203afd517380d9eba7191787e4:/application/window.h diff --git a/application/window.h b/application/window.h index 82623e7..b0f9c64 100644 --- a/application/window.h +++ b/application/window.h @@ -44,6 +44,7 @@ typedef struct Player { double playback_time; int width; int height; + int osd_height; } Player; typedef struct MainWindow { @@ -54,6 +55,24 @@ typedef struct MainWindow { Player *player; bool fullscreen; bool mbvisible; + bool cursorhidden; + bool buttongrab; + + Widget playRepeatTrackButton; + Widget playRepeatListButton; + Widget playAutoPlayButton; + + 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; + + Boolean repeatTrack; + Boolean repeatList; + Boolean autoplayFolder; } MainWindow; MainWindow* WindowCreate(Display *dp); @@ -72,6 +91,11 @@ 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