class Position
Snapping options for positioning sprites.
Position()
Snapping options for positioning sprites. |
var enabled: Boolean?
Whether sprites should snap to specific positions during pan interactions. This switch enables or disables position snapping. |
|
var snapToBottom: 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 |
|
var snapToHorizontalCenter: Boolean?
If enabled a sprite's center snaps to the horizontal line through the center of the edited image. |
|
var snapToLeft: 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 |
|
var snapToRight: 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 |
|
var snapToTop: 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 |
|
var snapToVerticalCenter: Boolean?
If enabled a sprite's center snaps to the vertical line through the center of the edited image. |
|
var threshold: Float?
This threshold defines the distance of a pan gesture where snapping at a snap point occurs. It is measured in points. |
infix fun <A> A.andRecycle(b: <ERROR CLASS>): <ERROR CLASS> infix fun <A> A.andRecycle(b: Recyclable): <ERROR CLASS> |
|
fun <T> T.loopAsLongNotNull(block: (it: T) -> T?): T |