class Position
Snapping options for positioning sprites.
Position()
Snapping options for positioning sprites. |
fun getEnabled(): java.lang.Boolean
Whether sprites should snap to specific positions during pan interactions. This switch enables or disables position snapping. |
|
fun getSnapToBottom(): java.lang.Float
The bottom side of a sprite's bounding box snaps to a horizontal line which is shifted
from the bottom side of the edited image towards its center by this value. The value is
measured in normalized
coordinates relative to the smaller side of the edited image.
If this value is explicitly set to |
|
fun getSnapToHorizontalCenter(): java.lang.Boolean
If enabled a sprite's center snaps to the horizontal line through the center of the edited image. |
|
fun getSnapToLeft(): java.lang.Float
The left side of a sprite's bounding box snaps to a vertical line which is shifted
from the left side of the edited image towards its center by this value. The value is
measured in normalized
coordinates relative to the smaller side of the edited image.
If this value is explicitly set to |
|
fun getSnapToRight(): java.lang.Float
The right side of a sprite's bounding box snaps to a vertical line which is shifted
from the right side of the edited image towards its center by this value. The value is
measured in normalized
coordinates relative to the smaller side of the edited image.
If this value is explicitly set to |
|
fun getSnapToTop(): java.lang.Float
The top side of a sprite's bounding box snaps to a horizontal line which is shifted
from the top side of the edited image towards its center by this value. The value is
measured in normalized
coordinates relative to the smaller side of the edited image.
If this value is explicitly set to |
|
fun getSnapToVerticalCenter(): java.lang.Boolean
If enabled a sprite's center snaps to the vertical line through the center of the edited image. |
|
fun getThreshold(): java.lang.Float
This threshold defines the distance of a pan gesture where snapping at a snap point occurs. It is measured in points. |
|
fun setEnabled(p: java.lang.Boolean): void
Whether sprites should snap to specific positions during pan interactions. This switch enables or disables position snapping. |
|
fun setSnapToBottom(p: java.lang.Float): void
The bottom side of a sprite's bounding box snaps to a horizontal line which is shifted
from the bottom side of the edited image towards its center by this value. The value is
measured in normalized
coordinates relative to the smaller side of the edited image.
If this value is explicitly set to |
|
fun setSnapToHorizontalCenter(p: java.lang.Boolean): void
If enabled a sprite's center snaps to the horizontal line through the center of the edited image. |
|
fun setSnapToLeft(p: java.lang.Float): void
The left side of a sprite's bounding box snaps to a vertical line which is shifted
from the left side of the edited image towards its center by this value. The value is
measured in normalized
coordinates relative to the smaller side of the edited image.
If this value is explicitly set to |
|
fun setSnapToRight(p: java.lang.Float): void
The right side of a sprite's bounding box snaps to a vertical line which is shifted
from the right side of the edited image towards its center by this value. The value is
measured in normalized
coordinates relative to the smaller side of the edited image.
If this value is explicitly set to |
|
fun setSnapToTop(p: java.lang.Float): void
The top side of a sprite's bounding box snaps to a horizontal line which is shifted
from the top side of the edited image towards its center by this value. The value is
measured in normalized
coordinates relative to the smaller side of the edited image.
If this value is explicitly set to |
|
fun setSnapToVerticalCenter(p: java.lang.Boolean): void
If enabled a sprite's center snaps to the vertical line through the center of the edited image. |
|
fun setThreshold(p: java.lang.Float): void
This threshold defines the distance of a pan gesture where snapping at a snap point occurs. It is measured in points. |