Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

68 rindas
1.4 KiB

  1. /*
  2. * libcaca++ C++ bindings for libcaca
  3. * Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
  4. * All Rights Reserved
  5. *
  6. * $Id$
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the Do What The Fuck You Want To
  10. * Public License, Version 2, as published by Sam Hocevar. See
  11. * http://sam.zoy.org/wtfpl/COPYING for more details.
  12. */
  13. /** \file caca++.h
  14. * \version \$Id$
  15. * \author Jean-Yves Lamoureux <jylam@lnxscene.org>
  16. * \brief The \e libcaca++ public header.
  17. *
  18. * This header contains the public types and functions that applications
  19. * using \e libcaca++ may use.
  20. */
  21. #ifndef _CACA_PP_H
  22. #define _CACA_PP_H
  23. #include "cucul.h"
  24. #include "caca.h"
  25. #include "cucul++.h"
  26. class Caca {
  27. public:
  28. Caca();
  29. Caca(Cucul *qq);
  30. ~Caca();
  31. class Event {
  32. friend class Caca;
  33. protected:
  34. caca_event *e;
  35. };
  36. void attach (Cucul *qq);
  37. void detach ();
  38. void set_delay (unsigned int);
  39. void display ();
  40. unsigned int get_rendertime ();
  41. unsigned int get_window_width ();
  42. unsigned int get_window_height ();
  43. int set_window_title (char const *);
  44. int get_event (unsigned int, Caca::Event*, int);
  45. unsigned int get_mouse_x ();
  46. unsigned int get_mouse_y ();
  47. void set_mouse (int);
  48. private:
  49. caca_t *kk;
  50. };
  51. #endif /* _CACA_PP_H */