Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 2 - Basic QuickDraw / Basic QuickDraw Reference
Routines / Managing Bitmaps, Port Rectangles, and Clipping Regions


MovePortTo

The MovePortTo procedure is normally called only by the Window Manager; it changes the position of the port rectangle of the current graphics port (basic or color).

PROCEDURE MovePortTo (leftGlobal,topGlobal:\xDDInteger);
leftGlobal
The horizontal distance to move the port rectangle.
topGlobal
The vertical distance to move the port rectangle.
DESCRIPTION
The MovePortTo procedure changes the position of the current graphics port's port rectangle: the leftGlobal and topGlobal parameters set the distance between the upper-left corner of the boundary rectangle and the upper-left corner of the new port rectangle.

This does not affect the screen; it merely changes the location at which subsequent drawing inside the graphics port appears. Like the PortSize procedure, MovePortTo doesn't change the clipping or visible region, nor does it affect the local coordinate system of the graphics port.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996