Important: The information in this document is obsolete and should not be used for new development.
MoveMappingTo
You can use theMoveMappingTo function to
assign specific values to the horizontal and vertical translation factors of a mapping.
gxMapping *MoveMappingTo(gxMapping *target, Fixed hPosition, Fixed vPosition);
target
- A pointer to the mapping that is to be modified. On return, points to
the modified mapping.
hPosition
- The horizontal translation to be assigned to the target mapping.
vPosition
- The vertical
translation to be assigned to the target mapping.
- function result
- A pointer to the modified mapping, which is also the target mapping.
DESCRIPTION
TheMoveMappingTo
function postmultiplies the target mapping by a mapping that assignshPosition
to the x translation andvPosition
to the y translation of the target mapping. This function sets the translational origin of the mapping; the point (0, 0), when postmultiplied by the mapping that results from this function, will be at location (hPosition
,vPosition
).ERRORS, WARNINGS, AND NOTICES
Errors mapping_is_nil SEE ALSO
The use of theMoveMappingTo
function is described in the section "Translation to a Specified Point" beginning on page 8-18.