Skip to content

setWidth()

Set the object's width.

icon.setWidth(width)

Parameters

icon.setWidth(width)
Parameter Type Default Description
width int or float required The new width, in pixels.