Important: The information in this document is obsolete and should not be used for new development.
Point
You use a point, which is a data structure of typePoint
, to specify a location on the QuickDraw coordinate plane. For example, the window origin is specified by the point in the upper-left corner of the port rectangle of a graphics port.
TYPE VHSelect = (v,h); Point = RECORD CASE Integer OF 0: (v:\xDD\xDD Integer: {vertical coordinate} h:\xDD\xDD Integer); {horizontal coordinate} 1: (vh: ARRAY[VHSelect] OF Integer); END;Note that while the vertical coordinate (
Field Description
v
- The vertical coordinate of the point.
h
- The horizontal coordinate of the point.
vh
- A variant definition in which
v
andh
are array elements.v
) appears first in this data structure, followed by the horizontal coordinate (h
), the parameters to all QuickDraw routines expect the horizontal coordinate first and the vertical coordinate second.QuickDraw routines for calculating and changing points are described in "Manipulating Points in Graphics Ports" beginning on page 2-47.