Module: Goo::CanvasItem
- Defined in:
- lib/goocanvas.rb
Instance Method Summary collapse
- #bounds ⇒ Object
- #height ⇒ Object
- #set_child_properties(child, *args) ⇒ Object
- #width ⇒ Object
- #x ⇒ Object
- #y ⇒ Object
Instance Method Details
#bounds ⇒ Object
62 63 64 |
# File 'lib/goocanvas.rb', line 62 def bounds [x1, x2, y1, y2] end |
#height ⇒ Object
70 71 72 |
# File 'lib/goocanvas.rb', line 70 def height y2 - y1 end |
#set_child_properties(child, *args) ⇒ Object
57 58 59 60 |
# File 'lib/goocanvas.rb', line 57 def set_child_properties(child, *args) hash = Goo.args_to_hash(args) hash.each_pair { |key, value| set_child_property(child, key, value) } end |
#width ⇒ Object
66 67 68 |
# File 'lib/goocanvas.rb', line 66 def width x2 - x1 end |
#x ⇒ Object
74 75 76 |
# File 'lib/goocanvas.rb', line 74 def x x1 end |
#y ⇒ Object
78 79 80 |
# File 'lib/goocanvas.rb', line 78 def y y1 end |