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.
 
 
 
 
 
 

46 lines
1.1 KiB

  1. /*
  2. * libcucul Unicode canvas library
  3. * Copyright (c) 2002-2006 Sam Hocevar <sam@zoy.org>
  4. * All Rights Reserved
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the Do What The Fuck You Want To
  8. * Public License, Version 2, as published by Sam Hocevar. See
  9. * http://sam.zoy.org/wtfpl/COPYING for more details.
  10. */
  11. /** \file cucul_internals.h
  12. * \version \$Id$
  13. * \author Sam Hocevar <sam@zoy.org>
  14. * \brief The \e libcucul private header.
  15. *
  16. * This header contains the private types and functions used by \e libcucul.
  17. */
  18. #ifndef __CUCUL_INTERNALS_H__
  19. #define __CUCUL_INTERNALS_H__
  20. struct cucul_context
  21. {
  22. /* Context size */
  23. unsigned int width, height;
  24. uint32_t *chars;
  25. uint8_t *attr;
  26. uint8_t *empty_line, *scratch_line;
  27. enum cucul_color fgcolor;
  28. enum cucul_color bgcolor;
  29. /* Internal libcucul features */
  30. enum cucul_feature background, antialiasing, dithering;
  31. unsigned int refcount;
  32. };
  33. /* Initialisation functions */
  34. extern int _cucul_init_bitmap(void);
  35. extern int _cucul_end_bitmap(void);
  36. #endif /* __CUCUL_INTERNALS_H__ */