Browse Source

* Updated C++ bindings

tags/v0.99.beta14
Jean-Yves Lamoureux jylam 18 years ago
parent
commit
63955d927a
3 changed files with 8 additions and 7 deletions
  1. +4
    -4
      cxx/caca++.cpp
  2. +3
    -2
      cxx/caca++.h
  3. +1
    -1
      cxx/cpptest.cpp

+ 4
- 4
cxx/caca++.cpp View File

@@ -45,9 +45,9 @@ void Caca::Detach()
caca_free_display(dp);
}

void Caca::setDelay(unsigned int d)
void Caca::setDisplayTime(unsigned int d)
{
caca_set_delay(dp, d);
caca_set_display_time(dp, d);
}

void Caca::Display()
@@ -55,9 +55,9 @@ void Caca::Display()
caca_refresh_display(dp);
}

unsigned int Caca::getRendertime()
unsigned int Caca::getDisplayTime()
{
return caca_get_rendertime(dp);
return caca_get_display_time(dp);
}

unsigned int Caca::getWidth()


+ 3
- 2
cxx/caca++.h View File

@@ -58,9 +58,10 @@ class Caca

void Attach(Cucul *cv);
void Detach();
void setDelay(unsigned int);
void setDisplayTime(unsigned int);

void Display();
unsigned int getRendertime();
unsigned int getDisplayTime();
unsigned int getWidth();
unsigned int getHeight();
int setTitle(char const *);


+ 1
- 1
cxx/cpptest.cpp View File

@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
return -1;
}

kk->setDelay(20000);
kk->setDisplayTime(20000);

while(!kk->getEvent(ev.CACA_EVENT_KEY_PRESS, &ev, 0)) {



Loading…
Cancel
Save