stringbg.c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. #include <u.h>
  10. #include <libc.h>
  11. #include <draw.h>
  12. Point
  13. stringbg(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s,
  14. Image *bg, Point bgp)
  15. {
  16. return _string(dst, pt, src, sp, f, s, nil, 1<<24, dst->clipr, bg, bgp, SoverD);
  17. }
  18. Point
  19. stringbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s,
  20. Image *bg, Point bgp, Drawop op)
  21. {
  22. return _string(dst, pt, src, sp, f, s, nil, 1<<24, dst->clipr, bg, bgp, op);
  23. }
  24. Point
  25. stringnbg(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s,
  26. int len, Image *bg, Point bgp)
  27. {
  28. return _string(dst, pt, src, sp, f, s, nil, len, dst->clipr, bg, bgp, SoverD);
  29. }
  30. Point
  31. stringnbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s,
  32. int len, Image *bg, Point bgp, Drawop op)
  33. {
  34. return _string(dst, pt, src, sp, f, s, nil, len, dst->clipr, bg, bgp, op);
  35. }
  36. Point
  37. runestringbg(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r, Image *bg, Point bgp)
  38. {
  39. return _string(dst, pt, src, sp, f, nil, r, 1<<24, dst->clipr, bg, bgp, SoverD);
  40. }
  41. Point
  42. runestringbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r, Image *bg, Point bgp, Drawop op)
  43. {
  44. return _string(dst, pt, src, sp, f, nil, r, 1<<24, dst->clipr, bg, bgp, op);
  45. }
  46. Point
  47. runestringnbg(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r, int len, Image *bg, Point bgp)
  48. {
  49. return _string(dst, pt, src, sp, f, nil, r, len, dst->clipr, bg, bgp, SoverD);
  50. }
  51. Point
  52. runestringnbgop(Image *dst, Point pt, Image *src, Point sp, Font *f, Rune *r, int len, Image *bg, Point bgp, Drawop op)
  53. {
  54. return _string(dst, pt, src, sp, f, nil, r, len, dst->clipr, bg, bgp, op);
  55. }