Method: MiniGL::Component#set_position

Defined in:
lib/minigl/forms.rb

#set_position(x, y) ⇒ Object

Sets the position of the component. Parameters:

x

The new x coordinate.

y

The new y coordinate.



71
72
73
# File 'lib/minigl/forms.rb', line 71

def set_position(x, y)
  @x = x; @y = y
end