libXg.a, libframe.a and /usr/man/man3 extracted from sam. These provide
a simplified graphics interface which looks much simpler than X. If
anyone actually uses this for anything, we can then rebuild this with
If you plan on doing development with libXg, you'll probably want to
have a copy of sam installed (for the file format man pages) or a copy
of sam's source (which, of course, also has example code).
* The authors of this software are Rob Pike and Howard Trickey.
* Copyright (c) 1992 by AT&T.
* Permission to use, copy, modify, and distribute this software for any
* purpose without fee is hereby granted, provided that this entire notice
* is included in all copies of any software which is or includes a copy
* or modification of this software and in all copies of the supporting
add, sub, mul, divpt, raddp, rsubp, rmul, rdiv, rshift,
inset, rcanon, eqpt, eqrect, ptinrect, rectinrect, rectXrect,
rectclip, Dx, Dy, Pt, Rect, Rpt - arithmetic on points and
Point add(Point p, Point
balloc, bfree, rdbitmap, wrbitmap, rdbitmapfile, wrbitmapfile
- allocating, freeing, reading, writing bitmaps
Bitmap *balloc(Rectangle r, int ldepth)
void bfree(Bitmap *b)
void rdbitmap(Bitmap *b, int miny, int maxy, ucha