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.
 
 
 
 
 
 

55 regels
1.4 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. #if defined(HAVE_INTTYPES_H) || defined(_DOXYGEN_SKIP_ME)
  21. # include <inttypes.h>
  22. #elif !defined(CUSTOM_INTTYPES)
  23. # define CUSTOM_INTTYPES
  24. typedef unsigned char uint8_t;
  25. typedef unsigned char uint16_t;
  26. typedef unsigned int uint32_t;
  27. #endif
  28. struct cucul_context
  29. {
  30. /* Context size */
  31. unsigned int width, height;
  32. uint32_t *chars;
  33. uint8_t *attr;
  34. char *empty_line, *scratch_line;
  35. enum cucul_color fgcolor;
  36. enum cucul_color bgcolor;
  37. /* Internal libcucul features */
  38. enum cucul_feature background, antialiasing, dithering;
  39. unsigned int refcount;
  40. };
  41. /* Initialisation functions */
  42. extern int _cucul_init_bitmap(void);
  43. extern int _cucul_end_bitmap(void);
  44. #endif /* __CUCUL_INTERNALS_H__ */