LiVES
1.6.4-svn
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
src
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
{
12
SUBTITLE_TYPE_NONE
=0,
13
SUBTITLE_TYPE_SRT
,
14
SUBTITLE_TYPE_SUB
15
}
lives_subtitle_type_t
;
16
17
18
// for future use
19
typedef
struct
{
20
lives_colRGB24_t
fg
;
21
lives_colRGB24_t
bg
;
22
}
lives_subtitle_style_t
;
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
;
30
lives_subtitle_style_t
*
style
;
31
long
textpos
;
32
xlives_subtitle_t
*
prev
;
33
xlives_subtitle_t
*
next
;
34
}
lives_subtitle_t
;
35
36
37
typedef
struct
{
38
lives_subtitle_type_t
type
;
39
FILE *
tfile
;
40
char
*
text
;
41
double
last_time
;
42
lives_subtitle_t
*
index
;
43
lives_subtitle_t
*
current
;
44
int
offset
;
45
}
lives_subtitles_t
;
46
47
48
typedef
enum
{
49
LIVES_TEXT_MODE_FOREGROUND_ONLY
,
50
LIVES_TEXT_MODE_FOREGROUND_AND_BACKGROUND
,
51
LIVES_TEXT_MODE_BACKGROUND_ONLY
52
}
lives_text_mode_t
;
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
Generated on Mon Apr 29 2013 18:34:11 for LiVES by
1.8.1.1