class Gdk::Coordinate::Region

Public Class Methods

new(x, y, w, h) click to toggle source
# File core/mui/cairo_coordinate_module.rb, line 15
def initialize(x, y, w, h)
  @x, @y, @w, @h = x, y, w, h end

Public Instance Methods

bottom() click to toggle source
# File core/mui/cairo_coordinate_module.rb, line 31
def bottom
  y + h end
point_in?(mx, my) click to toggle source
# File core/mui/cairo_coordinate_module.rb, line 18
def point_in?(mx, my)
  left <= mx and mx <= right and top <= my and my <= bottom
end
right() click to toggle source
# File core/mui/cairo_coordinate_module.rb, line 34
def right
  x + w end