mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
minor comment fixes
This commit is contained in:
parent
a5d6881e9e
commit
b047c1318f
@ -429,7 +429,7 @@ void lv_obj_set_design_func(lv_obj_t * obj, lv_design_func_t fp);
|
|||||||
* Allocate a new ext. data for an object
|
* Allocate a new ext. data for an object
|
||||||
* @param obj pointer to an object
|
* @param obj pointer to an object
|
||||||
* @param ext_size the size of the new ext. data
|
* @param ext_size the size of the new ext. data
|
||||||
* @return Normal pointer to the allocated ext
|
* @return pointer to the allocated ext
|
||||||
*/
|
*/
|
||||||
void * lv_obj_allocate_ext_attr(lv_obj_t * obj, uint16_t ext_size);
|
void * lv_obj_allocate_ext_attr(lv_obj_t * obj, uint16_t ext_size);
|
||||||
|
|
||||||
|
@ -36,8 +36,8 @@ typedef struct
|
|||||||
/*New data for this type */
|
/*New data for this type */
|
||||||
const void * src; /*Image source: Pointer to an array or a file or a symbol*/
|
const void * src; /*Image source: Pointer to an array or a file or a symbol*/
|
||||||
|
|
||||||
lv_coord_t w; /*Width of the image (doubled when upscaled) (Handled by the library)*/
|
lv_coord_t w; /*Width of the image (Handled by the library)*/
|
||||||
lv_coord_t h; /*Height of the image (doubled when upscaled) (Handled by the library)*/
|
lv_coord_t h; /*Height of the image (Handled by the library)*/
|
||||||
uint8_t src_type :2; /*See: lv_img_src_t*/
|
uint8_t src_type :2; /*See: lv_img_src_t*/
|
||||||
uint8_t auto_size :1; /*1: automatically set the object size to the image size*/
|
uint8_t auto_size :1; /*1: automatically set the object size to the image size*/
|
||||||
uint8_t chroma_keyed :1; /*1: Chroma keyed image, LV_COLOR_TRANSP (lv_conf.h) pixels will be transparent (Handled by the library)*/
|
uint8_t chroma_keyed :1; /*1: Chroma keyed image, LV_COLOR_TRANSP (lv_conf.h) pixels will be transparent (Handled by the library)*/
|
||||||
@ -70,8 +70,8 @@ void lv_img_set_src(lv_obj_t * img, const void * src_img);
|
|||||||
/**
|
/**
|
||||||
* Obsolete since v5.1. Just for compatibility with v5.0. Will be removed in v6.0.
|
* Obsolete since v5.1. Just for compatibility with v5.0. Will be removed in v6.0.
|
||||||
* Use 'lv_img_set_src()' instead.
|
* Use 'lv_img_set_src()' instead.
|
||||||
* @param img
|
* @param img -
|
||||||
* @param fn
|
* @param fn -
|
||||||
*/
|
*/
|
||||||
static inline void lv_img_set_file(lv_obj_t * img, const char * fn)
|
static inline void lv_img_set_file(lv_obj_t * img, const char * fn)
|
||||||
{
|
{
|
||||||
@ -98,8 +98,8 @@ static inline void lv_img_set_style(lv_obj_t *img, lv_style_t *style)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Obsolete since v5.1. Just for compatibility with v5.0. Will be removed in v6.0
|
* Obsolete since v5.1. Just for compatibility with v5.0. Will be removed in v6.0
|
||||||
* @param img
|
* @param img -
|
||||||
* @param upscale
|
* @param upscale -
|
||||||
*/
|
*/
|
||||||
static inline void lv_img_set_upscale(lv_obj_t * img, bool upcale)
|
static inline void lv_img_set_upscale(lv_obj_t * img, bool upcale)
|
||||||
{
|
{
|
||||||
@ -147,7 +147,7 @@ static inline lv_style_t* lv_img_get_style(lv_obj_t *img)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Obsolete since v5.1. Just for compatibility with v5.0. Will be removed in v6.0
|
* Obsolete since v5.1. Just for compatibility with v5.0. Will be removed in v6.0
|
||||||
* @param img
|
* @param img -
|
||||||
* @return false
|
* @return false
|
||||||
*/
|
*/
|
||||||
static inline bool lv_img_get_upscale(lv_obj_t * img)
|
static inline bool lv_img_get_upscale(lv_obj_t * img)
|
||||||
|
@ -90,8 +90,8 @@ static inline void lv_line_set_style(lv_obj_t *line, lv_style_t *style)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Obsolete since v5.1. Just for compatibility with v5.0. Will be removed in v6.0
|
* Obsolete since v5.1. Just for compatibility with v5.0. Will be removed in v6.0
|
||||||
* @param line
|
* @param line -
|
||||||
* @param upscale
|
* @param upscale -
|
||||||
*/
|
*/
|
||||||
static inline void lv_line_set_upscale(lv_obj_t * line, bool upcale)
|
static inline void lv_line_set_upscale(lv_obj_t * line, bool upcale)
|
||||||
{
|
{
|
||||||
@ -127,7 +127,7 @@ static inline lv_style_t* lv_line_get_style(lv_obj_t *line)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Obsolete since v5.1. Just for compatibility with v5.0. Will be removed in v6.0
|
* Obsolete since v5.1. Just for compatibility with v5.0. Will be removed in v6.0
|
||||||
* @param line
|
* @param line -
|
||||||
* @return false
|
* @return false
|
||||||
*/
|
*/
|
||||||
static inline bool lv_line_get_upscale(lv_obj_t * line)
|
static inline bool lv_line_get_upscale(lv_obj_t * line)
|
||||||
|
@ -80,7 +80,7 @@ void lv_lmeter_set_scale(lv_obj_t * lmeter, uint16_t angle, uint8_t line_cnt);
|
|||||||
* Set the styles of a line meter
|
* Set the styles of a line meter
|
||||||
* @param lmeter pointer to a line meter object
|
* @param lmeter pointer to a line meter object
|
||||||
* @param bg set the style of the line meter
|
* @param bg set the style of the line meter
|
||||||
* */
|
*/
|
||||||
static inline void lv_lmeter_set_style(lv_obj_t *lmeter, lv_style_t *bg)
|
static inline void lv_lmeter_set_style(lv_obj_t *lmeter, lv_style_t *bg)
|
||||||
{
|
{
|
||||||
lv_obj_set_style(lmeter, bg);
|
lv_obj_set_style(lmeter, bg);
|
||||||
|
@ -160,7 +160,7 @@ static inline void lv_page_set_scrl_layout(lv_obj_t * page, lv_layout_t layout)
|
|||||||
* @param page pointer to a page object
|
* @param page pointer to a page object
|
||||||
* @param type which style should be set
|
* @param type which style should be set
|
||||||
* @param style pointer to a style
|
* @param style pointer to a style
|
||||||
* */
|
*/
|
||||||
void lv_page_set_style(lv_obj_t *page, lv_page_style_t type, lv_style_t *style);
|
void lv_page_set_style(lv_obj_t *page, lv_page_style_t type, lv_style_t *style);
|
||||||
|
|
||||||
/*=====================
|
/*=====================
|
||||||
@ -229,7 +229,7 @@ static inline bool lv_page_get_scrl_fit_ver(lv_obj_t * page)
|
|||||||
* @param page pointer to page object
|
* @param page pointer to page object
|
||||||
* @param type which style should be get
|
* @param type which style should be get
|
||||||
* @return style pointer to a style
|
* @return style pointer to a style
|
||||||
* */
|
*/
|
||||||
lv_style_t * lv_page_get_style(lv_obj_t *page, lv_page_style_t type);
|
lv_style_t * lv_page_get_style(lv_obj_t *page, lv_page_style_t type);
|
||||||
|
|
||||||
/*=====================
|
/*=====================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user