]> git.sesse.net Git - vlc/blobdiff - include/vlc_text_style.h
Improved recognition of selected bookmarks for deletion.
[vlc] / include / vlc_text_style.h
index c7a4d270cef07919d3ff03cb101e21cba0c4b527..d0a112efb5584361dd470249f0bedeceed3d4603 100644 (file)
@@ -1,25 +1,25 @@
 /*****************************************************************************
  * vlc_text_style.h: text_style_t definition and helpers.
  *****************************************************************************
- * Copyright (C) 1999-2010 the VideoLAN team
+ * Copyright (C) 1999-2010 VLC authors and VideoLAN
  * $Id$
  *
  * Authors: Derk-Jan Hartman <hartman _AT_ videolan _DOT_ org>
  *          basOS G <noxelia 4t gmail , com>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 #ifndef VLC_TEXT_STYLE_H
@@ -39,10 +39,11 @@ extern "C" {
 typedef struct
 {
     char *     psz_fontname;      /**< The name of the font */
+    char *     psz_monofontname;  /**< The name of the mono font */
     int        i_font_size;       /**< The font size in pixels */
     int        i_font_color;      /**< The color of the text 0xRRGGBB
                                        (native endianness) */
-    int        i_font_alpha;      /**< The transparency of the text.
+    unsigned   i_font_alpha;      /**< The transparency of the text.
                                        0x00 is fully opaque,
                                        0xFF fully transparent */
     int        i_style_flags;     /**< Formatting style flags */
@@ -75,26 +76,29 @@ typedef struct
 #define STYLE_BACKGROUND  16
 #define STYLE_UNDERLINE   32
 #define STYLE_STRIKEOUT   64
+#define STYLE_HALFWIDTH   128
+
+#define STYLE_DEFAULT_FONT_SIZE 22
 
 /**
  * Create a default text style
  */
-VLC_EXPORT( text_style_t *, text_style_New, ( void ) );
+VLC_API text_style_t * text_style_New( void );
 
 /**
  * Copy a text style into another
  */
-VLC_EXPORT( text_style_t *, text_style_Copy, ( text_style_t *, const text_style_t * ) );
+VLC_API text_style_t * text_style_Copy( text_style_t *, const text_style_t * );
 
 /**
  * Duplicate a text style
  */
-VLC_EXPORT( text_style_t *, text_style_Duplicate, ( const text_style_t * ) );
+VLC_API text_style_t * text_style_Duplicate( const text_style_t * );
 
 /**
  * Delete a text style created by text_style_New or text_style_Duplicate
  */
-VLC_EXPORT( void, text_style_Delete, ( text_style_t * ) );
+VLC_API void text_style_Delete( text_style_t * );
 
 #ifdef __cplusplus
 }