Sha256: c0eb9431bf78e820a7ba5686aa5c2d2d1b175769335b9fd9bd84aa05028cc41c

Contents?: true

Size: 1.17 KB

Versions: 5

Compression:

Stored size: 1.17 KB

Contents

# :stopdoc:
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# :startdoc:


module Wx

  class RegionIterator

    # Creates a Wx::RegionIterator and passes that to the given block.
    # Removes the iterator after the block finishes.
    # @param [Wx::Region] region
    # @yieldparam [Wx::RegionIterator] region_it
    def self.for_region(region)  end

    # Creates a Wx::RegionIterator and iterates each rectangle in the region executing the given block
    # for each iteration passing the region iterator.
    # @param [Wx::Region] region
    # @yieldparam [Wx::RegionIterator] region_it
    def self.iterate(region) end

    alias :have_rects? :have_rects

    # Moves to the next rectangle of the iterated region.
    # @return [void]
    def next_rect; end

    # If a block is given the given block is called for each rectangle in the region passing the rectangle.
    # If no block is given an Enumerator is returned.
    # @overload each(&block)
    #   @yieldparam [Wx::Rect] rect
    #   @return [Object]
    # @overload each()
    #   @return [Enumerator]
    def each; end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wxruby3-0.9.7-x64-mingw-ucrt lib/wx/doc/region_iterator.rb
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/doc/region_iterator.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/doc/region_iterator.rb
wxruby3-0.9.3-x64-mingw-ucrt lib/wx/doc/region_iterator.rb
wxruby3-0.9.2-x64-mingw-ucrt lib/wx/doc/region_iterator.rb