Ignore:
Timestamp:
Apr 26, 2006, 1:57:30 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Updated libcaca c++ bindings
File:
1 edited

Legend:

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

    r831 r897  
    2121#include "caca++.h"
    2222
    23 Caca::Caca(void)
    24 {
    2523
    26 }
    27 
    28 Caca::Caca(Cucul *cv)
     24Caca::Caca(Cucul *cv)
    2925{
    3026    dp = caca_create_display(cv->get_cucul_canvas_t());
     
    3329}
    3430
    35 Caca::~Caca() 
     31Caca::~Caca()
    3632{
    3733    caca_free_display(dp);
    3834}
    3935
    40 void Caca::attach(Cucul *cv)
     36void Caca::Attach(Cucul *cv)
    4137{
    4238    dp = caca_create_display(cv->get_cucul_canvas_t());
     
    4541}
    4642
    47 void Caca::detach()
     43void Caca::Detach()
    4844{
    4945    caca_free_display(dp);
    5046}
    5147
    52 void Caca::set_delay(unsigned int d)
     48void Caca::setDelay(unsigned int d)
    5349{
    5450    caca_set_delay(dp, d);
    5551}
    5652
    57 void Caca::display()
     53void Caca::Display()
    5854{
    5955    caca_refresh_display(dp);
    6056}
    6157
    62 unsigned int Caca::get_rendertime()
     58unsigned int Caca::getRendertime()
    6359{
    6460    return caca_get_rendertime(dp);
    6561}
    6662
    67 unsigned int Caca::get_display_width()
     63unsigned int Caca::getWidth()
    6864{
    6965    return caca_get_display_width(dp);
    7066}
    7167
    72 unsigned int Caca::get_display_height()
     68unsigned int Caca::getHeight()
    7369{
    7470    return caca_get_display_height(dp);
    7571}
    7672
    77 int Caca::set_display_title(char const *s)
     73int Caca::setTitle(char const *s)
    7874{
    7975    return caca_set_display_title(dp, s);
    8076}
    8177
    82 int Caca::get_event(unsigned int g, Event *n, int aa)
     78int Caca::getEvent(unsigned int g, Event *n, int aa)
    8379{
    8480    return caca_get_event(dp, g, &n->e, aa);
    8581}
    8682
    87 unsigned int Caca::get_mouse_x()
     83unsigned int Caca::getMouseX()
    8884{
    8985    return caca_get_mouse_x(dp);
    9086}
    9187
    92 unsigned int Caca::get_mouse_y()
     88unsigned int Caca::getMouseY()
    9389{
    9490    return caca_get_mouse_x(dp);
    9591}
    9692
    97 void Caca::set_mouse(int v)
     93void Caca::setMouse(int v)
    9894{
    9995     caca_set_mouse(dp, v);
Note: See TracChangeset for help on using the changeset viewer.