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.16.0 lib/cairo/region.rb
cairo-1.15.14-x86-mingw32 lib/cairo/region.rb
cairo-1.15.14-x64-mingw32 lib/cairo/region.rb
cairo-1.15.14 lib/cairo/region.rb
cairo-1.15.13-x64-mingw32 lib/cairo/region.rb
cairo-1.15.13-x86-mingw32 lib/cairo/region.rb
cairo-1.15.13 lib/cairo/region.rb
cairo-1.15.12-x64-mingw32 lib/cairo/region.rb
cairo-1.15.12-x86-mingw32 lib/cairo/region.rb
cairo-1.15.12 lib/cairo/region.rb
cairo-1.15.11-x64-mingw32 lib/cairo/region.rb
cairo-1.15.11-x86-mingw32 lib/cairo/region.rb
cairo-1.15.11 lib/cairo/region.rb
cairo-1.15.10-x86-mingw32 lib/cairo/region.rb
cairo-1.15.10-x64-mingw32 lib/cairo/region.rb
cairo-1.15.10 lib/cairo/region.rb
cairo-1.15.9-x64-mingw32 lib/cairo/region.rb
cairo-1.15.9 lib/cairo/region.rb
cairo-1.15.9-x86-mingw32 lib/cairo/region.rb
cairo-1.15.8-x86-mingw32 lib/cairo/region.rb