Sha256: 31554798ff9b001570771029caa044fc07e476b0aba41e01ff4f065f251c2c56

Contents?: true

Size: 564 Bytes

Versions: 17

Compression:

Stored size: 564 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# 
# Some parts are
# Copyright 2004-2007, wxRuby development team
# released under the MIT-like wxRuby2 license

# Displays a set of pages in parallel using tabs

module Wx
  class Notebook
    # Convenience method for iterating pages
    def each_page
      if block_given?
        0.upto(get_page_count - 1) do | i |
          yield get_page(i)
        end
      else
        ::Enumerator.new { |y| each_page { |pg| y << pg } }
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
wxruby3-1.5.1 lib/wx/core/notebook.rb
wxruby3-1.5.0 lib/wx/core/notebook.rb
wxruby3-1.4.2 lib/wx/core/notebook.rb
wxruby3-1.4.1 lib/wx/core/notebook.rb
wxruby3-1.4.0 lib/wx/core/notebook.rb
wxruby3-1.3.1 lib/wx/core/notebook.rb
wxruby3-1.3.0 lib/wx/core/notebook.rb
wxruby3-1.2.1 lib/wx/core/notebook.rb
wxruby3-1.2.0 lib/wx/core/notebook.rb
wxruby3-1.1.2 lib/wx/core/notebook.rb
wxruby3-1.1.1 lib/wx/core/notebook.rb
wxruby3-1.1.0 lib/wx/core/notebook.rb
wxruby3-1.0.1 lib/wx/core/notebook.rb
wxruby3-0.9.8 lib/wx/core/notebook.rb
wxruby3-0.9.7 lib/wx/core/notebook.rb
wxruby3-0.9.5 lib/wx/core/notebook.rb
wxruby3-0.9.4 lib/wx/core/notebook.rb