NinePatchInfo

class NinePatchInfo(val xranges: List<Pair<Boolean, IntRange>>, val yranges: List<Pair<Boolean, IntRange>>, val width: Int, val height: Int, val content: BmpSlice? = null)

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, left: Int, top: Int, right: Int, bottom: Int, content: BmpSlice? = null)
constructor(xranges: List<Pair<Boolean, IntRange>>, yranges: List<Pair<Boolean, IntRange>>, width: Int, height: Int, content: BmpSlice? = null)

Types

Link copied to clipboard
class AxisInfo(ranges: List<Pair<Boolean, IntRange>>, val totalLen: Int)
Link copied to clipboard
class AxisSegment(val scaled: Boolean, val range: IntRange)
Link copied to clipboard

Properties

Link copied to clipboard
val content: BmpSlice? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun computeScale(bounds: RectangleInt, new: Boolean = true, callback: (segment: NinePatchInfo.Segment, x: Int, y: Int, width: Int, height: Int) -> Unit)
Link copied to clipboard
fun computeScaleNew(bounds: RectangleInt, callback: (segment: NinePatchInfo.Segment, x: Int, y: Int, width: Int, height: Int) -> Unit)
Link copied to clipboard
fun computeScaleOld(bounds: RectangleInt, callback: (segment: NinePatchInfo.Segment, x: Int, y: Int, width: Int, height: Int) -> Unit)