Code

screen_interface: add method mouse(), replacing CMD_MOUSE_EVENT
[ncmpc.git] / src / screen_interface.h
index 82962420f8c064ce11a90ae3e14e6e7b2910d31d..e11813a10f88ca1395ae773d63d9164faf2758da 100644 (file)
@@ -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);
 };