2018-06-07 15:32:19 +02:00
|
|
|
/**
|
|
|
|
* @file lv_draw_label.h
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LV_DRAW_LABEL_H
|
|
|
|
#define LV_DRAW_LABEL_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*********************
|
|
|
|
* INCLUDES
|
|
|
|
*********************/
|
|
|
|
#include "lv_draw.h"
|
|
|
|
|
|
|
|
/*********************
|
|
|
|
* DEFINES
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* TYPEDEFS
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* GLOBAL PROTOTYPES
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Write a text
|
|
|
|
* @param coords coordinates of the label
|
|
|
|
* @param mask the label will be drawn only in this area
|
|
|
|
* @param style pointer to a style
|
2018-06-14 13:08:19 +02:00
|
|
|
* @param opa_scale scale down all opacities by the factor
|
2018-06-07 15:32:19 +02:00
|
|
|
* @param txt 0 terminated text to write
|
|
|
|
* @param flag settings for the text from 'txt_flag_t' enum
|
|
|
|
* @param offset text offset in x and y direction (NULL if unused)
|
2019-03-27 16:39:37 -04:00
|
|
|
* @param sel_start start index of selected area (-1 if none)
|
|
|
|
* @param sel_end end index of selected area (-1 if none)
|
2018-06-07 15:32:19 +02:00
|
|
|
*/
|
2019-04-04 07:15:40 +02:00
|
|
|
void lv_draw_label(const lv_area_t * coords, const lv_area_t * mask, const lv_style_t * style,
|
|
|
|
lv_opa_t opa_scale, const char * txt, lv_txt_flag_t flag, lv_point_t * offset,
|
|
|
|
int sel_start, int sel_end);
|
2018-06-07 15:32:19 +02:00
|
|
|
|
|
|
|
/**********************
|
|
|
|
* MACROS
|
|
|
|
**********************/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /*LV_DRAW_LABEL_H*/
|