All Classes |Grouped Classes |Index

Class CL_RectPacker

Generic rect packer class. Implements an algorithm to pack rects into groups efficiently. More...

Derived from:

None

Derived by:

None

Group:

2D (Display)

#include <ClanLib/display.h>

Class Members:

Enumerations and structs:

AllocationPolicy

Allocation policy.


Construction:

CL_RectPacker

Constructs a null instance.


Attributes:

is_null

Returns true if this object is invalid.

throw_if_null

Throw an exception if this object is invalid.

get_allocation_policy

Returns the allocation policy.

get_max_group_size

Returns the max group size.

get_total_rect_count

Returns the total amount of rects.

get_rect_count

Returns the amount of rects in a group.

get_group_count

Returns the amount of rects used by group.


Operations:

set_allocation_policy

Set the allocation policy.

add

Allocate space for another rect.