class Pango::Rectangle - pango-3.2.9 Documentation

# class Pango::Rectangle

### Public Class Methods

new(x, y, width, height) click to toggle source

    # File lib/pango/rectangle.rb, line 20
    def initialize(x, y, width, height)
      initialize_raw
      self.x = x
      self.y = y
      self.width = width
      self.height = height
    end

Also aliased as: initialize_raw

### Public Instance Methods

dup() click to toggle source

    # File lib/pango/rectangle.rb, line 32
    def dup
      duplicated = self.class.new(x, y, width, height)
      duplicated.taint if tainted?
      duplicated
    end

initialize_raw(x, y, width, height)
Alias for: new
to_a() click to toggle source

    # File lib/pango/rectangle.rb, line 28
    def to_a
      [x, y, width, height]
    end