Sha256: 6773760e6f4bc41b73ad912b38c87a2d9f6773d017f04eb4b355c8ca8e50cb35

Contents?: true

Size: 426 Bytes

Versions: 63

Compression:

Stored size: 426 Bytes

Contents

class Wx::TextCtrl
  # Fix position_to_xy so it returns a two-element array - the internal
  # version returns a three-element array with a Boolean that doesn't
  # really make sense in Ruby
  wx_position_to_xy = instance_method(:position_to_xy)
  define_method(:position_to_xy) do | pos |
    retval, x, y = wx_position_to_xy.bind(self).call(pos)
    if retval
      return [x, y]
    else
      return nil
    end
  end
end

Version data entries

63 entries across 63 versions & 3 rubygems

Version Path
wxruby64-2.0.1-x64-mingw32 lib/wx/classes/textctrl.rb
wxruby-ruby19-2.0.1-x86-mingw32 lib/wx/classes/textctrl.rb
wxruby-ruby19-2.0.1-x86-linux lib/wx/classes/textctrl.rb
wxruby-ruby19-2.0.1-x86-darwin-9 lib/wx/classes/textctrl.rb
wxruby-2.0.1-x86-mswin32-60 lib/wx/classes/textctrl.rb
wxruby-2.0.1-x86-mingw32 lib/wx/classes/textctrl.rb
wxruby-2.0.1-x86-linux lib/wx/classes/textctrl.rb
wxruby-2.0.1-universal-darwin-9 lib/wx/classes/textctrl.rb
wxruby-1.9.7-i386-mswin32 lib/wx/classes/textctrl.rb
wxruby-1.9.5-i386-mswin32 lib/wx/classes/textctrl.rb
wxruby-1.9.4-i386-mswin32 lib/wx/classes/textctrl.rb
wxruby-1.9.3-i386-mswin32 lib/wx/classes/textctrl.rb
wxruby-1.9.2-powerpc-darwin8.10.0 lib/wx/classes/textctrl.rb
wxruby-1.9.2-i686-linux lib/wx/classes/textctrl.rb
wxruby-1.9.2-i686-darwin8.8.2 lib/wx/classes/textctrl.rb
wxruby-1.9.2-i386-mswin32 lib/wx/classes/textctrl.rb
wxruby-1.9.1-powerpc-darwin8.3.0 lib/wx/classes/textctrl.rb
wxruby-1.9.1-i686-linux lib/wx/classes/textctrl.rb
wxruby-1.9.1-i686-darwin8.4.1 lib/wx/classes/textctrl.rb
wxruby-1.9.1-i386-mswin32 lib/wx/classes/textctrl.rb