Go to the source code of this file.
◆ STYLE_ALPHA_OPAQUE
#define STYLE_ALPHA_OPAQUE 0xFF |
◆ STYLE_ALPHA_TRANSPARENT
#define STYLE_ALPHA_TRANSPARENT 0x00 |
◆ STYLE_BACKGROUND
#define STYLE_BACKGROUND (1 << 4) |
◆ STYLE_BLINK_BACKGROUND
#define STYLE_BLINK_BACKGROUND (1 << 11) |
◆ STYLE_BLINK_FOREGROUND
#define STYLE_BLINK_FOREGROUND (1 << 10) |
◆ STYLE_BOLD
#define STYLE_BOLD (1 << 0) |
◆ STYLE_DEFAULT_FONT_SIZE
#define STYLE_DEFAULT_FONT_SIZE 20 |
◆ STYLE_DEFAULT_REL_FONT_SIZE
#define STYLE_DEFAULT_REL_FONT_SIZE 6.25 |
◆ STYLE_DOUBLEWIDTH
#define STYLE_DOUBLEWIDTH (1 << 9) |
◆ STYLE_FULLY_SET
#define STYLE_FULLY_SET 0xFFFF |
◆ STYLE_HALFWIDTH
#define STYLE_HALFWIDTH (1 << 7) |
◆ STYLE_HAS_BACKGROUND_ALPHA
#define STYLE_HAS_BACKGROUND_ALPHA (1 << 8) |
◆ STYLE_HAS_BACKGROUND_COLOR
#define STYLE_HAS_BACKGROUND_COLOR (1 << 7) |
◆ STYLE_HAS_FLAGS
#define STYLE_HAS_FLAGS (1 << 2) |
◆ STYLE_HAS_FONT_ALPHA
#define STYLE_HAS_FONT_ALPHA (1 << 1) |
◆ STYLE_HAS_FONT_COLOR
#define STYLE_HAS_FONT_COLOR (1 << 0) |
◆ STYLE_HAS_K_BACKGROUND_ALPHA
#define STYLE_HAS_K_BACKGROUND_ALPHA (1 << 10) |
◆ STYLE_HAS_K_BACKGROUND_COLOR
#define STYLE_HAS_K_BACKGROUND_COLOR (1 << 9) |
◆ STYLE_HAS_OUTLINE_ALPHA
#define STYLE_HAS_OUTLINE_ALPHA (1 << 4) |
◆ STYLE_HAS_OUTLINE_COLOR
#define STYLE_HAS_OUTLINE_COLOR (1 << 3) |
◆ STYLE_HAS_SHADOW_ALPHA
#define STYLE_HAS_SHADOW_ALPHA (1 << 6) |
◆ STYLE_HAS_SHADOW_COLOR
#define STYLE_HAS_SHADOW_COLOR (1 << 5) |
◆ STYLE_HAS_WRAP_INFO
#define STYLE_HAS_WRAP_INFO (1 << 11) |
◆ STYLE_ITALIC
#define STYLE_ITALIC (1 << 1) |
◆ STYLE_MONOSPACED
#define STYLE_MONOSPACED (1 << 8) |
◆ STYLE_NO_DEFAULTS
#define STYLE_NO_DEFAULTS 0x0 |
◆ STYLE_OUTLINE
#define STYLE_OUTLINE (1 << 2) |
◆ STYLE_SHADOW
#define STYLE_SHADOW (1 << 3) |
◆ STYLE_STRIKEOUT
#define STYLE_STRIKEOUT (1 << 6) |
◆ STYLE_UNDERLINE
#define STYLE_UNDERLINE (1 << 5) |
◆ text_segment_t
◆ text_segment_ChainDelete()
◆ text_segment_Copy()
◆ text_segment_Delete()
◆ text_segment_New()
◆ text_segment_NewInheritStyle()
◆ text_style_Copy()
◆ text_style_Create()
Create a text style.
Set feature flags as argument if you want to set style defaults
References text_style_t::e_wrapinfo, text_style_t::f_font_relsize, text_style_t::i_background_alpha, text_style_t::i_background_color, text_style_t::i_features, text_style_t::i_font_alpha, text_style_t::i_font_color, text_style_t::i_font_size, text_style_t::i_karaoke_background_alpha, text_style_t::i_karaoke_background_color, text_style_t::i_outline_alpha, text_style_t::i_outline_color, text_style_t::i_outline_width, text_style_t::i_shadow_alpha, text_style_t::i_shadow_color, text_style_t::i_shadow_width, text_style_t::i_spacing, text_style_t::i_style_flags, text_style_t::psz_fontname, text_style_t::psz_monofontname, STYLE_ALPHA_OPAQUE, STYLE_DEFAULT_FONT_SIZE, STYLE_DEFAULT_REL_FONT_SIZE, STYLE_FULLY_SET, STYLE_NO_DEFAULTS, and STYLE_OUTLINE.
Referenced by text_style_New(), and vout_OSDSegment().
◆ text_style_Delete()
◆ text_style_Duplicate()
◆ text_style_Merge()
Merge two styles using non default values.
Set b_override to true if you also want to overwrite non-defaults
References text_style_t::i_features, text_style_t::i_style_flags, MERGE, MERGE_SIZE, text_style_t::psz_fontname, text_style_t::psz_monofontname, strdup(), STYLE_HAS_BACKGROUND_ALPHA, STYLE_HAS_BACKGROUND_COLOR, STYLE_HAS_FONT_ALPHA, STYLE_HAS_FONT_COLOR, STYLE_HAS_K_BACKGROUND_ALPHA, STYLE_HAS_K_BACKGROUND_COLOR, STYLE_HAS_OUTLINE_ALPHA, STYLE_HAS_OUTLINE_COLOR, STYLE_HAS_SHADOW_ALPHA, STYLE_HAS_SHADOW_COLOR, STYLE_HAS_WRAP_INFO, and STYLE_NO_DEFAULTS.
◆ text_style_New()
◆ vlc_html_color()
unsigned int vlc_html_color |
( |
const char * |
psz_value, |
|
|
bool * |
ok |
|
) |
| |
Returns an integer representation of an HTML color.
- Parameters
-
psz_value | An HTML color, which can be either:
- A standard HTML color (red, cyan, ...) as defined in p_html_colors
- An hexadecimal color, of the form [#][AA]RRGGBB
|
ok | If non-null, true will be stored in this pointer to signal a successful conversion |
References i_value, p_html_colors, psz_name, psz_value, and strcasecmp().
◆ i_value
◆ p_html_colors
const { ... } p_html_colors[] |
◆ psz_name