Sha256: deb662e33d5eb2bb42c9813ddeef40af0f5b98a865b061967181c2b5c2e59ffc

Contents?: true

Size: 345 Bytes

Versions: 37

Compression:

Stored size: 345 Bytes

Contents

# Superclass of a variety of controls that display lists of items (eg
# Choice, ListBox, CheckListBox)
class Wx::ControlWithItems
  # Make these ruby enumerables so find, find_all, map etc are available 
  include Enumerable
  # Passes each valid item index into the passed block
  def each
    0.upto(get_count - 1) { | i | yield i }
  end
end

Version data entries

37 entries across 37 versions & 4 rubygems

Version Path
wxruby3-0.9.0.pre.beta.9 lib/wx/core/controlwithitems.rb
wxruby3-0.9.0.pre.beta.8 lib/wx/core/controlwithitems.rb
wxruby64-2.0.1-x64-mingw32 lib/wx/classes/controlwithitems.rb
wxruby-ruby19-2.0.1-x86-mingw32 lib/wx/classes/controlwithitems.rb
wxruby-ruby19-2.0.1-x86-linux lib/wx/classes/controlwithitems.rb
wxruby-ruby19-2.0.1-x86-darwin-9 lib/wx/classes/controlwithitems.rb
wxruby-2.0.1-x86-mswin32-60 lib/wx/classes/controlwithitems.rb
wxruby-2.0.1-x86-mingw32 lib/wx/classes/controlwithitems.rb
wxruby-2.0.1-x86-linux lib/wx/classes/controlwithitems.rb
wxruby-2.0.1-universal-darwin-9 lib/wx/classes/controlwithitems.rb
wxruby-1.9.10-universal-darwin-9 lib/wx/classes/controlwithitems.rb
wxruby-1.9.10-x86-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.10-x86-mswin32-60 lib/wx/classes/controlwithitems.rb
wxruby-1.9.10-x86-mingw32 lib/wx/classes/controlwithitems.rb
wxruby-1.9.10-x86_64-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.8-universal-darwin-9 lib/wx/classes/controlwithitems.rb
wxruby-1.9.8-x86-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.8-x86-mingw32 lib/wx/classes/controlwithitems.rb
wxruby-1.9.8-x86_64-linux lib/wx/classes/controlwithitems.rb
wxruby-1.9.8-x86-mswin32-60 lib/wx/classes/controlwithitems.rb