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

Last change on this file since 784 was 784, checked in by Jean-Yves Lamoureux, 15 years ago
  • Added license in C++ files.
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1/*
2 *  libcaca++      C++ bindings for libcaca
3 *  Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
4 *                All Rights Reserved
5 *
6 *  $Id: caca++.h 784 2006-04-17 11:06:48Z jylam $
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
14/** \file caca++.h
15 *  \version \$Id: caca++.h 784 2006-04-17 11:06:48Z jylam $
16 *  \author Jean-Yves Lamoureux <jylam@lnxscene.org>
17 *  \brief The \e libcaca++ public header.
18 *
19 *  This header contains the public types and functions that applications
20 *  using \e libcaca++ may use.
21 */
22#ifndef _CACA_PP_H
23#define _CACA_PP_H
24
25
26#include "cucul.h"
27#include "caca.h"
28
29#include "cucul++.h"
30
31
32class Caca {
33 public:
34    Caca();
35    Caca(Cucul *qq);
36    ~Caca();
37
38    class Event {
39        friend class Caca;
40    protected:
41        caca_event *e;
42    };
43
44
45    void    attach (Cucul *qq);
46    void        detach ();
47    void        set_delay (unsigned int);
48    void        display ();
49    unsigned int        get_rendertime ();
50    unsigned int        get_window_width ();
51    unsigned int        get_window_height ();
52    int         set_window_title (char const *);
53    int         get_event (unsigned int, Caca::Event*, int);
54    unsigned int        get_mouse_x ();
55    unsigned int        get_mouse_y ();
56    void        set_mouse (int);
57
58
59   
60    private:
61    caca_t *kk;
62
63
64};
65
66
67#endif /* _CACA_PP_H */
Note: See TracBrowser for help on using the repository browser.