Sha256: 6bd9a453c44462d978dfb2996cab0de35fc08006a5f35109c7c57bb540680efb

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 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

class Wx::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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wxruby3-0.9.3-x64-mingw-ucrt lib/wx/core/notebook.rb
wxruby3-0.9.2-x64-mingw-ucrt lib/wx/core/notebook.rb