events.c File Reference

Include dependency graph for events.c:


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.

Function Documentation

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.

Parameters:
conn XCB connection
scr target XCB screen

int GetWindowSize ( struct vout_window_t wnd,
xcb_connection_t *  conn,
unsigned *restrict  width,
unsigned *restrict  height 
)

Gets the size of an X window.

References vout_window_t::handle, and vout_window_t::xid.

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]

References XCB_CURSOR_NONE.

Referenced by ProcessEvent().

static void HandleParentStructure ( vout_display_t vd,
const xcb_configure_notify_event_t *  ev 
) [static]

static void HandleVisibilityNotify ( vout_display_t vd,
bool *  visible,
const xcb_visibility_notify_event_t *  ev 
) [static]

References msg_Dbg.

Referenced by ProcessEvent().

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]

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().


Generated on Tue May 25 08:05:35 2010 for VLC by  doxygen 1.5.6