int v = hw_MapCoordinate(int horiz, int c, int size, int parentsize, double *anchor, struct hwTagList *tags);
#CENTER
,
#RIGHT
, #BOTTOM
, etc. to an absolute coordinate. The horiz
parameter has to be
set to True
or False
, indicating whether the coordinate is in horizontal or vertical
view space. The c
parameter must be set to the special coordinate to convert. size
must be the
size of the reference object and parentsize
must be the parent's view size. In case
horiz
is False
, size
and parentsize
must be set to a height value and if horiz
is
True
, they must be set to a width value. The anchor
parameter is optional and can be
set to a pointer to a double containing the reference object's anchor point. Alternatively,
it can be NULL
.
True
for horizontal, False
for vertical view spaceNULL
NULL