| /plan9/sys/include/ |
| H A D | draw.h | 12 typedef struct Point Point; typedef 21 #pragma varargck type "P" Point 153 struct Point struct 161 Point min; argument 162 Point max; 373 extern int originwindow(Image*, Point, Point); 378 extern Point Pt(int, int); 380 extern Rectangle Rpt(Point, Point); 381 extern Point addpt(Point, Point); 382 extern Point subpt(Point, Point); [all …]
|
| H A D | memdraw.h | 128 extern ulong* wordaddr(Memimage*, Point); 129 extern uchar* byteaddr(Memimage*, Point); 130 extern int drawclip(Memimage*, Rectangle*, Memimage*, Point*, Memimage*, Point*, Rectangle*, Recta… 137 extern void memdraw(Memimage*, Rectangle, Memimage*, Point, Memimage*, Point, int); 138 extern void memline(Memimage*, Point, Point, int, int, int, Memimage*, Point, int); 139 extern void mempoly(Memimage*, Point*, int, int, int, int, Memimage*, Point, int); 140 extern void memfillpoly(Memimage*, Point*, int, int, Memimage*, Point, int); 141 extern void _memfillpolysc(Memimage*, Point*, int, int, Memimage*, Point, int, int, int, int); 142 extern void memimagedraw(Memimage*, Rectangle, Memimage*, Point, Memimage*, Point, int); 144 extern void memimageline(Memimage*, Point, Point, int, int, int, Memimage*, Point, int); [all …]
|
| H A D | frame.h | 54 ulong frcharofpt(Frame*, Point); 55 Point frptofchar(Frame*, ulong); 59 void frselectpaint(Frame*, Point, Point, Image*); 60 void frdrawsel(Frame*, Point, ulong, ulong, int); 61 Point frdrawsel0(Frame*, Point, ulong, ulong, Image*, Image*); 68 Point _frdraw(Frame*, Point); 76 int _frcanfit(Frame*, Point, Frbox*); 77 void _frcklinewrap(Frame*, Point*, Frbox*); 78 void _frcklinewrap0(Frame*, Point*, Frbox*); 79 void _fradvance(Frame*, Point*, Frbox*); [all …]
|
| /plan9/sys/src/cmd/unix/drawterm/include/ |
| H A D | draw.h | 14 typedef struct Point Point; typedef 22 #pragma varargck type "P" Point 154 struct Point struct 162 Point min; argument 163 Point max; 369 extern int originwindow(Image*, Point, Point); 374 extern Point Pt(int, int); 376 extern Rectangle Rpt(Point, Point); 377 extern Point addpt(Point, Point); 378 extern Point subpt(Point, Point); [all …]
|
| H A D | memdraw.h | 135 extern ulong* wordaddr(Memimage*, Point); 136 extern uchar* byteaddr(Memimage*, Point); 137 extern int drawclip(Memimage*, Rectangle*, Memimage*, Point*, Memimage*, Point*, Rectangle*, Recta… 146 extern void memdraw(Memimage*, Rectangle, Memimage*, Point, Memimage*, Point, int); 147 extern void memline(Memimage*, Point, Point, int, int, int, Memimage*, Point, int); 148 extern void mempoly(Memimage*, Point*, int, int, int, int, Memimage*, Point, int); 149 extern void memfillpoly(Memimage*, Point*, int, int, Memimage*, Point, int); 150 extern void _memfillpolysc(Memimage*, Point*, int, int, Memimage*, Point, int, int, int, int); 151 extern Memdrawparam* _memimagedrawsetup(Memimage*, Rectangle, Memimage*, Point, Memimage*, Point, i… 153 extern void memimagedraw(Memimage*, Rectangle, Memimage*, Point, Memimage*, Point, int); [all …]
|
| /plan9/sys/include/ape/ |
| H A D | draw.h | 22 typedef struct Point Point; typedef 29 #pragma varargck type "P" Point 161 struct Point struct 169 Point min; argument 170 Point max; 380 extern int originwindow(Image*, Point, Point); 385 extern Point Pt(int, int); 387 extern Rectangle Rpt(Point, Point); 388 extern Point addpt(Point, Point); 389 extern Point subpt(Point, Point); [all …]
|
| /plan9/sys/src/libdraw/ |
| H A D | stringbg.c | 5 Point 6 stringbg(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, Image *bg, Point bgp) in stringbg() 11 Point 12 stringbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, Image *bg, Point bgp, int … in stringbgop() 17 Point 18 stringnbg(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, int len, Image *bg, Point b… in stringnbg() 23 Point 24 stringnbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, int len, Image *bg, Point… in stringnbgop() 29 Point 30 runestringbg(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r, Image *bg, Point bgp) in runestringbg() [all …]
|
| H A D | bezier.c | 10 Point *p; 15 appendpt(Plist *l, Point p) in appendpt() 20 l->p = malloc(PINC*sizeof(Point)); in appendpt() 22 l->p = realloc(l->p, (l->np+PINC)*sizeof(Point)); in appendpt() 31 normsq(Point p) in normsq() 37 psdist(Point p, Point a, Point b) in psdist() 58 bpts1(Plist *l, Point p0, Point p1, Point p2, Point p3, int scale) in bpts1() 60 Point p01, p12, p23, p012, p123, p0123; in bpts1() 61 Point tp0, tp1, tp2, tp3; in bpts1() 95 bpts(Plist *l, Point p0, Point p1, Point p2, Point p3) in bpts() [all …]
|
| H A D | string.c | 10 Point 11 string(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s) in string() 16 Point 17 stringop(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, Drawop op) in stringop() 22 Point 23 stringn(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, int len) in stringn() 28 Point 29 stringnop(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, int len, Drawop op) in stringnop() 34 Point 35 runestring(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r) in runestring() [all …]
|
| H A D | ellipse.c | 7 doellipse(int cmd, Image *dst, Point *c, int xr, int yr, int thick, Image *src, Point *sp, int alph… in doellipse() 33 ellipse(Image *dst, Point c, int a, int b, int thick, Image *src, Point sp) in ellipse() 39 ellipseop(Image *dst, Point c, int a, int b, int thick, Image *src, Point sp, Drawop op) in ellipseop() 45 fillellipse(Image *dst, Point c, int a, int b, Image *src, Point sp) in fillellipse() 51 fillellipseop(Image *dst, Point c, int a, int b, Image *src, Point sp, Drawop op) in fillellipseop() 57 arc(Image *dst, Point c, int a, int b, int thick, Image *src, Point sp, int alpha, int phi) in arc() 64 arcop(Image *dst, Point c, int a, int b, int thick, Image *src, Point sp, int alpha, int phi, Drawo… in arcop() 71 fillarc(Image *dst, Point c, int a, int b, Image *src, Point sp, int alpha, int phi) in fillarc() 78 fillarcop(Image *dst, Point c, int a, int b, Image *src, Point sp, int alpha, int phi, Drawop op) in fillarcop()
|
| H A D | arith.c | 5 Point 8 Point p; in Pt() 28 Rpt(Point min, Point max) in Rpt() 37 Point 38 addpt(Point a, Point b) in addpt() 45 Point 46 subpt(Point a, Point b) in subpt() 63 Point 64 divpt(Point a, int b) in divpt() 71 Point [all …]
|
| H A D | poly.c | 25 dopoly(int cmd, Image *dst, Point *pp, int np, int end0, int end1, int radius, Image *src, Point *s… in dopoly() 66 poly(Image *dst, Point *p, int np, int end0, int end1, int radius, Image *src, Point sp) in poly() 72 polyop(Image *dst, Point *p, int np, int end0, int end1, int radius, Image *src, Point sp, Drawop o… in polyop() 78 fillpoly(Image *dst, Point *p, int np, int wind, Image *src, Point sp) in fillpoly() 84 fillpolyop(Image *dst, Point *p, int np, int wind, Image *src, Point sp, Drawop op) in fillpolyop()
|
| H A D | line.c | 6 line(Image *dst, Point p0, Point p1, int end0, int end1, int radius, Image *src, Point sp) in line() 12 lineop(Image *dst, Point p0, Point p1, int end0, int end1, int radius, Image *src, Point sp, Drawop… in lineop()
|
| H A D | draw.c | 20 draw1(Image *dst, Rectangle *r, Image *src, Point *p0, Image *mask, Point *p1, Drawop op) in draw1() 48 draw(Image *dst, Rectangle r, Image *src, Image *mask, Point p1) in draw() 54 drawop(Image *dst, Rectangle r, Image *src, Image *mask, Point p1, Drawop op) in drawop() 60 gendraw(Image *dst, Rectangle r, Image *src, Point p0, Image *mask, Point p1) in gendraw() 66 gendrawop(Image *dst, Rectangle r, Image *src, Point p0, Image *mask, Point p1, Drawop op) in gendrawop()
|
| /plan9/sys/src/games/sokoban/ |
| H A D | sokoban.h | 43 Point dest; /* result of step */ 63 Point glenda; 64 Point max; /* that's how much the board spans */ 93 void drawboard(Point); 94 void resize(Point); 95 Point boardsize(Point); 104 int validpush(Point, Step*, Point*); 105 int isvalid(Point, Route*, int (*)(Point, Step*, Point*)); 107 Route* extend(Route*, int, int, Point); 108 Route* findroute(Point, Point);
|
| H A D | route.c | 10 static Point 27 validpush(Point g, Step *s, Point *t) in validpush() 30 Point m; in validpush() 67 isvalid(Point s, Route* r, int (*isallowed)(Point, Step*, Point*)) in isvalid() argument 69 Point m; in isvalid() 144 extend(Route *rr, int dir, int count, Point dest) in extend() 201 Point m, p, n; in bfstrydir() 222 bfs(Point src, Point dst, Visited *v) in bfs() 227 Point n; in bfs() 272 findroute(Point src, Point dst) in findroute()
|
| /plan9/sys/src/cmd/unix/drawterm/libdraw/ |
| H A D | arith.c | 5 Point 8 Point p; in Pt() 28 Rpt(Point min, Point max) in Rpt() 37 Point 38 addpt(Point a, Point b) in addpt() 45 Point 46 subpt(Point a, Point b) in subpt() 63 Point 64 divpt(Point a, int b) in divpt() 71 Point [all …]
|
| /plan9/sys/src/cmd/grap/ |
| H A D | grap.h | 64 } Point; typedef 79 Point pt; /* usually for max and min */ 80 Point pt1; 93 Point pt; 116 extern Point ptmin, ptmax; 136 extern void coord_x(Point); 137 extern void coord_y(Point); 144 extern void range(Point); 149 extern Point makepoint(Obj *, double, double); 196 extern void line(int, Point, Point, Attr *); [all …]
|
| /plan9/sys/src/cmd/ip/httpd/ |
| H A D | imagemap.c | 7 typedef struct Point Point; typedef 11 struct Point struct 19 Point p; argument 31 int polytest(int, Point, Point, Point); 35 Point sub(Point, Point); 36 float dist(Point, Point); 88 Point p, cen, q, start; in translate() 234 polytest(int inside, Point p, Point b, Point a) in polytest() 236 Point pa, ba; in polytest() 250 Point [all …]
|
| /plan9/sys/src/libmemlayer/ |
| H A D | line.c | 9 Point p0; 10 Point p1; 11 Point delta; 15 Point sp; 25 _memline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memimage *src, Point sp… in _memline() 29 Point d; in _memline() 99 Point p0, p1; in llineop() 119 memline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memimage *src, Point sp,… in memline()
|
| /plan9/sys/src/cmd/unix/drawterm/libmemlayer/ |
| H A D | line.c | 9 Point p0; 10 Point p1; 11 Point delta; 15 Point sp; 25 _memline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memimage *src, Point sp… in _memline() 29 Point d; in _memline() 99 Point p0, p1; in llineop() 119 memline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memimage *src, Point sp,… in memline()
|
| /plan9/sys/src/libframe/ |
| H A D | frptofchar.c | 8 Point 9 _frptofcharptb(Frame *f, ulong p, Point pt, int bn) in _frptofcharptb() 37 Point 43 Point 46 Point pt; in _frptofcharnb() 57 Point 58 _frgrid(Frame *f, Point p) in _frgrid() 69 frcharofpt(Frame *f, Point pt) in frcharofpt() 71 Point qt; in frcharofpt()
|
| /plan9/sys/src/cmd/abaco/ |
| H A D | fns.h | 60 void rect3d(Image *, Rectangle, int, Image **, Point); 61 void ellipse3d(Image *, Point, int, int, Image **, Point); 71 Point getpt(Page *p, Point); 82 Line* linewhich(Lay *, Point); 83 Box* pttobox(Line *, Point); 84 Box* boxwhich(Lay *, Point);
|
| /plan9/sys/src/cmd/unix/drawterm/libmemdraw/ |
| H A D | line.c | 45 horline1(Memimage *dst, Point p0, Point p1, int srcval, Rectangle clipr) in horline1() 88 verline1(Memimage *dst, Point p0, Point p1, int srcval, Rectangle clipr) in verline1() 129 horliner(Memimage *dst, Point p0, Point p1, Memimage *src, Point dsrc, Rectangle clipr) in horliner() 161 verliner(Memimage *dst, Point p0, Point p1, Memimage *src, Point dsrc, Rectangle clipr) in verliner() 193 horline(Memimage *dst, Point p0, Point p1, Memimage *src, Point dsrc, Rectangle clipr) in horline() 221 verline(Memimage *dst, Point p0, Point p1, Memimage *src, Point dsrc, Rectangle clipr) in verline() 268 discend(Point p, int radius, Memimage *dst, Memimage *src, Point dsrc, int op) in discend() 285 arrowend(Point tip, Point *pp, int end, int sin, int cos, int radius) in arrowend() 318 _memimageline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memimage *src, Poi… in _memimageline() 329 Point q, pts[10], *pp, d; in _memimageline() [all …]
|
| /plan9/sys/src/libmemdraw/ |
| H A D | line.c | 43 horline1(Memimage *dst, Point p0, Point p1, int srcval, Rectangle clipr) in horline1() 86 verline1(Memimage *dst, Point p0, Point p1, int srcval, Rectangle clipr) in verline1() 127 horliner(Memimage *dst, Point p0, Point p1, Memimage *src, Point dsrc, Rectangle clipr) in horliner() 159 verliner(Memimage *dst, Point p0, Point p1, Memimage *src, Point dsrc, Rectangle clipr) in verliner() 191 horline(Memimage *dst, Point p0, Point p1, Memimage *src, Point dsrc, Rectangle clipr) in horline() 219 verline(Memimage *dst, Point p0, Point p1, Memimage *src, Point dsrc, Rectangle clipr) in verline() 266 discend(Point p, int radius, Memimage *dst, Memimage *src, Point dsrc, int op) in discend() 283 arrowend(Point tip, Point *pp, int end, int sin, int cos, int radius) in arrowend() 316 _memimageline(Memimage *dst, Point p0, Point p1, int end0, int end1, int radius, Memimage *src, Poi… in _memimageline() 327 Point q, pts[10], *pp, d; in _memimageline() [all …]
|