VLC 4.0.0-dev
Loading...
Searching...
No Matches
text_style_t Struct Reference

Text style. More...

#include <vlc_text_style.h>

Public Types

enum  { STYLE_WRAP_DEFAULT = 0 , STYLE_WRAP_CHAR , STYLE_WRAP_NONE }
 

Data Fields

char * psz_fontname
 The name of the font.
 
char * psz_monofontname
 The name of the mono font.
 
uint16_t i_features
 Feature flags (means non default)
 
uint16_t i_style_flags
 Formatting style flags.
 
float f_font_relsize
 The font size in video height %.
 
int i_font_size
 The font size in pixels.
 
uint32_t i_font_color
 The color of the text in XRGB.
 
uint8_t i_font_alpha
 The transparency of the text.
 
int i_spacing
 The spaceing between glyphs in pixels.
 
uint32_t i_outline_color
 The color of the outline in XRGB.
 
uint8_t i_outline_alpha
 The transparency of the outline.
 
int i_outline_width
 The width of the outline in pixels.
 
uint32_t i_shadow_color
 The color of the shadow in XRGB.
 
uint8_t i_shadow_alpha
 The transparency of the shadow.
 
int i_shadow_width
 The width of the shadow in pixels.
 
uint32_t i_background_color
 The color of the background in XRGB.
 
uint8_t i_background_alpha
 The transparency of the background.
 
enum text_style_t:: { ... }  e_wrapinfo
 

Detailed Description

Text style.

A text style is used to specify the formatting of text. A font renderer can use the supplied information to render the text specified.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
STYLE_WRAP_DEFAULT 

Breaks on whitespace or fallback on char.

STYLE_WRAP_CHAR 

Breaks at character level only.

STYLE_WRAP_NONE 

No line breaks (except explicit ones)

Field Documentation

◆ []

enum { ... } text_style_t::e_wrapinfo

◆ f_font_relsize

float text_style_t::f_font_relsize

The font size in video height %.

Referenced by text_style_Create().

◆ i_background_alpha

uint8_t text_style_t::i_background_alpha

The transparency of the background.

Referenced by text_style_Create().

◆ i_background_color

uint32_t text_style_t::i_background_color

The color of the background in XRGB.

Referenced by text_style_Create().

◆ i_features

uint16_t text_style_t::i_features

Feature flags (means non default)

Referenced by text_style_Create(), text_style_Merge(), vout_OSDSegment(), and vout_OSDSegmentSetNoWrap().

◆ i_font_alpha

uint8_t text_style_t::i_font_alpha

The transparency of the text.

Referenced by text_style_Create(), and vout_OSDSegment().

◆ i_font_color

uint32_t text_style_t::i_font_color

The color of the text in XRGB.

Referenced by text_style_Create(), and vout_OSDSegment().

◆ i_font_size

int text_style_t::i_font_size

The font size in pixels.

Referenced by text_style_Create(), and vout_OSDSegment().

◆ i_outline_alpha

uint8_t text_style_t::i_outline_alpha

The transparency of the outline.

Referenced by text_style_Create(), and vout_OSDSegment().

◆ i_outline_color

uint32_t text_style_t::i_outline_color

The color of the outline in XRGB.

Referenced by text_style_Create().

◆ i_outline_width

int text_style_t::i_outline_width

The width of the outline in pixels.

Referenced by text_style_Create().

◆ i_shadow_alpha

uint8_t text_style_t::i_shadow_alpha

The transparency of the shadow.

Referenced by text_style_Create(), and vout_OSDSegment().

◆ i_shadow_color

uint32_t text_style_t::i_shadow_color

The color of the shadow in XRGB.

Referenced by text_style_Create().

◆ i_shadow_width

int text_style_t::i_shadow_width

The width of the shadow in pixels.

Referenced by text_style_Create().

◆ i_spacing

int text_style_t::i_spacing

The spaceing between glyphs in pixels.

Referenced by text_style_Create().

◆ i_style_flags

uint16_t text_style_t::i_style_flags

Formatting style flags.

Referenced by text_style_Create(), and text_style_Merge().

◆ psz_fontname

char* text_style_t::psz_fontname

The name of the font.

Referenced by text_style_Copy(), text_style_Create(), text_style_Delete(), and text_style_Merge().

◆ psz_monofontname

char* text_style_t::psz_monofontname

The name of the mono font.

Referenced by text_style_Copy(), text_style_Create(), text_style_Delete(), and text_style_Merge().


The documentation for this struct was generated from the following file: