Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gdkEventRequestMotions

gdkEventRequestMotions


Description

Request more motion notifies if event is a motion notify hint event. This function should be used instead of gdkWindowGetPointer 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:

Usage

gdkEventRequestMotions(event)

Arguments

event

a valid GdkEvent

Details

# motion event handler
{
  x <- motion_event$x
  y <- motion_event$y
  # handle (x,y) motion here
  motion_event$request_motions() # handles is_hint events
}

Since 2.12

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.