stringbg.c 1.6 KB

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