Class: Shoes::Shape
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
- #line_to(x, y) ⇒ Object
- #move3(x, y) ⇒ Object
- #move_to(x, y) ⇒ Object
- #quad_to(cx, cy, x, y) ⇒ Object
Methods inherited from Basic
#center_at, #clear, #fix_size, #hide, #initialize, #move, #move2, #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
#line_to(x, y) ⇒ Object
201 202 203 |
# File 'lib/shoes/basic.rb', line 201 def line_to x, y real.lineTo x + left, y + top end |
#move3(x, y) ⇒ Object
192 193 194 195 196 197 |
# File 'lib/shoes/basic.rb', line 192 def move3 x, y unless @app.cs.isDisposed real.dispose end @left, @top = x, y end |
#move_to(x, y) ⇒ Object
198 199 200 |
# File 'lib/shoes/basic.rb', line 198 def move_to x, y real.moveTo x + left, y + top end |
#quad_to(cx, cy, x, y) ⇒ Object
204 205 206 |
# File 'lib/shoes/basic.rb', line 204 def quad_to cx, cy, x, y real.quadTo cx + left, cy + top, x + left, y + top end |