All Databases
Inside Mac - Index
v
Point
structure
#include <
Types.h
>
typedef struct
Point
{
Size Offset Description
short
v; 2 0 Vertical coordinate
short
h; 2 2 Horizontal coordinate
}
Point
; 4
typedef Point
Cell
; (used in
List Manager
calls)
typedef Point
*PointPtr
;
Notes: Use
SetPt
to initialize a
Point
data structure, or simply assign values to
the members directly.
Note
: This structure is 32-bits with the v value in the hi word and
the h value in the low word. In many cases, you may be able to optimize
by using 32-bit register operations. You may also want to coerce a
long (eg, the value returned by
DeltaPoint
) into a Point for easier
handling.
The
Point
(a.k.a.
Cell
) structure is used in calls to:
AddPt
GrowWindow
LocalToGlobal
SFGetFile
DeltaPoint
LAddToCell
LRect
SFPGetFile
DIBadMount
LCellSize
LSetCell
SFPPutFile
DragControl
LCellSize
LSetSelect
SFPutFile
DragGrayRgn
LClick
MapPt
ShieldCursor
DragWindow
LClrCell
MenuSelect
StdLine
EqualPt
LDraw
PinRect
SubPt
FindControl
LFind
Pt2Rect
TEClick
FindDItem
LGetCell
PtInRect
TestControl
FindWindow
LGetSelect
PtInRgn
TrackBox
GetMouse
LLastClick
PtToAngle
TrackControl
GetPen
LNew
ScalePt
TrackGoAway
GlobalToLocal
LNextCell
SetPt
In some cases, a
Point
is used to specify a height and width (as in the
cellSize
field of a
ListRec
structure) or a vertical and horizontal distance
(as in
SubPt
). In these cases, the .h field is always a width (or horizontal
delta) and .v is always a height (or vertical delta).
Referenced by (36):
32 Bit Gray Scale Ramp Palette Example
A User Item in a Dialog
C <=> Pascal
CInfoPBRec
Custom File Dialog
Dialog Utilities
FInfo
File Dialog Utilities
Gray Scale Ramp Palette Example
How To Spool a Picture to a File
Launching Another Application under System 6
Launching Another Application with a Document under System 6
List Manager Demo
PenState
Printing a Text File
Quickdraw
SearchProcPtr
TPRect
Types.h
Using FSRead to Read from a File
Using FSWrite to Write to a File
Using the List Manager in a Modal Dialog
WidthTable
crsrXValid
evtQWhere
frView
frXFlags
mask
numer
polySize
rgbFgColor
ulThick
vScroll
visRgn
where
wordBreak