X-Git-Url: https://develop.uap-core.de/gitweb/uwplayer.git/blobdiff_plain/e8e14035551f3e683c48eeedb1cedc07a95916cb..c4d69d05f758eb2f8f98be04ff42456c9ae711fe:/application/window.h diff --git a/application/window.h b/application/window.h index 4424273..77939b0 100644 --- a/application/window.h +++ b/application/window.h @@ -27,6 +27,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { @@ -46,17 +47,50 @@ typedef struct Player { int height; int osd_height; } Player; + +typedef struct { + UcxList *tracks; + int current_track; + Boolean repeatTrack; + Boolean repeatList; + Boolean autoplayFolder; + Boolean random; +} PlayList; + typedef struct MainWindow { Widget window; Widget menubar; Widget player_widget; + Widget sidebar_scrolledwindow; + Widget sidebar; char *file; Player *player; bool fullscreen; bool mbvisible; + bool sidebarvisible; bool cursorhidden; bool buttongrab; + bool pwbuttonpressed; + + Widget playRepeatTrackButton; + Widget playRepeatListButton; + Widget playAutoPlayButton; + Widget playRandom; + Widget viewSidebarButton; + Widget viewAdjustWindowSize; + + PlayList playlist; + + bool adjustWindowSize; + + Time player_event_time; + Time button_press_time; + double motion_playback_time; + int mouse_x; + int mouse_y; + + } MainWindow; MainWindow* WindowCreate(Display *dp); @@ -69,8 +103,6 @@ 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); @@ -78,7 +110,12 @@ void WindowClosePlayer(MainWindow *win); void WindowHidePlayerCursor(MainWindow *win); void WindowShowPlayerCursor(MainWindow *win); -void WindowPlayerWidgetEvent(MainWindow *win, XEvent *event); +void WindowHandlePlayerEvent(MainWindow *win, XEvent *event); + +void WindowShowSidebar(MainWindow *win, bool visible); + +void WindowUpdate(MainWindow *win); + #ifdef __cplusplus }