stringbg.c 1.6 KB

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