LiVES  3.0.2
Functions
pangotext.c File Reference
#include <stdlib.h>
#include <string.h>
#include "../libweed/weed.h"
#include "../libweed/weed-palettes.h"
#include "../libweed/weed-effects.h"
#include "../libweed/weed-host.h"
#include "main.h"
#include "pangotext.h"
#include "effects-weed.h"
#include <pango/pangocairo.h>

Functions

void layout_to_lives_painter (LingoLayout *layout, lives_painter_t *cr, lives_text_mode_t mode, lives_colRGBA64_t *fg, lives_colRGBA64_t *bg, int dwidth, int dheight, double x_bg, double y_bg, double x_text, double y_text)
 
LingoLayout * layout_nth_message_at_bottom (int n, int width, int height, LiVESWidget *widget, int *linecount)
 
char ** get_font_list (void)
 
LingoLayout * render_text_to_cr (LiVESWidget *widget, lives_painter_t *cr, const char *text, const char *fontname, double size, lives_text_mode_t mode, lives_colRGBA64_t *fg, lives_colRGBA64_t *bg, boolean center, boolean rising, double top, int offs_x, double dwidth, double dheight)
 
weed_plant_t * render_text_to_layer (weed_plant_t *layer, const char *text, const char *fontname, double size, lives_text_mode_t mode, lives_colRGBA64_t *fg_col, lives_colRGBA64_t *bg_col, boolean center, boolean rising, double top)
 
boolean get_srt_text (lives_clip_t *sfile, double xtime)
 
boolean get_sub_text (lives_clip_t *sfile, double xtime)
 
void subtitles_free (lives_clip_t *sfile)
 
boolean subtitles_init (lives_clip_t *sfile, char *fname, lives_subtitle_type_t subtype)
 
boolean save_srt_subtitles (lives_clip_t *sfile, double start_time, double end_time, double offset_time, const char *filename)
 
boolean save_sub_subtitles (lives_clip_t *sfile, double start_time, double end_time, double offset_time, const char *filename)
 

Function Documentation

◆ get_font_list()

char** get_font_list ( void  )

◆ get_srt_text()

boolean get_srt_text ( lives_clip_t sfile,
double  xtime 
)

◆ get_sub_text()

boolean get_sub_text ( lives_clip_t sfile,
double  xtime 
)

◆ layout_nth_message_at_bottom()

LingoLayout* layout_nth_message_at_bottom ( int  n,
int  width,
int  height,
LiVESWidget *  widget,
int *  linecount 
)

◆ layout_to_lives_painter()

void layout_to_lives_painter ( LingoLayout *  layout,
lives_painter_t *  cr,
lives_text_mode_t  mode,
lives_colRGBA64_t fg,
lives_colRGBA64_t bg,
int  dwidth,
int  dheight,
double  x_bg,
double  y_bg,
double  x_text,
double  y_text 
)

◆ render_text_to_cr()

LingoLayout* render_text_to_cr ( LiVESWidget *  widget,
lives_painter_t *  cr,
const char *  text,
const char *  fontname,
double  size,
lives_text_mode_t  mode,
lives_colRGBA64_t fg,
lives_colRGBA64_t bg,
boolean  center,
boolean  rising,
double  top,
int  offs_x,
double  dwidth,
double  dheight 
)

◆ render_text_to_layer()

weed_plant_t* render_text_to_layer ( weed_plant_t *  layer,
const char *  text,
const char *  fontname,
double  size,
lives_text_mode_t  mode,
lives_colRGBA64_t fg_col,
lives_colRGBA64_t bg_col,
boolean  center,
boolean  rising,
double  top 
)

< error occured

◆ save_srt_subtitles()

boolean save_srt_subtitles ( lives_clip_t sfile,
double  start_time,
double  end_time,
double  offset_time,
const char *  filename 
)

◆ save_sub_subtitles()

boolean save_sub_subtitles ( lives_clip_t sfile,
double  start_time,
double  end_time,
double  offset_time,
const char *  filename 
)

◆ subtitles_free()

void subtitles_free ( lives_clip_t sfile)

◆ subtitles_init()

boolean subtitles_init ( lives_clip_t sfile,
char *  fname,
lives_subtitle_type_t  subtype 
)