QVisu
Qt-based visualization for smart homes
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
vlc_text_style.h
1 /*****************************************************************************
2  * vlc_text_style.h: text_style_t definition and helpers.
3  *****************************************************************************
4  * Copyright (C) 1999-2010 VLC authors and VideoLAN
5  * $Id: 531411ae607308ad632cd90c63bd70756ebb51df $
6  *
7  * Authors: Derk-Jan Hartman <hartman _AT_ videolan _DOT_ org>
8  * basOS G <noxelia 4t gmail , com>
9  *
10  * This program is free software; you can redistribute it and/or modify it
11  * under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation; either version 2.1 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this program; if not, write to the Free Software Foundation,
22  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24 
25 #ifndef VLC_TEXT_STYLE_H
26 #define VLC_TEXT_STYLE_H 1
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
39 typedef struct
40 {
41  char * psz_fontname;
67  int i_spacing;
68 } text_style_t;
69 
70 /* Style flags for \ref text_style_t */
71 #define STYLE_BOLD 1
72 #define STYLE_ITALIC 2
73 #define STYLE_OUTLINE 4
74 #define STYLE_SHADOW 8
75 #define STYLE_BACKGROUND 16
76 #define STYLE_UNDERLINE 32
77 #define STYLE_STRIKEOUT 64
78 
82 VLC_API text_style_t * text_style_New( void );
83 
87 VLC_API text_style_t * text_style_Copy( text_style_t *, const text_style_t * );
88 
92 VLC_API text_style_t * text_style_Duplicate( const text_style_t * );
93 
97 VLC_API void text_style_Delete( text_style_t * );
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif /* VLC_TEXT_STYLE_H */
104 
char * psz_fontname
Definition: vlc_text_style.h:41
int i_style_flags
Definition: vlc_text_style.h:48
int i_karaoke_background_alpha
Definition: vlc_text_style.h:62
int i_outline_width
Definition: vlc_text_style.h:65
int i_outline_color
Definition: vlc_text_style.h:49
int i_font_color
Definition: vlc_text_style.h:43
int i_background_color
Definition: vlc_text_style.h:57
int i_background_alpha
Definition: vlc_text_style.h:58
Definition: vlc_text_style.h:39
int i_shadow_width
Definition: vlc_text_style.h:66
int i_shadow_alpha
Definition: vlc_text_style.h:54
int i_outline_alpha
Definition: vlc_text_style.h:50
int i_shadow_color
Definition: vlc_text_style.h:53
int i_font_alpha
Definition: vlc_text_style.h:45
int i_karaoke_background_color
Definition: vlc_text_style.h:61
int i_spacing
Definition: vlc_text_style.h:67
int i_font_size
Definition: vlc_text_style.h:42