Function

GdkEventrequest_motions

since: 2.12

Declaration [src]

void
gdk_event_request_motions (
  const GdkEventMotion* event
)

Description [src]

Request more motion notifies if event is a motion notify hint event.

This function should be used instead of gdk_window_get_pointer() to request further motion notifies, because it also works for extension events where motion notifies are provided for devices other than the core pointer. Coordinate extraction, processing and requesting more motion events from a GDK_MOTION_NOTIFY event usually works like this:

{
  // motion_event handler
  x = motion_event->x;
  y = motion_event->y;
  // handle (x,y) motion
  gdk_event_request_motions (motion_event); // handles is_hint events
}

Available since: 2.12

Parameters

event

Type: GdkEventMotion

A valid GdkEvent.

The data is owned by the caller of the function.