Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Login

Gdk::EventProximity

class Gdk::EventProximity

Proximity events are generated when using GDK's wrapper for the XInput extension. The XInput extension is an add-on for standard X that allows you to use nonstandard devices such as graphics tablets. A proximity event indicates that the stylus has moved in or out of contact with the tablet, or perhaps that the user's finger has moved in or out of contact with a touch screen.

Class Methods

Gdk::EventProximity.new(type)
Creates a new event of the given type. All fields are set to 0. Since 2.2

Instance Methods

time
Gets the time of the event in milliseconds.
  • Returns: the time of the event in milliseconds
time=(time)
Sets the time of the event in milliseconds.
  • time: the time of the event in milliseconds
  • Returns: time
set_time(time)
Same as Gdk::EventProximity#time=.
  • time: the time of the event in milliseconds
  • Returns: self
device
Gets the Gdk::Device where the event originated.
device=(device)
Sets the Gdk::Device where the event originated.
  • device: the Gdk::Device where the event originated.
  • Returns: device
set_device(device)
Same as Gdk::EventProximity#device=.
  • device: the Gdk::Device where the event originated.
  • Returns: self
Last modified:2008/04/10 11:01:32
Keyword(s):
References:[api-gdk-index] [Ruby/GDK] [Gdk::EventProximity] [Gtk::Widget] [index-ruby-gdk2]