Documentation ¶
Index ¶
- type BySize
- type Meta
- type Metas
- type Packer
- type Partition
- func (p Partition) AddRectangle(width, height int, hMajor bool) (Partition, Partition)
- func (p Partition) BigEnough(width, height int) bool
- func (p Partition) Height() int
- func (p Partition) IsValid() bool
- func (p Partition) P1() Point
- func (p Partition) P2() Point
- func (p Partition) Ratio() float32
- func (p Partition) Size() int
- func (p Partition) Width() int
- type Point
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
Meta holds meta information about a particular image
func GenerateMetas ¶
type Packer ¶
type Packer struct {
// contains filtered or unexported fields
}
func CreatePacker ¶
func (*Packer) GenerateMetas ¶
type Partition ¶
type Partition struct {
// contains filtered or unexported fields
}
Partition represent the single cell that an image can be inserted in.
func CreatePartition ¶
func (Partition) AddRectangle ¶
A high level function that split up a partition based on the image added in the partition
Click to show internal directories.
Click to hide internal directories.