Companion

object Companion

Functions

Link copied to clipboard
operator fun invoke(width: Double, height: Double, algo: BinPacker.Algo = MaxRects(width, height)): BinPacker
operator fun invoke(width: Float, height: Float, algo: BinPacker.Algo = MaxRects(width.toDouble(), height.toDouble())): BinPacker
operator fun invoke(width: Int, height: Int, algo: BinPacker.Algo = MaxRects(width.toDouble(), height.toDouble())): BinPacker
Link copied to clipboard
fun <T> pack(width: Double, height: Double, items: Iterable<T>, getSize: (T) -> Size): BinPacker.Result<T>
fun <T> pack(width: Float, height: Float, items: Iterable<T>, getSize: (T) -> Size): BinPacker.Result<T>
fun <T> pack(width: Int, height: Int, items: Iterable<T>, getSize: (T) -> Size): BinPacker.Result<T>
Link copied to clipboard
fun <T : Sizeable> packSeveral(maxSize: Size, items: Iterable<T>): List<BinPacker.Result<T>>
fun <T> packSeveral(maxSize: Size, items: Iterable<T>, getSize: (T) -> Size): List<BinPacker.Result<T>>