Ignore:
Timestamp:
Apr 21, 2006, 9:06:38 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Fixed ugly coding style of the C++ bindings. Vieux porc immonde.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cpp/caca++.h

    r819 r827  
    2323#define _CACA_PP_H
    2424
     25#include <cucul.h>
     26#include <caca.h>
    2527
    26 #include "cucul.h"
    27 #include "caca.h"
     28#include <cucul++.h>
    2829
    29 #include "cucul++.h"
    30 
    31 
    32 class Event {
     30class Event
     31{
    3332    friend class Caca;
    34  public:
     33  public:
    3534    enum caca_event_type
    3635    {
     
    4746    } type;
    4847
    49  protected:
     48  protected:
    5049    caca_event *e;
    5150};
    5251
    53 class Caca {
    54  public:
     52class Caca
     53{
     54  public:
    5555    Caca();
    5656    Caca(Cucul *qq);
    5757    ~Caca();
    5858
    59     void    attach (Cucul *qq);
    60     void        detach ();
    61     void        set_delay (unsigned int);
    62     void        display ();
    63     unsigned int        get_rendertime ();
    64     unsigned int        get_display_width ();
    65     unsigned int        get_display_height ();
    66     int         set_display_title (char const *);
    67     int         get_event (unsigned int, Event*, int);
    68     unsigned int        get_mouse_x ();
    69     unsigned int        get_mouse_y ();
    70     void        set_mouse (int);
     59    void attach(Cucul *qq);
     60    void detach();
     61    void set_delay(unsigned int);
     62    void display();
     63    unsigned int get_rendertime();
     64    unsigned int get_display_width();
     65    unsigned int get_display_height();
     66    int set_display_title(char const *);
     67    int get_event(unsigned int, Event*, int);
     68    unsigned int get_mouse_x();
     69    unsigned int get_mouse_y();
     70    void set_mouse(int);
    7171
    72 
    73    
    74     private:
     72  private:
    7573    caca_display_t *dp;
    7674};
    7775
    78 
    7976#endif /* _CACA_PP_H */
Note: See TracChangeset for help on using the changeset viewer.