tiger.h   tiger.h 
/* Copyright (C) 2008 Vincent Penquerc'h. /* Copyright (C) 2008 Vincent Penquerc'h.
This file is part of the Tiger rendering library. This file is part of the Tiger rendering library.
Written by Vincent Penquerc'h. Written by Vincent Penquerc'h.
Use, distribution and reproduction of this library is governed This library is free software; you can redistribute it and/or
by a BSD style source license included with this source in the modify it under the terms of the GNU Lesser General Public
file 'COPYING'. Please read these terms before distributing. */ License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef _TIGER_H_ #ifndef TIGER_tiger_h_GUARD
#define _TIGER_H_ #define TIGER_tiger_h_GUARD
/** \file tiger.h /** \file tiger.h
The libtiger public API. The libtiger public API.
*/ */
#include <stddef.h> #include <stddef.h>
#include <cairo/cairo.h> #include <cairo/cairo.h>
#include <kate/kate.h> #include <kate/kate.h>
#include "tiger/tiger_config.h" #include "tiger/tiger_config.h"
/** \name API version */ /** \name API version */
/** @{ */ /** @{ */
#define TIGER_VERSION_MAJOR 0 /**< major version number of the l ibtiger API */ #define TIGER_VERSION_MAJOR 0 /**< major version number of the l ibtiger API */
#define TIGER_VERSION_MINOR 2 /**< minor version number of the l #define TIGER_VERSION_MINOR 3 /**< minor version number of the l
ibtiger API */ ibtiger API */
#define TIGER_VERSION_PATCH 2 /**< patch version number of the l #define TIGER_VERSION_PATCH 0 /**< patch version number of the l
ibtiger API */ ibtiger API */
/** @} */ /** @} */
typedef struct tiger_renderer tiger_renderer; typedef struct tiger_renderer tiger_renderer;
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/** \defgroup version Version information */ /** \defgroup version Version information */
extern int tiger_get_version(void); extern int tiger_get_version(void);
skipping to change at line 49 skipping to change at line 60
extern int tiger_renderer_create(tiger_renderer **tr); extern int tiger_renderer_create(tiger_renderer **tr);
extern int tiger_renderer_set_cairo_surface(tiger_renderer *tr,cairo_surfac e_t *cs); extern int tiger_renderer_set_cairo_surface(tiger_renderer *tr,cairo_surfac e_t *cs);
extern int tiger_renderer_set_buffer(tiger_renderer *tr,unsigned char *ptr, int width,int height,int stride); extern int tiger_renderer_set_buffer(tiger_renderer *tr,unsigned char *ptr, int width,int height,int stride);
extern int tiger_renderer_set_surface_clear_color(tiger_renderer *tr,int cl ear,double r,double g,double b,double a); extern int tiger_renderer_set_surface_clear_color(tiger_renderer *tr,int cl ear,double r,double g,double b,double a);
extern int tiger_renderer_set_quality(tiger_renderer *tr,double quality); extern int tiger_renderer_set_quality(tiger_renderer *tr,double quality);
extern int tiger_renderer_add_event(tiger_renderer *tr,const kate_info *ki, const kate_event *ev); extern int tiger_renderer_add_event(tiger_renderer *tr,const kate_info *ki, const kate_event *ev);
extern int tiger_renderer_update(tiger_renderer *tr,kate_float t,int track) ; extern int tiger_renderer_update(tiger_renderer *tr,kate_float t,int track) ;
extern int tiger_renderer_seek(tiger_renderer *tr, kate_float target); extern int tiger_renderer_seek(tiger_renderer *tr, kate_float target);
extern int tiger_renderer_render(tiger_renderer *tr); extern int tiger_renderer_render(tiger_renderer *tr);
extern int tiger_renderer_destroy(tiger_renderer *tr); extern int tiger_renderer_destroy(tiger_renderer *tr);
extern int tiger_renderer_is_dirty(const tiger_renderer *tr);
extern int tiger_renderer_enable_caching(tiger_renderer *tr,int enable);
extern int tiger_renderer_set_default_font_description(tiger_renderer *tr,c onst char *desc); extern int tiger_renderer_set_default_font_description(tiger_renderer *tr,c onst char *desc);
extern int tiger_renderer_set_default_font(tiger_renderer *tr,const char *f ont); extern int tiger_renderer_set_default_font(tiger_renderer *tr,const char *f ont);
extern int tiger_renderer_set_default_font_size(tiger_renderer *tr,double s ize); extern int tiger_renderer_set_default_font_size(tiger_renderer *tr,double s ize);
extern int tiger_renderer_set_default_font_color(tiger_renderer *tr,double r,double g, double b,double a); extern int tiger_renderer_set_default_font_color(tiger_renderer *tr,double r,double g, double b,double a);
extern int tiger_renderer_set_default_background_fill_color(tiger_renderer *tr,double r,double g,double b,double a); extern int tiger_renderer_set_default_background_fill_color(tiger_renderer *tr,double r,double g,double b,double a);
#ifdef DEBUG #ifdef DEBUG
/** \defgroup debug */
extern int tiger_renderer_enable_debug(tiger_renderer *tr,int debug); extern int tiger_renderer_enable_debug(tiger_renderer *tr,int debug);
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
/** \name Error codes */ /** \name Error codes */
/** @{ */ /** @{ */
/* note that libkate errors may be returned by libtiger - see libkate API f or more details */ /* note that libkate errors may be returned by libtiger - see libkate API f or more details */
 End of changes. 5 change blocks. 
9 lines changed or deleted 23 lines changed or added


 tiger_config.h   tiger_config.h 
/* Copyright (C) 2008 Vincent Penquerc'h. /* Copyright (C) 2008 Vincent Penquerc'h.
This file is part of the Tiger rendering library. This file is part of the Tiger rendering library.
Written by Vincent Penquerc'h. Written by Vincent Penquerc'h.
Use, distribution and reproduction of this library is governed This library is free software; you can redistribute it and/or
by a BSD style source license included with this source in the modify it under the terms of the GNU Lesser General Public
file 'COPYING'. Please read these terms before distributing. */ License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
#ifndef _TIGER_CONFIG_H_ This library is distributed in the hope that it will be useful,
#define _TIGER_CONFIG_H_ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef TIGER_tiger_config_h_GUARD
#define TIGER_tiger_config_h_GUARD
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#ifndef tiger_malloc #ifndef tiger_malloc
#define tiger_malloc malloc #define tiger_malloc malloc
#endif #endif
#ifndef tiger_realloc #ifndef tiger_realloc
#define tiger_realloc realloc #define tiger_realloc realloc
 End of changes. 2 change blocks. 
5 lines changed or deleted 16 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/