Method
GdkDevicewarp
since: 3.0
Declaration [src]
void
gdk_device_warp (
GdkDevice* device,
GdkScreen* screen,
gint x,
gint y
)
Description [src]
Warps device in display to the point x,y on
the screen screen, unless the device is confined
to a window by a grab, in which case it will be moved
as far as allowed by the grab. Warping the pointer
creates events as if the user had moved the mouse
instantaneously to the destination.
Note that the pointer should normally be under the
control of the user. This function was added to cover
some rare use cases like keyboard navigation support
for the color picker in the GtkColorSelectionDialog.
Available since: 3.0
Parameters
screen-
Type:
GdkScreenThe screen to warp
deviceto.The data is owned by the caller of the method. x-
Type:
gintThe X coordinate of the destination.
y-
Type:
gintThe Y coordinate of the destination.