Important: The information in this document is obsolete and should not be used for new development.
MoveMapping
You can use theMoveMapping
function 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
TheMoveMapping
function postmultiplies the target mapping by a mapping that addshOffset
to the x translation andvOffset
to the y translation of the target mapping.Passing the result of this function to the
GXMapShape
function is equivalent to calling theGXMapShape
function and then calling theGXMoveShape
function.ERRORS, WARNINGS, AND NOTICES
Errors mapping_is_nil SEE ALSO
The use of theMoveMapping
function is described in the section "Translation by a Relative Amount" beginning on page 8-17.The
GXMapShape
andGXMoveShape
functions are described in the chapter "Transform Objects" in Inside Macintosh: QuickDraw GX Objects.