You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.1 KiB

  1. /*
  2. * TOIlet The Other Implementation’s letters
  3. * Copyright (c) 2006 Sam Hocevar <sam@hocevar.net>
  4. * All Rights Reserved
  5. *
  6. * This program is free software. It comes without any warranty, to
  7. * the extent permitted by applicable law. You can redistribute it
  8. * and/or modify it under the terms of the Do What The Fuck You Want
  9. * To Public License, Version 2, as published by Sam Hocevar. See
  10. * http://sam.zoy.org/wtfpl/COPYING for more details.
  11. */
  12. /*
  13. * This header defines global variables.
  14. */
  15. struct toilet_context
  16. {
  17. char const *export;
  18. char const *font;
  19. char const *dir;
  20. unsigned int term_width;
  21. caca_canvas_t *cv;
  22. caca_canvas_t *torender;
  23. unsigned int w, h, ew, eh, x, y, lines;
  24. /* Render methods */
  25. int (*feed)(struct toilet_context *, uint32_t, uint32_t);
  26. int (*flush)(struct toilet_context *);
  27. int (*end)(struct toilet_context *);
  28. /* Used by the FIGlet driver */
  29. char const *hmode;
  30. unsigned int *lookup;
  31. /* Render filters */
  32. void (**filters)(struct toilet_context *);
  33. unsigned int nfilters;
  34. };
  35. typedef struct toilet_context context_t;