Ignore:
Timestamp:
Apr 21, 2006, 9:06:38 PM (14 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++.cpp

    r819 r827  
    2121#include "caca++.h"
    2222
    23 
    2423Caca::Caca(void)
    2524{
    2625
    2726}
     27
    2828Caca::Caca(Cucul *cv)
    2929{
    3030    dp = caca_create_display(cv->get_cucul_canvas_t());
    31     if(!dp) throw -1;
     31    if(!dp)
     32        throw -1;
    3233}
     34
    3335Caca::~Caca()
    3436{
    3537    caca_free_display(dp);
    3638}
     39
    3740void Caca::attach(Cucul *cv)
    3841{
    3942    dp = caca_create_display(cv->get_cucul_canvas_t());
    40     if(!dp) throw -1;
     43    if(!dp)
     44        throw -1;
    4145}
    42 void    Caca::detach ()
     46
     47void Caca::detach()
    4348{
    4449    caca_free_display(dp);
    4550}
    46 void    Caca::set_delay (unsigned int d)
     51
     52void Caca::set_delay(unsigned int d)
    4753{
    4854    caca_set_delay(dp, d);
    4955}
    50 void    Caca::display ()
     56
     57void Caca::display()
    5158{
    5259    caca_refresh_display(dp);
    5360}
    54 unsigned int    Caca::get_rendertime ()
     61
     62unsigned int Caca::get_rendertime()
    5563{
    5664    return caca_get_rendertime(dp);
    5765}
    58 unsigned int    Caca::get_display_width ()
     66
     67unsigned int Caca::get_display_width()
    5968{
    6069    return caca_get_display_width(dp);
    6170}
    62 unsigned int    Caca::get_display_height ()
     71
     72unsigned int Caca::get_display_height()
    6373{
    6474    return caca_get_display_height(dp);
    6575}
    66 int     Caca::set_display_title (char const *s)
     76
     77int Caca::set_display_title(char const *s)
    6778{
    6879    return caca_set_display_title(dp, s);
    6980}
    70 int     Caca::get_event (unsigned int g, Event *n, int aa)
     81
     82int Caca::get_event(unsigned int g, Event *n, int aa)
    7183{
    7284    return caca_get_event(dp, g, n->e, aa);
    7385}
    74 unsigned int    Caca::get_mouse_x ()
     86
     87unsigned int Caca::get_mouse_x()
    7588{
    7689    return caca_get_mouse_x(dp);
    7790}
    78 unsigned int    Caca::get_mouse_y ()
     91
     92unsigned int Caca::get_mouse_y()
    7993{
    8094    return caca_get_mouse_x(dp);
    8195}
    82 void    Caca::set_mouse (int v)
     96
     97void Caca::set_mouse(int v)
    8398{
    8499     caca_set_mouse(dp, v);
    85100}
     101
Note: See TracChangeset for help on using the changeset viewer.