dp_rect_pack  1.1.3
Rectangle packing library for C++
Public Attributes | List of all members
dp::rect_pack::RectPacker< GeomT >::InsertResult Struct Reference

Result returned by RectPacker::insert(). More...

#include <dp_rect_pack.h>

Public Attributes

InsertStatus::Type status
 Status of the insertion. More...
 
Position pos
 Position of the inserted rectangle within the page. More...
 
std::size_t pageIndex
 Index of the page in which the rectangle was inserted. More...
 

Detailed Description

template<typename GeomT = int>
struct dp::rect_pack::RectPacker< GeomT >::InsertResult

Result returned by RectPacker::insert().

Member Data Documentation

◆ pageIndex

template<typename GeomT = int>
std::size_t dp::rect_pack::RectPacker< GeomT >::InsertResult::pageIndex

Index of the page in which the rectangle was inserted.

See also
getPageSize()

◆ pos

template<typename GeomT = int>
Position dp::rect_pack::RectPacker< GeomT >::InsertResult::pos

Position of the inserted rectangle within the page.

◆ status

template<typename GeomT = int>
InsertStatus::Type dp::rect_pack::RectPacker< GeomT >::InsertResult::status

Status of the insertion.

Warning
If InsertResult.status is not InsertStatus::ok, values of all other fields of InsertResult are undefined.

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