Skip to content

getSize()

Return the object's width and height.

textfield.getSize()

These are the size of its upright bounding box, so they grow as the object rotates.

Returns

return width, height

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