
Functions | |
| int | CheckError (vout_display_t *vd, xcb_connection_t *conn, const char *str, xcb_void_cookie_t ck) |
| Check for an error. | |
| int | GetWindowSize (struct vout_window_t *wnd, xcb_connection_t *conn, unsigned *restrict width, unsigned *restrict height) |
| Gets the size of an X window. | |
| xcb_cursor_t | CreateBlankCursor (xcb_connection_t *conn, const xcb_screen_t *scr) |
| Create a blank cursor. | |
| void | RegisterMouseEvents (vlc_object_t *obj, xcb_connection_t *conn, xcb_window_t wnd) |
| (Try to) register to mouse events on a window if needed. | |
| static void | HandleButtonPress (vout_display_t *vd, const xcb_button_press_event_t *ev) |
| static void | HandleButtonRelease (vout_display_t *vd, const xcb_button_release_event_t *ev) |
| static void | HandleMotionNotify (vout_display_t *vd, xcb_connection_t *conn, const xcb_motion_notify_event_t *ev) |
| static void | HandleVisibilityNotify (vout_display_t *vd, bool *visible, const xcb_visibility_notify_event_t *ev) |
| static void | HandleParentStructure (vout_display_t *vd, const xcb_configure_notify_event_t *ev) |
| static int | ProcessEvent (vout_display_t *vd, xcb_connection_t *conn, bool *visible, xcb_generic_event_t *ev) |
| Process an X11 event. | |
| int | ManageEvent (vout_display_t *vd, xcb_connection_t *conn, bool *visible) |
| Process incoming X events. | |
| int CheckError | ( | vout_display_t * | vd, | |
| xcb_connection_t * | conn, | |||
| const char * | str, | |||
| xcb_void_cookie_t | ck | |||
| ) |
Check for an error.
References err, msg_Err, VLC_EGENERIC, and VLC_SUCCESS.
Referenced by Control(), CreateWindow(), and PictureResourceAlloc().
| xcb_cursor_t CreateBlankCursor | ( | xcb_connection_t * | conn, | |
| const xcb_screen_t * | scr | |||
| ) |
Create a blank cursor.
Note that the pixmaps are leaked (until the X disconnection). Hence, this function should be called no more than once per X connection.
| conn | XCB connection | |
| scr | target XCB screen |
| int GetWindowSize | ( | struct vout_window_t * | wnd, | |
| xcb_connection_t * | conn, | |||
| unsigned *restrict | width, | |||
| unsigned *restrict | height | |||
| ) |
| static void HandleButtonPress | ( | vout_display_t * | vd, | |
| const xcb_button_press_event_t * | ev | |||
| ) | [static] |
| static void HandleButtonRelease | ( | vout_display_t * | vd, | |
| const xcb_button_release_event_t * | ev | |||
| ) | [static] |
| static void HandleMotionNotify | ( | vout_display_t * | vd, | |
| xcb_connection_t * | conn, | |||
| const xcb_motion_notify_event_t * | ev | |||
| ) | [static] |
| static void HandleParentStructure | ( | vout_display_t * | vd, | |
| const xcb_configure_notify_event_t * | ev | |||
| ) | [static] |
References vout_display_t::cfg, vout_display_cfg_t::is_fullscreen, and vout_display_SendEventDisplaySize().
Referenced by ProcessEvent().
| static void HandleVisibilityNotify | ( | vout_display_t * | vd, | |
| bool * | visible, | |||
| const xcb_visibility_notify_event_t * | ev | |||
| ) | [static] |
| int ManageEvent | ( | vout_display_t * | vd, | |
| xcb_connection_t * | conn, | |||
| bool * | visible | |||
| ) |
Process incoming X events.
References msg_Err, ProcessEvent(), VLC_EGENERIC, and VLC_SUCCESS.
Referenced by Manage().
| static int ProcessEvent | ( | vout_display_t * | vd, | |
| xcb_connection_t * | conn, | |||
| bool * | visible, | |||
| xcb_generic_event_t * | ev | |||
| ) | [static] |
Process an X11 event.
References HandleButtonPress(), HandleButtonRelease(), HandleMotionNotify(), HandleParentStructure(), HandleVisibilityNotify(), msg_Dbg, VLC_SUCCESS, and vout_display_SendEventClose().
Referenced by ManageEvent().
| void RegisterMouseEvents | ( | vlc_object_t * | obj, | |
| xcb_connection_t * | conn, | |||
| xcb_window_t | wnd | |||
| ) |
(Try to) register to mouse events on a window if needed.
References value, var_CreateGetBool, and var_Destroy.
Referenced by GetWindow().
1.5.6