Skip to content

getWidth()

Return the object's width.

Parameters

Once an object item has been created, you can use the following function:

item.getWidth()

Returns

return width

Value Type Description
width int or float The width, in pixels.