LiVES  2.4.1-svn
 All Data Structures Namespaces 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 // (c) G. Finch 2002 - 2015
9 
10 #ifndef LIVES_PANGOTEXT_H
11 #define LIVES_PANGOTEXT_H
12 
13 typedef enum {
18 
19 
20 // for future use
21 typedef struct {
25 
26 
27 typedef struct _lives_subtitle_t xlives_subtitle_t;
28 
29 typedef struct _lives_subtitle_t {
30  double start_time;
31  double end_time;
33  long textpos;
37 
38 
39 typedef struct {
41  FILE *tfile;
42  char *text;
43  double last_time;
46  int offset;
48 
49 
50 typedef enum {
55 
56 
57 char **get_font_list(void);
58 
59 weed_plant_t *render_text_to_layer(weed_plant_t *layer, const char *text, const char *fontname,
60  double size, lives_text_mode_t mode, lives_colRGBA32_t *fg_col,
61  lives_colRGBA32_t *bg_col, boolean center, boolean rising, double top);
62 
63 LingoLayout *render_text_to_cr(lives_painter_t *, const char *text, const char *fontname,
64  double size, lives_text_mode_t mode, lives_colRGBA32_t *fg_col, lives_colRGBA32_t *bg_col,
65  boolean center, boolean rising, double top, int start, int width, int height);
66 
67 #endif
68 
lives_text_mode_t
Definition: pangotext.h:50
struct _lives_subtitle_t xlives_subtitle_t
Definition: pangotext.h:27
Definition: main.h:456
xlives_subtitle_t * prev
for future use
Definition: pangotext.h:34
char ** get_font_list(void)
Definition: pangotext.c:82
char * text
Definition: pangotext.h:42
lives_subtitle_t * index
Definition: pangotext.h:44
Definition: pangotext.h:14
Definition: pangotext.h:53
xlives_subtitle_t * next
Definition: pangotext.h:35
long textpos
Definition: pangotext.h:33
lives_colRGB24_t fg
Definition: pangotext.h:22
FILE * tfile
Definition: pangotext.h:41
double end_time
Definition: pangotext.h:31
double start_time
Definition: pangotext.h:30
Definition: pangotext.h:15
lives_colRGB24_t bg
Definition: pangotext.h:23
Definition: pangotext.h:39
weed_plant_t * render_text_to_layer(weed_plant_t *layer, const char *text, const char *fontname, double size, lives_text_mode_t mode, lives_colRGBA32_t *fg_col, lives_colRGBA32_t *bg_col, boolean center, boolean rising, double top)
Definition: pangotext.c:231
Definition: pangotext.h:21
Definition: pangotext.h:51
LingoLayout * render_text_to_cr(lives_painter_t *, const char *text, const char *fontname, double size, lives_text_mode_t mode, lives_colRGBA32_t *fg_col, lives_colRGBA32_t *bg_col, boolean center, boolean rising, double top, int start, int width, int height)
Definition: pangotext.c:138
lives_subtitle_t * current
pointer to current entry in index
Definition: pangotext.h:45
Definition: main.h:450
int offset
offset in frames (default 0)
Definition: pangotext.h:46
double last_time
Definition: pangotext.h:43
Definition: pangotext.h:29
lives_subtitle_type_t type
Definition: pangotext.h:40
lives_subtitle_style_t * style
for future use
Definition: pangotext.h:32
lives_subtitle_type_t
Definition: pangotext.h:13
Definition: pangotext.h:16