Layer.setPos

Function/Meaning

Layer display position setting

Type
Layerclassmethod of
Syntax
setPos(left, top, width=void, height=void)
Arguments
left

Specifies the leftmost position of the layer (in display coordinates of the parent layer) in pixels.
This value can also be obtained and set with the Layer.left property.

top

Specifies the top position of the layer (in display coordinates of the parent layer) in pixels.
This value can also be obtained and set with the Layer.top property.

width

Specifies the width of the layer in pixels.
This value can also be obtained and set with the Layer.width property.
If this argument and height argument are omitted, the position can only be changed by the left and top arguments.

height

Specifies the height of the layer in pixels.
This value can also be obtained and set with the Layer.height property.
If this argument and width argument are omitted, the position can only be changed by the left and top arguments.

Return value
None (void)
Explanation

Set the display position of the layer.