class Gdk::Rectangle

Public Class Methods

new(x, y, width, height) click to toggle source
# File lib/gdk3/rectangle.rb, line 20
def initialize(x, y, width, height)
  initialize_raw
  self.x = x
  self.y = y
  self.width = width
  self.height = height
end
Also aliased as: initialize_raw

Public Instance Methods

initialize_raw(x, y, width, height)
Alias for: new
intersect(other) click to toggle source
# File lib/gdk3/rectangle.rb, line 29
def intersect(other)
  intersected, dest = intersect_raw(other)
  if intersected
    dest
  else
    nil
  end
end
Also aliased as: intersect_raw
intersect_raw(other)
Alias for: intersect