Important: The information in this document is obsolete and should not be used for new development.
MoveMapping
You can use theMoveMappingfunction to change the horizontal and vertical translation factors of a mapping by given amounts.
gxMapping *MoveMapping(gxMapping *target, Fixed hOffset, Fixed vOffset);
- target
- A pointer to the mapping to be modified. On return, points to the modified mapping.
- hOffset
- The horizontal translation to add to the mapping.
- vOffset
- The vertical translation to add to the mapping.
- function result
- A pointer to the modified mapping, which is also the target mapping.
DESCRIPTION
TheMoveMappingfunction postmultiplies the target mapping by a mapping that addshOffsetto the x translation andvOffsetto the y translation of the target mapping.Passing the result of this function to the
GXMapShapefunction is equivalent to calling theGXMapShapefunction and then calling theGXMoveShapefunction.ERRORS, WARNINGS, AND NOTICES
Errors mapping_is_nil SEE ALSO
The use of theMoveMappingfunction is described in the section "Translation by a Relative Amount" beginning on page 8-17.The
GXMapShapeandGXMoveShapefunctions are described in the chapter "Transform Objects" in Inside Macintosh: QuickDraw GX Objects.