class SyncSign::Widget::Item
An item that contains only x/y coordinates. This can't be used on its own, only its superclasses can be added to templates.
Attributes
x[RW]
@return [Integer] horizontal position of the item.
y[RW]
@return [Integer] vertical position of the item.
Public Class Methods
new(x: nil, y: nil)
click to toggle source
Initialize a new Item
widget. @param x [Integer] The horizontal position of the item. @param y [Integer] The vertical position of the item.
# File lib/syncsign/widget-core.rb, line 25 def initialize(x: nil, y: nil) @x = x @y = y end