Class: Pango::Rectangle
- Inherits:
-
Object
- Object
- Pango::Rectangle
- Defined in:
- lib/pango/rectangle.rb
Instance Method Summary collapse
- #dup ⇒ Object
-
#initialize(x, y, width, height) ⇒ Rectangle
constructor
A new instance of Rectangle.
- #initialize_raw ⇒ Object
- #to_a ⇒ Object
Constructor Details
#initialize(x, y, width, height) ⇒ Rectangle
20 21 22 23 24 25 26 |
# 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 |
Instance Method Details
#dup ⇒ Object
32 33 34 35 36 |
# 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 ⇒ Object
19 |
# File 'lib/pango/rectangle.rb', line 19 alias_method :initialize_raw, :initialize |
#to_a ⇒ Object
28 29 30 |
# File 'lib/pango/rectangle.rb', line 28 def to_a [x, y, width, height] end |