SnappingHelper

class SnappingHelper(snapRangeInDP: Float, snapPaddingInPercentageLeft: Float, snapPaddingInPercentageTop: Float, snapPaddingInPercentageRight: Float, snapPaddingInPercentageBottom: Float, snapToHorizontalCenter: Boolean, snapToVerticalCenter: Boolean, rotationSnapPoints: FloatArray)

Functions

drawSnappingGuides
Link copied to clipboard
fun drawSnappingGuides(canvas: <ERROR CLASS>, spriteVector: <ERROR CLASS>, spriteRect: <ERROR CLASS>, spriteRectBounds: <ERROR CLASS>, visibleArea: <ERROR CLASS>)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getSnapPointsX
Link copied to clipboard
fun getSnapPointsX(area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): FloatArray
getSnapPointsY
Link copied to clipboard
fun getSnapPointsY(area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): FloatArray
hashCode
Link copied to clipboard
open override fun hashCode(): Int
hasOffset
Link copied to clipboard
fun hasOffset(): Boolean
mapRotationFromSnapSystem
Link copied to clipboard
fun mapRotationFromSnapSystem(rotation: Float, pointDistance: Float, keepState: Boolean): Float
mapRotationToSnapSystem
Link copied to clipboard
fun mapRotationToSnapSystem(rotation: Float, pointDistance: Float): Float
mapXFromSnapSystem
Link copied to clipboard
fun mapXFromSnapSystem(x: Float, area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): Float
mapXToSnapSystem
Link copied to clipboard
fun mapXToSnapSystem(x: Float, area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): Float
mapYFromSnapSystem
Link copied to clipboard
fun mapYFromSnapSystem(y: Float, area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): Float
mapYToSnapSystem
Link copied to clipboard
fun mapYToSnapSystem(y: Float, area: <ERROR CLASS>, spriteRect: <ERROR CLASS>): Float
reset
Link copied to clipboard
fun reset()
toString
Link copied to clipboard
open override fun toString(): String

Properties

appliedOffsetX
Link copied to clipboard
var appliedOffsetX: Float
appliedOffsetY
Link copied to clipboard
var appliedOffsetY: Float
isSnappedAtRotation
Link copied to clipboard
var isSnappedAtRotation: Boolean
isSnappedAtX
Link copied to clipboard
var isSnappedAtX: Boolean
isSnappedAtY
Link copied to clipboard
var isSnappedAtY: Boolean