]> git.sesse.net Git - vlc/blob - modules/video_output/xcb/events.h
wayland/shm: use wl_scaler for A/R, crop and zoom (where available)
[vlc] / modules / video_output / xcb / events.h
1 /**
2  * @file events.h
3  * @brief X C Bindings VLC module common header
4  */
5 /*****************************************************************************
6  * Copyright © 2009 Rémi Denis-Courmont
7  *
8  * This program is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this program; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21  *****************************************************************************/
22
23 #ifndef XCB_CURSOR_NONE
24 # define XCB_CURSOR_NONE ((xcb_cursor_t) 0U)
25 #endif
26
27 #include <vlc_vout_display.h>
28
29 /* keys.c */
30 typedef struct key_handler_t key_handler_t;
31 key_handler_t *XCB_keyHandler_Create (vlc_object_t *, xcb_connection_t *);
32 void XCB_keyHandler_Destroy (key_handler_t *);
33 int XCB_keyHandler_Process (key_handler_t *, xcb_generic_event_t *);
34
35 /* events.c */
36 int XCB_error_Check (vout_display_t *, xcb_connection_t *conn,
37                      const char *str, xcb_void_cookie_t);
38
39 struct vout_window_t *XCB_parent_Create (vout_display_t *obj,
40                                          xcb_connection_t **,
41                                          const xcb_screen_t **,
42                                          uint16_t *width, uint16_t *height);
43 xcb_cursor_t XCB_cursor_Create (xcb_connection_t *, const xcb_screen_t *);
44
45 int XCB_Manage (vout_display_t *vd, xcb_connection_t *conn, bool *);