class Gdk::Rectangle
Public Class Methods
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
Source
# File lib/gdk3/rectangle.rb, line 50 def ==(other) other.is_a?(self.class) and self.to_a == other.to_a end
Source
# File lib/gdk3/rectangle.rb, line 38 def inspect super.gsub(/>\z/) do " x=#{x.inspect} y=#{y.inspect} " + "width=#{width.inspect} height=#{height.inspect}>" end end
Calls superclass method
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