All Databases
Inside Mac - Basic Toolbox
SetPt
SetRect
SetRectRgn
Point
SetPt
Pack horizontal and vertical coordinates into Point
#include <
Quickdraw.h
>
Quickdraw
void
SetPt
(
thePoint
,
horiz
,
vert
);
Point
*
thePoint
; address of point to set
short
horiz
; horizontal coordinate
short
vert
; vertical coordinate
SetPt
stores two coordinate values into a
Point
structure.
thePoint
is the address of a 4-byte
Point
structure. Upon return, it will
contain the coordinates specified by
horiz
and
vert
.
horiz
and . . .
vert
are coordinate values, ranging from -32767 to 32767. Negative
values are upward and toward the left; positive values are downward
and toward the right.
Returns
: none
Notes:
SetPt
is functionally equivalent to the faster:
thePoint->
h
= horiz;
thePoint->
v
= vert;
Referenced by (28):
DIBadMount
Help Balloons in Dynamic Windows
LGetSelect
LNew
LScroll
LSearch
PPostEvent
April 91 - TAspectPicture (Frameworks Archive)
Gray Scale Ramp Palette Example (Inside Mac - Index)
List Manager Demo (Inside Mac - Index)
Using FSRead to Read from a File (Inside Mac - Index)
Using the List Manager in a Modal Dialog (Inside Mac - Index)
v (Inside Mac - Index)
DIBadMount (Inside Mac - Basic Toolbox)
LGetSelect (Inside Mac - Basic Toolbox)
LNew (Inside Mac - Basic Toolbox)
LScroll (Inside Mac - Basic Toolbox)
LSearch (Inside Mac - Basic Toolbox)
PPostEvent (Inside Mac - Basic Toolbox)
Recording Sounds Through the Sound Input Dialog Box (Inside Mac - Sound Mgr)
Arrowheads (MacTech Vol 01-1984-5)
Try Pop-Up (MacTech Vol 01-1984-5)
Avoiding traps (MacTech Vol 02-1986)
Cursor Control 2 (MacTech Vol 06-1990)
MacApp and C++ (MacTech Vol 06-1990)
Dragging Objects (MacTech Vol 07-1991)
Easy FKEY (MacTech Vol 08-1992)
Color Animation (MacTech Vol 09-1993)