X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fscreen_interface.h;h=e11813a10f88ca1395ae773d63d9164faf2758da;hb=63fc23f1c83f52eb47b5511e97bb1fe7cf7d82d5;hp=40796bc33c769ee305ec196f2dbb763723727997;hpb=386ea7f72f2e08d037111bdb6272d91e7bba6ef3;p=ncmpc.git diff --git a/src/screen_interface.h b/src/screen_interface.h index 40796bc..e11813a 100644 --- a/src/screen_interface.h +++ b/src/screen_interface.h @@ -30,11 +30,11 @@ struct mpdclient; struct screen_functions { - void (*init)(WINDOW *w, int cols, int rows); + void (*init)(WINDOW *w, unsigned cols, unsigned rows); void (*exit)(void); void (*open)(struct mpdclient *c); void (*close)(void); - void (*resize)(int cols, int rows); + void (*resize)(unsigned cols, unsigned rows); void (*paint)(void); void (*update)(struct mpdclient *c); @@ -45,6 +45,16 @@ struct screen_functions { */ bool (*cmd)(struct mpdclient *c, command_t cmd); +#ifdef HAVE_GETMOUSE + /** + * Handle a mouse event. + * + * @return true if the event was handled (and should not be + * handled by the ncmpc core) + */ + bool (*mouse)(struct mpdclient *c, int x, int y, mmask_t bstate); +#endif + const char *(*get_title)(char *s, size_t size); };