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

ascent() click to toggle source
# File lib/pango/rectangle.rb, line 28
def ascent
  -y
end
descent() click to toggle source
# File lib/pango/rectangle.rb, line 32
def descent
  y + height
end
dup() click to toggle source
# File lib/pango/rectangle.rb, line 48
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
left_bearing() click to toggle source
# File lib/pango/rectangle.rb, line 36
def left_bearing
  x
end
right_bearing() click to toggle source
# File lib/pango/rectangle.rb, line 40
def right_bearing
  x + width
end
to_a() click to toggle source
# File lib/pango/rectangle.rb, line 44
def to_a
  [x, y, width, height]
end