Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Login

Gdk::EventScroll

class Gdk::EventScroll

Generated from button presses for the buttons 4 to 7. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.

Class Methods

Gdk::EventScroll.new(type = Gdk::Event::SCROLL)
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::EventScroll#time=.
  • time: the time of the event in milliseconds
  • Returns: self
x
Gets the x coordinate of the pointer relative to the window.
  • Returns: the x coordinate of the pointer relative to the window
x=(x)
Sets the x coordinate of the pointer relative to the window.
  • x: the x coordinate of the pointer relative to the window
  • Returns: x
set_x(x)
Same as Gdk::EventScroll#x=.
  • x: the x coordinate of the pointer relative to the window
  • Returns: self
y
Gets the y coordinate of the pointer relative to the window.
  • Returns: the y coordinate of the pointer relative to the window
y=(y)
Sets the y coordinate of the pointer relative to the window.
  • y: the y coordinate of the pointer relative to the window
  • Returns: y
set_y(y)
Same as Gdk::EventScroll#y=.
  • y: the y coordinate of the pointer relative to the window
  • Returns: self
state
Gets the bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType.
state=(state)
Sets a bit-mask representing the state of modifier keys.
set_state(state)
Same as Gdk::EventScroll#state=.
direction
Gets the direction to scroll to (one of Gdk::EventScroll::UP, Gdk::EventScroll::DOWN, Gdk::EventScroll::LEFT and Gdk::EventScroll::RIGHT).
direction=(direction)
Sets the direction to scroll to.
set_direction(direction)
Same as Gdk::EventScroll#direction=.
device
Gets the device where the event originated.
device=(device)
Sets the device where the event originated.
set_device(device)
Same as Gdk::EventScroll#device=.
x_root
Gets the x coordinate of the pointer relative to the root of the screen.
  • Returns: the x coordinate of the pointer relative to the root of the screen
x_root=(x_root)
Sets the x coordinate of the pointer relative to the root of the screen.
  • x_root: the x coordinate of the pointer relative to the root of the screen
  • Returns: x_root
set_x_root(x_root)
Same as Gdk::EventScroll#x_root=.
  • x_root: the x coordinate of the pointer relative to the root of the screen
  • Returns: self
y_root
Gets the y coordinate of the pointer relative to the root of the screen.
  • Returns: the y coordinate of the pointer relative to the root of the screen
y_root=(y_root)
Sets the y coordinate of the pointer relative to the root of the screen.
  • y_root: the y coordinate of the pointer relative to the root of the screen
  • Returns: y_root
set_y_root(y_root)
Same as Gdk::EventScroll#y_root=.
  • y_root: the y coordinate of the pointer relative to the root of the screen
  • Returns: self

Constants

GdkScrollDirection

UP
the window is scrolled up.
DOWN
the window is scrolled down.
LEFT
the window is scrolled to the left.
RIGHT
the window is scrolled to the right.
Last modified:2008/04/10 11:01:32
Keyword(s):
References:[Ruby/GDK] [Gtk::StatusIcon] [index-ruby-gdk2] [api-gdk-index] [News (2015-09-13 No.1)] [Gdk::EventScroll::Direction] [Gdk::EventScroll]