Module: Gdk::EventRootCoordsReader

Defined in:
lib/gdk3/event-readers.rb

Instance Method Summary collapse

Instance Method Details

#root_coordsObject



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_rootObject Also known as: root_x



107
108
109
# File 'lib/gdk3/event-readers.rb', line 107

def x_root
  (root_coords || [])[0]
end

#y_rootObject Also known as: root_y



112
113
114
# File 'lib/gdk3/event-readers.rb', line 112

def y_root
  (root_coords || [])[1]
end