Module: Gdk::EventRootCoordsReader
- Defined in:
- lib/gdk3/event-readers.rb
Instance Method Summary collapse
- #root_coords ⇒ Object
- #x_root ⇒ Object (also: #root_x)
- #y_root ⇒ Object (also: #root_y)
Instance Method Details
#root_coords ⇒ Object
98 99 100 101 102 103 104 105 |
# File 'lib/gdk3/event-readers.rb', line 98 def root_coords found, x, y = super if found [x, y] else nil end end |
#x_root ⇒ Object Also known as: root_x
107 108 109 |
# File 'lib/gdk3/event-readers.rb', line 107 def x_root (root_coords || [])[0] end |
#y_root ⇒ Object Also known as: root_y
112 113 114 |
# File 'lib/gdk3/event-readers.rb', line 112 def y_root (root_coords || [])[1] end |