Sha256: 6135f342203b97283f60bb02e0ae4a60c97ffde60e514c45667335e30537456f

Contents?: true

Size: 256 Bytes

Versions: 22

Compression:

Stored size: 256 Bytes

Contents

# Class representing a rectangular shape
class Wx::Rect
  # Nicely readable inspect output for Rect
  def to_s
    "#<Wx::Rect: (#{get_left}, #{get_top}) (#{get_right}, #{get_bottom})>"    
  end
  
  # More ruby-ish names
  alias :contains? :contains
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
wxruby-1.9.7-i386-mswin32 lib/wx/classes/rect.rb
wxruby-1.9.5-i386-mswin32 lib/wx/classes/rect.rb
wxruby-1.9.5-universal-darwin-9 lib/wx/classes/rect.rb
wxruby-1.9.5-x86-linux lib/wx/classes/rect.rb
wxruby-1.9.6-universal-darwin-9 lib/wx/classes/rect.rb
wxruby-1.9.5-x86_64-linux lib/wx/classes/rect.rb
wxruby-1.9.6-x86-linux lib/wx/classes/rect.rb
wxruby-1.9.6-x86-mingw32 lib/wx/classes/rect.rb
wxruby-1.9.6-x86-mswin32-60 lib/wx/classes/rect.rb
wxruby-1.9.7-universal-darwin-9 lib/wx/classes/rect.rb
wxruby-1.9.7-x86-linux lib/wx/classes/rect.rb
wxruby-1.9.7-x86-mswin32-60 lib/wx/classes/rect.rb
wxruby-1.9.8-universal-darwin-9 lib/wx/classes/rect.rb
wxruby-1.9.8-x86-linux lib/wx/classes/rect.rb
wxruby-1.9.8-x86-mingw32 lib/wx/classes/rect.rb
wxruby-1.9.8-x86-mswin32-60 lib/wx/classes/rect.rb
wxruby-1.9.8-x86_64-linux lib/wx/classes/rect.rb
wxruby-1.9.9-universal-darwin-9 lib/wx/classes/rect.rb
wxruby-1.9.9-x86-linux lib/wx/classes/rect.rb
wxruby-1.9.9-x86-mingw32 lib/wx/classes/rect.rb