All Databases
Inside Mac - Basic Toolbox
LineTo
MoveTo
Move
Line
ShowPen
PenSize
PenPat
OpenPoly
OpenRgn
LineTo
Draw a line to specified coordinates
#include <
Quickdraw.h
>
Quickdraw
void
LineTo
(
horiz
,
vert
);
short
horiz
; desired horizontal position
short
vert
; desired vertical position
LineTo
draws a line from the current pen position to the specified location,
in local coordinates.
horiz
and . . .
vert
are a location in local coordinates of the current
GrafPort
.
Returns
: none
Notes: If the pen is visible (see
ShowPen
), the line is drawn in the current pen
size, pattern, foreground color, and transfer mode. Note that since the pen
pattern actually hangs below and to the right of the pen position, this and all
drawing operations may affect an area beyond
horiz
and
vert
.
While recording a polygon or region (see
OpenPoly
and
OpenRgn
), the
line created is infinitely thin and is not affected by the pen size, pattern, or
mode.
Use
Move
or
MoveTo
to move the pen without drawing. Use
Line
to move
a distance relative to the current position.
Referenced by (46):
CloseRgn
FrameRect
HidePen
Line
Move
MoveTo
OpenPoly
OpenRgn
PenMode
SetEmptyRgn
ShowPen
January 94 - Printing in MacApp 3.0.1 (Frameworks Archive)
Quickdraw (Inside Mac - Index)
CloseRgn (Inside Mac - Basic Toolbox)
FrameRect (Inside Mac - Basic Toolbox)
HidePen (Inside Mac - Basic Toolbox)
Line (Inside Mac - Basic Toolbox)
Move (Inside Mac - Basic Toolbox)
MoveTo (Inside Mac - Basic Toolbox)
OpenPoly (Inside Mac - Basic Toolbox)
OpenRgn (Inside Mac - Basic Toolbox)
PenMode (Inside Mac - Basic Toolbox)
SetEmptyRgn (Inside Mac - Basic Toolbox)
ShowPen (Inside Mac - Basic Toolbox)
Arrowheads (MacTech Vol 01-1984-5)
Designer CDEF (MacTech Vol 05-1989)
Quadratic Plotters (code) (MacTech Vol 05-1989)
Quadratic Plotters 2 (MacTech Vol 05-1989)
Scroll Bar CDEF (MacTech Vol 05-1989)
Line Art Rotation (MacTech Vol 06-1990)
4D Graphics (MacTech Vol 07-1991)
Configure Window (MacTech Vol 07-1991)
Jul 91 Letters (MacTech Vol 07-1991)
Rotten Apple (MacTech Vol 08-1992)
Expanded Lists (MacTech Vol 09-1993)
Color (MacTech Vol 10-1994)
Jan 94 Challenge (MacTech Vol 10-1994)
Mar 94 Challenge (MacTech Vol 10-1994)
Selective Color (MacTech Vol 10-1994)
Feb 95 Top 10 (MacTech Vol 11-1995)
Splitting Windows (MacTech Vol 11-1995)
January 90 - THE PERILS OF POSTSCRIPT (develop - 1990)
July 90 - MACINTOSH DISPLAY CARD 8*24 GC: THE NAKED TRUTH (develop - 1990)
Autumn 91 - CURVES AHEAD: WORKING WITH CURVES IN QUICKDRAW (develop - 1991)
December 93 - GRAPHICAL TRUFFLES (develop - 1993)
June 93 - GRAPHICAL TRUFFLES (develop - 1993)