xcb_vlc.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifdef WORDS_BIGENDIAN
00024 # define ORDER XCB_IMAGE_ORDER_MSB_FIRST
00025 #else
00026 # define ORDER XCB_IMAGE_ORDER_LSB_FIRST
00027 #endif
00028
00029 #ifndef XCB_CURSOR_NONE
00030 # define XCB_CURSOR_NONE ((xcb_cursor_t) 0U)
00031 #endif
00032
00033 #include <vlc_picture.h>
00034 #include <vlc_vout_display.h>
00035
00036 int ManageEvent (vout_display_t *vd, xcb_connection_t *conn, bool *);
00037
00038
00039 typedef struct key_handler_t key_handler_t;
00040 key_handler_t *CreateKeyHandler (vlc_object_t *, xcb_connection_t *);
00041 void DestroyKeyHandler (key_handler_t *);
00042 int ProcessKeyEvent (key_handler_t *, xcb_generic_event_t *);
00043
00044
00045 struct vout_window_t *GetWindow (vout_display_t *obj,
00046 xcb_connection_t **restrict pconn,
00047 const xcb_screen_t **restrict pscreen,
00048 uint8_t *restrict pdepth);
00049 int GetWindowSize (struct vout_window_t *wnd, xcb_connection_t *conn,
00050 unsigned *restrict width, unsigned *restrict height);
00051 void CheckSHM (vlc_object_t *obj, xcb_connection_t *conn, bool *restrict pshm);
00052 xcb_cursor_t CreateBlankCursor (xcb_connection_t *, const xcb_screen_t *);
00053 void RegisterMouseEvents (vlc_object_t *, xcb_connection_t *, xcb_window_t);
00054
00055 int CheckError (vout_display_t *, xcb_connection_t *conn,
00056 const char *str, xcb_void_cookie_t);
00057
00058
00059
00060 #include <xcb/shm.h>
00061 struct picture_sys_t
00062 {
00063 xcb_shm_seg_t segment;
00064 };
00065 int PictureResourceAlloc (vout_display_t *vd, picture_resource_t *res, size_t size,
00066 xcb_connection_t *conn, bool attach);
00067 void PictureResourceFree (picture_resource_t *res, xcb_connection_t *conn);
00068