LiVES  1.6.4-svn
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
pangotext.h
Go to the documentation of this file.
1 // pangotext.h
2 // text handling code
3 // (c) A. Penkov 2010
4 // pieces of code taken and modified from scribbler.c
5 // released under the GNU GPL 3 or later
6 // see file COPYING or www.gnu.org for details
7 
8 #ifndef LIVES_PANGOTEXT_H
9 #define LIVES_PANGOTEXT_H
10 
11 typedef enum {
16 
17 
18 // for future use
19 typedef struct {
23 
24 
25 typedef struct _lives_subtitle_t xlives_subtitle_t;
26 
27 typedef struct _lives_subtitle_t {
28  double start_time;
29  double end_time;
31  long textpos;
35 
36 
37 typedef struct {
39  FILE *tfile;
40  char *text;
41  double last_time;
44  int offset;
46 
47 
48 typedef enum {
53 
54 
55 char **get_font_list(void);
56 
57 weed_plant_t *render_text_to_layer(weed_plant_t *layer, const char *text, const char *fontname,
58  double size, lives_text_mode_t mode, lives_colRGBA32_t *fg_col,
59  lives_colRGBA32_t *bg_col, gboolean center, gboolean rising, double top);
60 
61 #if 0
62 gboolean render_text_to_layer(weed_plant_t *layer, const char *text, const char *fontname,\
63  double size, lives_text_mode_t mode, lives_colRGBA32_t *fg_col, lives_colRGBA32_t *bg_col,\
64  gboolean center, gboolean rising, double top);
65 #endif
66 
67 #endif
68