CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_base.h>
Public Member Functions | |
ExtendedNoticePosition (NoticePosition aBasePosition) | |
ExtendedNoticePosition (NoticePosition aBasePosition, double aXInset, const char *aXInsetUnit, double aYInset, const char *aYInsetUnit) | |
NoticePosition | BasePosition () const |
double | XInset () const |
const char * | XInsetUnit () const |
double | YInset () const |
const char * | YInsetUnit () const |
Positions for notices like the legend or scale bar.
Notices are positioned by moving them inwards from the designated position by the specified insets. For central positions (e.g., the X inset in Top, or both insets in Center) X insets move the position right and Y insets move it down. Units may be 'cm', 'mm', 'in', 'pt' (points: 1/72in), or 'pc' (picas: 1/6in); anything else, including null, means pixels.
The default inset is 3mm, or zero for central positions.
CartoTypeCore::ExtendedNoticePosition::ExtendedNoticePosition | ( | NoticePosition | aBasePosition | ) |
Creates an extended notice position with a given base position, inset from the side or corner by 3mm.
CartoTypeCore::ExtendedNoticePosition::ExtendedNoticePosition | ( | NoticePosition | aBasePosition, |
double | aXInset, | ||
const char * | aXInsetUnit, | ||
double | aYInset, | ||
const char * | aYInsetUnit | ||
) |
Creates an extended notice position with a given base position and X and Y insets.
|
inline |
Returns the base position.
|
inline |
Returns the X (horizontal) inset.
|
inline |
Returns the unit (e.g., "mm") used for the X inset.
|
inline |
Returns the Y (vertical) inset.
|
inline |
Returns the unit (e.g., "mm") used for the Y inset.