dp_rect_pack  1.1.3
Rectangle packing library for C++
Public Types | List of all members
dp::rect_pack::InsertStatus Struct Reference

Status of the RectPacker::InsertResult. More...

#include <dp_rect_pack.h>

Public Types

enum  Type { ok, negativeSize, zeroSize, rectTooBig }
 

Detailed Description

Status of the RectPacker::InsertResult.

Only InsertStatus::ok indicates a successful insertion; all other values are kinds of errors.

Member Enumeration Documentation

◆ Type

Enumerator
ok 

Successful insertion.

negativeSize 

Width and/or height is negative.

zeroSize 

Width and/or height is zero.

rectTooBig 

Rectangle is too big to fit in a single page.

Width and/or height of the rectangle exceeds the maximum size a single page can hold, which is the maximum page size minus the padding.

See also
RectPacker::RectPacker()

The documentation for this struct was generated from the following file: