Changeset 819 for libcaca/trunk/cpp


Ignore:
Timestamp:
Apr 19, 2006, 12:10:58 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • More function mass-renaming: caca_attach -> caca_create_display, etc.
Location:
libcaca/trunk/cpp
Files:
2 edited

Legend:

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

    r811 r819  
    2828Caca::Caca(Cucul *cv)
    2929{
    30     dp = caca_attach(cv->get_cucul_canvas_t());
     30    dp = caca_create_display(cv->get_cucul_canvas_t());
    3131    if(!dp) throw -1;
    3232}
    3333Caca::~Caca()
    3434{
    35     caca_detach(dp);
     35    caca_free_display(dp);
    3636}
    3737void Caca::attach(Cucul *cv)
    3838{
    39     dp = caca_attach(cv->get_cucul_canvas_t());
     39    dp = caca_create_display(cv->get_cucul_canvas_t());
    4040    if(!dp) throw -1;
    4141}
    4242void    Caca::detach ()
    4343{
    44     caca_detach(dp);
     44    caca_free_display(dp);
    4545}
    4646void    Caca::set_delay (unsigned int d)
     
    5050void    Caca::display ()
    5151{
    52     caca_display(dp);
     52    caca_refresh_display(dp);
    5353}
    5454unsigned int    Caca::get_rendertime ()
     
    5656    return caca_get_rendertime(dp);
    5757}
    58 unsigned int    Caca::get_window_width ()
     58unsigned int    Caca::get_display_width ()
    5959{
    60     return caca_get_window_width(dp);
     60    return caca_get_display_width(dp);
    6161}
    62 unsigned int    Caca::get_window_height ()
     62unsigned int    Caca::get_display_height ()
    6363{
    64     return caca_get_window_height(dp);
     64    return caca_get_display_height(dp);
    6565}
    66 int     Caca::set_window_title (char const *s)
     66int     Caca::set_display_title (char const *s)
    6767{
    68     return caca_set_window_title(dp, s);
     68    return caca_set_display_title(dp, s);
    6969}
    7070int     Caca::get_event (unsigned int g, Event *n, int aa)
  • libcaca/trunk/cpp/caca++.h

    r811 r819  
    6262    void        display ();
    6363    unsigned int        get_rendertime ();
    64     unsigned int        get_window_width ();
    65     unsigned int        get_window_height ();
    66     int         set_window_title (char const *);
     64    unsigned int        get_display_width ();
     65    unsigned int        get_display_height ();
     66    int         set_display_title (char const *);
    6767    int         get_event (unsigned int, Event*, int);
    6868    unsigned int        get_mouse_x ();
Note: See TracChangeset for help on using the changeset viewer.