18.7 Chapter Summary
This chapter covered these topics:
- a review of basic graphics concepts
- a discussion of coordinate systems
- the definition and use of the high level module GraphPaper
- an elementary introduction to fractals and string art
- an extended discussion of the implementation of GraphPaper in both MacOS and Windows NT
It included discussion of the following Modula-2 items:
Reserved Words | Standard Identifiers |
---|
none | none |
Imports:
Standard:
Non-Standard:
- From GraphPaper:
CoordSystem, AngleType, LabelType, SetCoordSystem, SetAngleType, Home, ShiftOrigin,
GetDimensions, GetLocation, MoveBy, MoveTo, Move, GetCurrentAngle, Turn, TurnTo, LineBy,
LineTo, Line, Dot, DotAt, SetLabels, ShowLabels, ShowAxes, SetScale, PlotPoint, PolarPlotPoint
- From GraphWindows:
GetWindow, GetWDimensions
Macintosh Specific:
- From Events:
Button, keyDown, mouseDown
- From Quickdraw:
qd, PenSize, WindowRef, InsetRect, SetPort, SetRect, FrameRect, FrameOval, PaintOval,
RGBColorRandom, RGBForeColor, InvertColor, MoveTo, LineTo
- From MacWindows:
FrontWindow, WindowRecord, NewWindow, documentProc, NewCWindow
Windows-32 Specific (Stonybrook):
- From WIN32:
UINT, WPARAM, LPARAM, LRESULT, BOOL, RECT, HBRUSH, HWND
- From WINUSER:
GetDC, ReleaseDC, SetRect, InvalidateRect, GetClientRect, RegisterClass, ShowWindow,
GetMessage, TranslateMessage, DispatchMessage, LoadCursor, LoadIcon, IDC_ARROW,
FillRect, DefWindowProc, UpdateWindow, PostQuitMessage, BeginPaint, EndPaint,
CreateWindow, GetSysColor, LOWORD, HIWORD, COLOR_WINDOW,
WS_OVERLAPPEDWINDOW, CS_VREDRAW, CS_HREDRAW, CS_BYTEALIGNCLIENT,
WM_SIZE, WM_DESTROY, WM_PAINT, WM_SYSCOLORCHANGE, WM_ERASEBKGND,
WNDCLASS, MSG, PAINTSTRUCT
- From WINGDI:
MoveToEx, TextOut, CreateSolidBrush, GetDeviceCaps, VERTRES, HORZRES
- From WINX:
Instance, PrevInstance, CmdShow, DeleteBrush, NULL_HWND, NIL_RECT,
NULL_HBRUSH, NULL_HINSTANCE, NULL_HMENU, NIL_POINT
Contents