| tiger.h | | tiger.h | |
| | | | |
| skipping to change at line 24 | | skipping to change at line 24 | |
| */ | | */ | |
| | | | |
| #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 1 /**< minor version number of the l | | #define TIGER_VERSION_MINOR 2 /**< 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); | |
| 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_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_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_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); | |
| | | | |
| #ifdef DEBUG | | #ifdef 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 | |
| } | | } | |
| | | | |
End of changes. 3 change blocks. |
| 4 lines changed or deleted | | 6 lines changed or added | |
|