Method: XCB::Connection#get_motion_events

Defined in:
ext/xproto.c

#get_motion_events(r_window, r_start, r_stop) ⇒ Object



5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
# File 'ext/xproto.c', line 5151

static VALUE
r_XCB_Connection_get_motion_events(VALUE r_self, VALUE r_window, VALUE r_start, VALUE r_stop)
{
	xcb_connection_t *connection;
	Data_Get_Struct(r_self, xcb_connection_t, connection);
	uint32_t __window = FIX2INT(r_window);
	uint32_t __start = FIX2INT(r_start);
	uint32_t __stop = FIX2INT(r_stop);
	xcb_get_motion_events_cookie_t cookie = xcb_get_motion_events(connection, __window, __start, __stop);
	xcb_get_motion_events_reply_t *reply = xcb_get_motion_events_reply(connection, cookie, NULL);
	if (reply == NULL)
		return Qnil;
	return Data_Wrap_Struct(r_XCB_GetMotionEventsReply, NULL, NULL, reply);
}