Class: Gdk::EventScroll

Inherits:
Object
  • Object
show all
Extended by:
GLib::Deprecatable
Defined in:
lib/gdk3/event.rb,
lib/gdk3/deprecated.rb

Instance Method Summary collapse

Instance Method Details

#deltasObject



88
89
90
91
92
93
94
95
# File 'lib/gdk3/event.rb', line 88

def deltas
  found, x, y = scroll_deltas
  if found
    [x, y]
  else
    nil
  end
end

#directionObject



79
80
81
82
83
84
85
86
# File 'lib/gdk3/event.rb', line 79

def direction
  found, value = scroll_direction
  if found
    value
  else
    nil
  end
end