SliceCoordsImpl

data class SliceCoordsImpl<T : SizeableInt>(val base: T, val coords: SliceCoords, val name: String? = null, val flippedWidthHeight: Boolean = false) : SliceCoordsWithBase<T>

Constructors

Link copied to clipboard
constructor(base: T, coords: SliceCoords, name: String? = null, flippedWidthHeight: Boolean = false)

Properties

Link copied to clipboard
open override val base: T

Data containing width&height

Link copied to clipboard
open override val blX: Float
Link copied to clipboard
open override val blY: Float
Link copied to clipboard
open override val brX: Float
Link copied to clipboard
open override val brY: Float
Link copied to clipboard

Coordinates 0-1 based inside the container/base

Link copied to clipboard
Link copied to clipboard
open override val frameHeight: Int
Link copied to clipboard
open val frameOffsetX: Int
Link copied to clipboard
open val frameOffsetY: Int
Link copied to clipboard
open override val frameWidth: Int
Link copied to clipboard
open override val height: Int
Link copied to clipboard
open override val name: String? = null

Debug name

Link copied to clipboard
open override val padding: MarginInt
Link copied to clipboard
open val sizeString: String
Link copied to clipboard
open override val tlX: Float
Link copied to clipboard
open override val tlY: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val trX: Float
Link copied to clipboard
open override val trY: Float
Link copied to clipboard
open override val width: Int

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun rotatedLeft(offset: Int = 1): SliceCoordsWithBase<T>
Link copied to clipboard
open fun rotatedRight(offset: Int = 1): SliceCoordsWithBase<T>
Link copied to clipboard
open override fun transformed(orientation: SliceOrientation): SliceCoordsWithBase<T>
Link copied to clipboard
open fun x(index: Int): Float
Link copied to clipboard
open fun y(index: Int): Float