CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_path.h>
Public Member Functions | |
TClipRegion (const TRect &aRect) | |
TClipRegion (const MPath &aPath) | |
const TRect & | Bounds () const noexcept |
const COutline & | Path () const noexcept |
bool | IsRect () const noexcept |
bool | IsEmpty () const noexcept |
A clip region. This class enables optimisations: detemining whether the clip region is an axis-aligned rectangle, and getting the bounding box.
CartoType::TClipRegion::TClipRegion | ( | const TRect & | aRect | ) |
Creates a clip region from an axis-aligned rectangle.
CartoType::TClipRegion::TClipRegion | ( | const MPath & | aPath | ) |
Creates a clip region from a path.
|
inlinenoexcept |
Returns the bounding box of this clip region.
|
inlinenoexcept |
Returns true if this clip region is empty.
|
inlinenoexcept |
Returns true if this clip region is an axis-aligned rectangle.
|
inlinenoexcept |
Returns the clip region as a path.