module Gdk::EventCoordsReader
Public Instance Methods
center()
click to toggle source
Calls superclass method
# File lib/gdk3/event-readers.rb, line 87 def center calculated, x, y = super if calculated [x, y] else nil end end
coords()
click to toggle source
Calls superclass method
# File lib/gdk3/event-readers.rb, line 52 def coords found, x, y = super if found [x, y] else nil end end
get_angle(other_event)
click to toggle source
# File lib/gdk3/event-readers.rb, line 78 def get_angle(other_event) calculated, angle = Event.get_angle(self, other_event) if calculated angle else nil end end
get_distance(other_event)
click to toggle source
# File lib/gdk3/event-readers.rb, line 69 def get_distance(other_event) calculated, distance = Event.get_distance(self, other_event) if calculated distance else nil end end
x()
click to toggle source
# File lib/gdk3/event-readers.rb, line 61 def x (coords || [])[0] end
y()
click to toggle source
# File lib/gdk3/event-readers.rb, line 65 def y (coords || [])[1] end