1 #include <u.h>
2 #include <libc.h>
3 #include <draw.h>
4
5 Point
stringbg(Image * dst,Point pt,Image * src,Point sp,Font * f,char * s,Image * bg,Point bgp)6 stringbg(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, Image *bg, Point bgp)
7 {
8 return _string(dst, pt, src, sp, f, s, nil, 1<<24, dst->clipr, bg, bgp, SoverD);
9 }
10
11 Point
stringbgop(Image * dst,Point pt,Image * src,Point sp,Font * f,char * s,Image * bg,Point bgp,int op)12 stringbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, Image *bg, Point bgp, int op)
13 {
14 return _string(dst, pt, src, sp, f, s, nil, 1<<24, dst->clipr, bg, bgp, op);
15 }
16
17 Point
stringnbg(Image * dst,Point pt,Image * src,Point sp,Font * f,char * s,int len,Image * bg,Point bgp)18 stringnbg(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, int len, Image *bg, Point bgp)
19 {
20 return _string(dst, pt, src, sp, f, s, nil, len, dst->clipr, bg, bgp, SoverD);
21 }
22
23 Point
stringnbgop(Image * dst,Point pt,Image * src,Point sp,Font * f,char * s,int len,Image * bg,Point bgp,int op)24 stringnbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, int len, Image *bg, Point bgp, int op)
25 {
26 return _string(dst, pt, src, sp, f, s, nil, len, dst->clipr, bg, bgp, op);
27 }
28
29 Point
runestringbg(Image * dst,Point pt,Image * src,Point sp,Font * f,Rune * r,Image * bg,Point bgp)30 runestringbg(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r, Image *bg, Point bgp)
31 {
32 return _string(dst, pt, src, sp, f, nil, r, 1<<24, dst->clipr, bg, bgp, SoverD);
33 }
34
35 Point
runestringbgop(Image * dst,Point pt,Image * src,Point sp,Font * f,Rune * r,Image * bg,Point bgp,int op)36 runestringbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r, Image *bg, Point bgp, int op)
37 {
38 return _string(dst, pt, src, sp, f, nil, r, 1<<24, dst->clipr, bg, bgp, op);
39 }
40
41 Point
runestringnbg(Image * dst,Point pt,Image * src,Point sp,Font * f,Rune * r,int len,Image * bg,Point bgp)42 runestringnbg(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r, int len, Image *bg, Point bgp)
43 {
44 return _string(dst, pt, src, sp, f, nil, r, len, dst->clipr, bg, bgp, SoverD);
45 }
46
47 Point
runestringnbgop(Image * dst,Point pt,Image * src,Point sp,Font * f,Rune * r,int len,Image * bg,Point bgp,int op)48 runestringnbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r, int len, Image *bg, Point bgp, int op)
49 {
50 return _string(dst, pt, src, sp, f, nil, r, len, dst->clipr, bg, bgp, op);
51 }
52