source: libcaca/trunk/cpp/caca++.h @ 781

Last change on this file since 781 was 781, checked in by Jean-Yves Lamoureux, 14 years ago
  • Added preliminary C++ bindings
  • Property svn:keywords set to Id
File size: 747 bytes
Line 
1#ifndef _CACA_PP_H
2#define _CACA_PP_H
3
4
5#include "cucul.h"
6#include "caca.h"
7
8#include "cucul++.h"
9
10
11class Caca {
12 public:
13    Caca();
14    Caca(Cucul *qq);
15    ~Caca();
16
17    class Event {
18        friend class Caca;
19    protected:
20        caca_event *e;
21    };
22
23
24    void    attach (Cucul *qq);
25    void        detach ();
26    void        set_delay (unsigned int);
27    void        display ();
28    unsigned int        get_rendertime ();
29    unsigned int        get_window_width ();
30    unsigned int        get_window_height ();
31    int         set_window_title (char const *);
32    int         get_event (unsigned int, Caca::Event*, int);
33    unsigned int        get_mouse_x ();
34    unsigned int        get_mouse_y ();
35    void        set_mouse (int);
36
37
38   
39    private:
40    caca_t *kk;
41
42
43};
44
45
46#endif /* _CACA_PP_H */
Note: See TracBrowser for help on using the repository browser.