class Gdk::Coordinate::Region

Public Class Methods

new(x, y, w, h) click to toggle source
# File core/mui/cairo_coordinate_module.rb, line 13
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 29
def bottom
  y + h end
point_in?(mx, my) click to toggle source
# File core/mui/cairo_coordinate_module.rb, line 16
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 32
def right
  x + w end