Blob


1 #include <u.h>
2 #include <libc.h>
3 #include <draw.h>
5 Point
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 }
11 Point
12 stringbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, Image *bg, Point bgp, Drawop op)
13 {
14 return _string(dst, pt, src, sp, f, s, nil, 1<<24, dst->clipr, bg, bgp, op);
15 }
17 Point
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 }
23 Point
24 stringnbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, int len, Image *bg, Point bgp, Drawop op)
25 {
26 return _string(dst, pt, src, sp, f, s, nil, len, dst->clipr, bg, bgp, op);
27 }
29 Point
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 }
35 Point
36 runestringbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r, Image *bg, Point bgp, Drawop op)
37 {
38 return _string(dst, pt, src, sp, f, nil, r, 1<<24, dst->clipr, bg, bgp, op);
39 }
41 Point
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 }
47 Point
48 runestringnbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r, int len, Image *bg, Point bgp, Drawop op)
49 {
50 return _string(dst, pt, src, sp, f, nil, r, len, dst->clipr, bg, bgp, op);
51 }