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
wxruby-1.9.7-x86-linux lib/wx/classes/textctrl.rb
wxruby-1.9.8-universal-darwin-9 lib/wx/classes/textctrl.rb
wxruby-1.9.8-x86-mingw32 lib/wx/classes/textctrl.rb
wxruby-1.9.8-x86-linux lib/wx/classes/textctrl.rb
wxruby-1.9.8-x86_64-linux lib/wx/classes/textctrl.rb
wxruby-1.9.8-x86-mswin32-60 lib/wx/classes/textctrl.rb
wxruby-1.9.9-universal-darwin-9 lib/wx/classes/textctrl.rb
wxruby-1.9.9-x86-linux lib/wx/classes/textctrl.rb
wxruby-1.9.9-x86-mingw32 lib/wx/classes/textctrl.rb
wxruby-1.9.9-x86-mswin32-60 lib/wx/classes/textctrl.rb
wxruby-2.0.0-universal-darwin-9 lib/wx/classes/textctrl.rb
wxruby-2.0.0-x86-mingw32 lib/wx/classes/textctrl.rb
wxruby-2.0.0-x86-linux lib/wx/classes/textctrl.rb
wxruby-2.0.0-x86-mswin32-60 lib/wx/classes/textctrl.rb
wxruby-2.0.0-x86_64-linux lib/wx/classes/textctrl.rb
wxruby-ruby19-1.9.10-x86-darwin-9 lib/wx/classes/textctrl.rb
wxruby-ruby19-1.9.10-x86-linux lib/wx/classes/textctrl.rb
wxruby-ruby19-1.9.10-x86-mingw32 lib/wx/classes/textctrl.rb
wxruby-ruby19-1.9.8-x86-darwin-9 lib/wx/classes/textctrl.rb
wxruby-ruby19-2.0.0-x86-darwin-9 lib/wx/classes/textctrl.rb