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