Logo Search packages:      
Sourcecode: libcaca version File versions  Download package

graphics.c File Reference


Detailed Description

Character drawing.

Version:
$Id: graphics.c 258 2004-01-26 10:52:30Z sam $
Author:
Sam Hocevar <sam@zoy.org> This file contains character and string drawing functions.

Definition in file graphics.c.

#include "config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include "caca.h"
#include "caca_internals.h"

Go to the source code of this file.

Defines

#define IDLE_USEC   10000

Typedefs

typedef unsigned char uint8_t

Functions

int _caca_end_graphics (void)
int _caca_init_graphics (void)
void caca_clear (void)
 Clear the screen.
enum caca_color caca_get_bg_color (void)
 Get the current background colour.
enum caca_color caca_get_fg_color (void)
 Get the current foreground colour.
unsigned int caca_get_rendertime (void)
 Get the average rendering time.
unsigned int caca_get_window_height (void)
 Get the window height.
unsigned int caca_get_window_width (void)
 Get the window width.
static void caca_handle_resize (void)
void caca_printf (int x, int y, char const *format,...)
 Format a string.
void caca_putchar (int x, int y, char c)
 Print a character.
void caca_putstr (int x, int y, char const *s)
 Print a string.
void caca_refresh (void)
 Flush pending changes and redraw the screen.
void caca_set_color (enum caca_color fgcolor, enum caca_color bgcolor)
 Set the default colour pair.
void caca_set_delay (unsigned int usec)
 Set the refresh delay.
int caca_set_window_title (char const *title)
 Set the window title.

Variables

static enum caca_color _caca_bgcolor = CACA_COLOR_BLACK
static unsigned int _caca_delay
static char * _caca_empty_line
static enum caca_color _caca_fgcolor = CACA_COLOR_LIGHTGRAY
unsigned int _caca_height = 0
static unsigned int _caca_rendertime
int _caca_resize = 0
int _caca_resize_event = 0
static char * _caca_scratch_line
unsigned int _caca_width = 0


Generated by  Doxygen 1.6.0   Back to index