Sha256: 1cbee6b8e3e7465a6e00ce1d2a89f4970dd4bcfcf8d1f92da341a3345cf0e872

Contents?: true

Size: 253 Bytes

Versions: 85

Compression:

Stored size: 253 Bytes

Contents

module Cairo
  class Region
    def each_rectangle
      return to_enum(:each_rectangle) unless block_given?
      num_rectangles.times.each do |i|
        yield(self[i])
      end
    end

    def rectangles
      each_rectangle.to_a
    end
  end
end

Version data entries

85 entries across 77 versions & 2 rubygems

Version Path
cairo-1.17.13 lib/cairo/region.rb
cairo-1.17.12 lib/cairo/region.rb
cairo-1.17.11 lib/cairo/region.rb
cairo-1.17.10 lib/cairo/region.rb
cairo-1.17.9 lib/cairo/region.rb
cairo-1.17.8 lib/cairo/region.rb
cairo-1.17.7 lib/cairo/region.rb
cairo-1.17.6 lib/cairo/region.rb
cairo-1.17.5 lib/cairo/region.rb
cairo-1.17.4 lib/cairo/region.rb
cairo-1.16.6 lib/cairo/region.rb
cairo-1.16.5 lib/cairo/region.rb
cairo-1.16.4 lib/cairo/region.rb
cairo-1.16.3 lib/cairo/region.rb
cairo-1.16.2 lib/cairo/region.rb
cairo-1.16.1-x86-mingw32 lib/cairo/region.rb
cairo-1.16.1-x64-mingw32 lib/cairo/region.rb
cairo-1.16.1 lib/cairo/region.rb
cairo-1.16.0-x86-mingw32 lib/cairo/region.rb
cairo-1.16.0-x64-mingw32 lib/cairo/region.rb