tiger.h | tiger.h | |||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
Boston, MA 02111-1307, USA. */ | Boston, MA 02111-1307, USA. */ | |||
#ifndef TIGER_tiger_h_GUARD | #ifndef TIGER_tiger_h_GUARD | |||
#define TIGER_tiger_h_GUARD | #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 <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 3 /**< minor version number of the l ibtiger API */ | #define TIGER_VERSION_MINOR 3 /**< minor version number of the l ibtiger API */ | |||
#define TIGER_VERSION_PATCH 1 /**< patch version number of the l ibtiger API */ | #define TIGER_VERSION_PATCH 2 /**< patch version number of the l ibtiger API */ | |||
/** @} */ | /** @} */ | |||
typedef struct tiger_renderer tiger_renderer; | typedef struct tiger_renderer tiger_renderer; | |||
typedef enum { | typedef enum { | |||
tiger_font_plain, | tiger_font_plain, | |||
tiger_font_shadow, | tiger_font_shadow, | |||
tiger_font_outline | tiger_font_outline | |||
} tiger_font_effect; | } tiger_font_effect; | |||
#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); | |||
extern const char *tiger_get_version_string(void); | extern const char *tiger_get_version_string(void); | |||
/** \defgroup renderer */ | /** \defgroup renderer */ | |||
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_buffer(tiger_renderer *tr,unsigned char *ptr, int width,int height,int stride,int swap_rgb); | extern int tiger_renderer_set_buffer(tiger_renderer *tr,unsigned char *ptr, int width,int height,int stride,int swap_rgb); | |||
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_is_dirty(const tiger_renderer *tr); | |||
extern int tiger_renderer_enable_caching(tiger_renderer *tr,int enable); | extern int tiger_renderer_enable_caching(tiger_renderer *tr,int enable); | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 1 lines changed or added | |||