littlekt
0.6.0
common
core
/
com.lehaine.littlekt.util.packer
/
MaxRectsPacker
Max
Rects
Packer
class
MaxRectsPacker
(
val
options
:
PackingOptions
)
:
Packer
Constructors
Functions
Properties
Constructors
Max
Rects
Packer
Link copied to clipboard
fun
MaxRectsPacker
(
options
:
PackingOptions
)
Functions
add
Link copied to clipboard
open
override
fun
add
(
rect
:
BinRect
)
:
BinRect
open
fun
add
(
rects
:
List
<
BinRect
>
)
open
fun
add
(
width
:
Int
,
height
:
Int
,
data
:
Map
<
String
,
Any
>
=
mapOf()
)
:
BinRect
load
Link copied to clipboard
open
override
fun
load
(
bins
:
List
<
Bin
>
)
next
Link copied to clipboard
open
override
fun
next
(
)
:
Int
repack
Link copied to clipboard
open
override
fun
repack
(
quick
:
Boolean
)
reset
Link copied to clipboard
open
override
fun
reset
(
)
save
Link copied to clipboard
open
override
fun
save
(
)
:
List
<
Bin
>
sort
Link copied to clipboard
open
override
fun
sort
(
rects
:
List
<
BinRect
>
)
:
List
<
BinRect
>
Properties
bins
Link copied to clipboard
val
bins
:
List
<
BaseBin
>
dirty
Link copied to clipboard
val
dirty
:
Boolean
height
Link copied to clipboard
val
height
:
Int
options
Link copied to clipboard
val
options
:
PackingOptions
rects
Link copied to clipboard
val
rects
:
List
<
BinRect
>
width
Link copied to clipboard
val
width
:
Int