71 virtual int rect_count(
unsigned int group_index = 0)
const = 0;
Definition: rect_packer.h:47
2D (width,height) size structure - Integer
Definition: size.h:167
Generic rect packer class. Implements an algorithm to pack rects into groups efficiently.
Definition: rect_packer.h:39
Rect rect
Definition: rect_packer.h:55
virtual Size max_group_size() const =0
Returns the max group size.
Definition: rect_packer.h:45
AllocatedRect(int group_index, Rect rect)
Definition: rect_packer.h:53
virtual int group_count() const =0
Returns the amount of rects used by group.
virtual AllocationPolicy allocation_policy() const =0
Returns the allocation policy.
Definition: rect_packer.h:50
static std::shared_ptr< RectPacker > create(const Size &max_group_size, AllocationPolicy policy=create_new_group)
Constructs a rect group.
AllocationPolicy
Allocation policy.
Definition: rect_packer.h:43
virtual AllocatedRect add(const Size &size)=0
Allocate space for another rect.
virtual int rect_count(unsigned int group_index=0) const =0
Returns the amount of rects in a group.
Definition: rect_packer.h:46
int group_index
Definition: rect_packer.h:54
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:491
virtual int total_rect_count() const =0
Returns the total amount of rects.
Definition: Application/application.h:35