VSF Documented
Functions | Variables
scgui.c File Reference
#include "scgui.h"
#include "vsf.h"

Functions

void SC_pfb_clip (SC_tile *clip, int xs, int ys, int xe, int ye, uint16_t colour)
 
int SC_pfb_intersection (SC_tile *dest, SC_ARER *p, int xs, int ys, int xe, int ye)
 计算相交区
 
uint16_t alphaBlend (uint16_t fc, uint16_t bc, uint8_t alpha)
 
void SC_GUI_Init (uint16_t bkc, uint16_t bc, uint16_t fc)
 
void SC_pfb_DrawFill (SC_tile *dest, int xs, int ys, int xe, int ye, uint16_t fc)
 
void SC_pfb_DrawFrame (SC_tile *dest, int xs, int ys, int xe, int ye, int width, uint16_t fc)
 
void SC_pfb_RectFrame (SC_tile *dest, int xs, int ys, int xe, int ye, int width, uint16_t ac, uint16_t bc)
 
void SC_pfb_Image (SC_tile *dest, int xs, int ys, uint8_t alpha, SC_img_t *src)
 
uint32_t lv_txt_utf8_next (const char *txt, uint32_t *i)
 ====================== LVGL字体=====================================
 
void SC_pfb_lv_letter (SC_tile *dest, SC_ARER *align, int xs, int ys, lv_font_glyph_dsc_t *dsc, uint32_t unicode, lv_font_t *font, uint16_t fc, uint16_t bc)
 
void SC_set_font_x_scale (lv_font_t *font, uint16_t Xscale)
 
int SC_pfb_printf (SC_tile *dest, int x, int y, const char *txt, uint16_t fc, uint16_t bc, lv_font_t *font, int width, int line_space, SC_ALIGN align)
 
int16_t sc_sin (int16_t angle)
 
int16_t sc_cos (int16_t angle)
 
uint8_t sc_sqrt (uint32_t num)
 
void SC_pfb_RoundFrame (SC_tile *dest, int xs, int ys, int xe, int ye, int r, int ir, uint16_t ac, uint16_t bc)
 

Variables

SC_GUIgui
 
uint16_t SC_pfb_buf [SC_PFB_BUF_SIZE]
 

Function Documentation

◆ SC_pfb_clip()

void SC_pfb_clip ( SC_tile clip,
int  xs,
int  ys,
int  xe,
int  ye,
uint16_t  colour 
)

fun: pfb分割

◆ SC_pfb_intersection()

int SC_pfb_intersection ( SC_tile dest,
SC_ARER p,
int  xs,
int  ys,
int  xe,
int  ye 
)

计算相交区

◆ alphaBlend()

uint16_t alphaBlend ( uint16_t  fc,
uint16_t  bc,
uint8_t  alpha 
)

◆ SC_GUI_Init()

void SC_GUI_Init ( uint16_t  bkc,
uint16_t  bc,
uint16_t  fc 
)

◆ SC_pfb_DrawFill()

void SC_pfb_DrawFill ( SC_tile dest,
int  xs,
int  ys,
int  xe,
int  ye,
uint16_t  fc 
)

fun: 矩形填充

◆ SC_pfb_DrawFrame()

void SC_pfb_DrawFrame ( SC_tile dest,
int  xs,
int  ys,
int  xe,
int  ye,
int  width,
uint16_t  fc 
)

fun: 空芯矩形

◆ SC_pfb_RectFrame()

void SC_pfb_RectFrame ( SC_tile dest,
int  xs,
int  ys,
int  xe,
int  ye,
int  width,
uint16_t  ac,
uint16_t  bc 
)

◆ SC_pfb_Image()

void SC_pfb_Image ( SC_tile dest,
int  xs,
int  ys,
uint8_t  alpha,
SC_img_t src 
)

fun: 显示图片

◆ lv_txt_utf8_next()

uint32_t lv_txt_utf8_next ( const char *  txt,
uint32_t i 
)

====================== LVGL字体=====================================

◆ SC_pfb_lv_letter()

void SC_pfb_lv_letter ( SC_tile dest,
SC_ARER align,
int  xs,
int  ys,
lv_font_glyph_dsc_t dsc,
uint32_t  unicode,
lv_font_t font,
uint16_t  fc,
uint16_t  bc 
)

◆ SC_set_font_x_scale()

void SC_set_font_x_scale ( lv_font_t font,
uint16_t  Xscale 
)

◆ SC_pfb_printf()

int SC_pfb_printf ( SC_tile dest,
int  x,
int  y,
const char *  txt,
uint16_t  fc,
uint16_t  bc,
lv_font_t font,
int  width,
int  line_space,
SC_ALIGN  align 
)

◆ sc_sin()

int16_t sc_sin ( int16_t  angle)

◆ sc_cos()

int16_t sc_cos ( int16_t  angle)

◆ sc_sqrt()

uint8_t sc_sqrt ( uint32_t  num)

◆ SC_pfb_RoundFrame()

void SC_pfb_RoundFrame ( SC_tile dest,
int  xs,
int  ys,
int  xe,
int  ye,
int  r,
int  ir,
uint16_t  ac,
uint16_t  bc 
)

fun: pfb圆角矩形

Variable Documentation

◆ gui

SC_GUI* gui

◆ SC_pfb_buf