Class: Shoes::Line

Inherits:
ShapeBase show all
Defined in:
lib/shoes/basic.rb

Instance Attribute Summary

Attributes inherited from Basic

#args, #dps, #initials, #ln, #parent, #pl

Attributes included from Mod

#hover_proc, #hovered, #leave_proc, #margin_bottom, #margin_left, #margin_right, #margin_top

Instance Method Summary collapse

Methods inherited from Basic

#center_at, #clear, #fix_size, #hide, #initialize, #move2, #move3, #positioning, #set_args, #show, #style, #toggle

Methods included from Mod

#click, #hided, #hover, #leave, #release, #set_margin

Constructor Details

This class inherits a constructor from Shoes::Basic

Instance Method Details

#move(x, y) ⇒ Object



173
174
175
176
177
178
# File 'lib/shoes/basic.rb', line 173

def move x, y
  dx, dy = x - @left, y - @top
  @sx += dx; @ex += dx
  @sy += dy; @ey += dy
  super
end