blob: 0628a8404f05268cbecb3dcf19c243806318b964 [file] [log] [blame]
rsced7c8e82003-09-30 17:47:42 +00001#include <u.h>
2#include <libc.h>
3#include <draw.h>
4
5Point
6stringbg(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
11Point
12stringbgop(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}
16
17Point
18stringnbg(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
23Point
24stringnbgop(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}
28
29Point
30runestringbg(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
35Point
36runestringbgop(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}
40
41Point
42runestringnbg(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
47Point
48runestringnbgop(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}