Sha256: ff303fb6b87b90cf373e4201910e651a03942a9bfa20c1a6624cf282403591ec

Contents?: true

Size: 1.13 KB

Versions: 8

Compression:

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

8 entries across 8 versions & 1 rubygems

Version Path
wxruby3-1.3.1 lib/wx/doc/region_iterator.rb
wxruby3-1.3.0 lib/wx/doc/region_iterator.rb
wxruby3-1.2.1 lib/wx/doc/region_iterator.rb
wxruby3-1.2.0 lib/wx/doc/region_iterator.rb
wxruby3-1.1.2 lib/wx/doc/region_iterator.rb
wxruby3-1.1.1 lib/wx/doc/region_iterator.rb
wxruby3-1.1.0 lib/wx/doc/region_iterator.rb
wxruby3-1.0.1 lib/wx/doc/region_iterator.rb