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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/graphics.c

    r813 r819  
    2323#include "cucul_internals.h"
    2424
    25 /** \brief Set the window title.
     25/** \brief Set the display title.
    2626 *
    2727 *  If libcaca runs in a window, try to change its title. This works with
     
    2929 *
    3030 *  \param dp The libcaca graphical context.
    31  *  \param title The desired window title.
     31 *  \param title The desired display title.
    3232 *  \return 0 upon success, a non-zero value if an error occurs.
    3333 */
    34 int caca_set_window_title(caca_display_t *dp, char const *title)
     34int caca_set_display_title(caca_display_t *dp, char const *title)
    3535{
    36     return dp->drv.set_window_title(dp, title);
     36    return dp->drv.set_display_title(dp, title);
    3737}
    3838
    39 /** \brief Get the window width.
     39/** \brief Get the display width.
    4040 *
    4141 *  If libcaca runs in a window, get the usable window width. This value can
     
    4545 *
    4646 *  \param dp The libcaca graphical context.
    47  *  \return The window width.
     47 *  \return The display width.
    4848 */
    49 unsigned int caca_get_window_width(caca_display_t *dp)
     49unsigned int caca_get_display_width(caca_display_t *dp)
    5050{
    51     return dp->drv.get_window_width(dp);
     51    return dp->drv.get_display_width(dp);
    5252}
    5353
    54 /** \brief Get the window height.
     54/** \brief Get the display height.
    5555 *
    5656 *  If libcaca runs in a window, get the usable window height. This value can
     
    6060 *
    6161 *  \param dp The libcaca graphical context.
    62  *  \return The window height.
     62 *  \return The display height.
    6363 */
    64 unsigned int caca_get_window_height(caca_display_t *dp)
     64unsigned int caca_get_display_height(caca_display_t *dp)
    6565{
    66     return dp->drv.get_window_height(dp);
     66    return dp->drv.get_display_height(dp);
    6767}
    6868
     
    7070 *
    7171 *  This function sets the refresh delay in microseconds. The refresh delay
    72  *  is used by caca_display() to achieve constant framerate. See the
    73  *  caca_display() documentation for more details.
     72 *  is used by caca_refresh_display() to achieve constant framerate. See the
     73 *  caca_refresh_display() documentation for more details.
    7474 *
    7575 *  If the argument is zero, constant framerate is disabled. This is the
     
    8787 *
    8888 *  This function returns the average rendering time, which is the average
    89  *  measured time between two caca_display() calls, in microseconds. If
     89 *  measured time between two caca_refresh_display() calls, in microseconds. If
    9090 *  constant framerate was activated by calling caca_set_delay(), the average
    9191 *  rendering time will not be considerably shorter than the requested delay
     
    103103 *
    104104 *  This function flushes all graphical operations and prints them to the
    105  *  screen. Nothing will show on the screen until caca_display() is
     105 *  screen. Nothing will show on the screen until caca_refresh_display() is
    106106 *  called.
    107107 *
    108  *  If caca_set_delay() was called with a non-zero value, caca_display()
    109  *  will use that value to achieve constant framerate: if two consecutive
    110  *  calls to caca_display() are within a time range shorter than the value
    111  *  set with caca_set_delay(), the second call will wait a bit before
    112  *  performing the screen refresh.
     108 *  If caca_set_delay() was called with a non-zero value,
     109 *  caca_refresh_display() will use that value to achieve constant
     110 *  framerate: if two consecutive calls to caca_refresh_display() are
     111 *  within a time range shorter than the value set with caca_set_delay(),
     112 *  the second call will be delayed before performing the screen refresh.
    113113 *
    114114 *  \param dp The libcaca graphical context.
    115115 */
    116 void caca_display(caca_display_t *dp)
     116void caca_refresh_display(caca_display_t *dp)
    117117{
    118118#if !defined(_DOXYGEN_SKIP_ME)
Note: See TracChangeset for help on using the changeset viewer.