Layer.setPos

Function/Meaning
Setting the layer display position
Type
Method of the Layer class
Syntax
setPos(left, top, width=void, height=void)
Arguments
left Specifies the left edge position of the layer (in the parent layer's display coordinates) in pixels.
This value can also be retrieved or set using the Layer.left property.
top Specifies the top edge position of the layer (in the parent layer's display coordinates) in pixels.
This value can also be retrieved or set using the Layer.top property.
width Specifies the width of the layer in pixels.
This value can also be retrieved or set using the Layer.width property.
If this argument and the height argument are omitted, only the position will be changed using the left and top arguments.
height Specifies the height of the layer in pixels.
This value can also be retrieved or set using the Layer.height property.
If this argument and the width argument are omitted, only the position will be changed using the left and top arguments.
Return Value
None (void)
Description
Sets the display position of the layer.