multi-lang: fix function names

This commit is contained in:
Gabor Kiss-Vamosi
2019-01-29 04:41:44 +01:00
parent 855dc44e32
commit fd1e8483a5
4 changed files with 4 additions and 11 deletions

View File

@@ -273,7 +273,7 @@ const char * lv_img_get_file_name(const lv_obj_t * img)
* @param img pointer to an image * @param img pointer to an image
* @return ID of the source * @return ID of the source
*/ */
uint16_t lv_img_get_text_lang(lv_obj_t * img) uint16_t lv_img_get_src_id(lv_obj_t * img)
{ {
#if USE_LV_MULTI_LANG #if USE_LV_MULTI_LANG
lv_img_ext_t * ext = lv_obj_get_ext_attr(img); lv_img_ext_t * ext = lv_obj_get_ext_attr(img);

View File

@@ -94,13 +94,6 @@ static inline void lv_img_set_file(lv_obj_t * img, const char * fn)
(void) fn; (void) fn;
} }
/**
* Set an ID which means a the same source but in different languages
* @param img pointer to an image object
* @param src_id ID of the source
*/
void lv_img_set_src_id(lv_obj_t * img, uint32_t src_id);
/** /**
* Enable the auto size feature. * Enable the auto size feature.
* If enabled the object size will be same as the picture size. * If enabled the object size will be same as the picture size.
@@ -153,7 +146,7 @@ const char * lv_img_get_file_name(const lv_obj_t * img);
* @param img pointer to an image * @param img pointer to an image
* @return ID of the source * @return ID of the source
*/ */
uint16_t lv_img_get_text_lang(lv_obj_t * img); uint16_t lv_img_get_src_id(lv_obj_t * img);
/** /**
* Get the auto size enable attribute * Get the auto size enable attribute

View File

@@ -372,7 +372,7 @@ char * lv_label_get_text(const lv_obj_t * label)
* @param label pointer to a label object * @param label pointer to a label object
* @return ID of the text * @return ID of the text
*/ */
uint16_t lv_label_get_text_lang(lv_obj_t * label) uint16_t lv_label_get_text_id(lv_obj_t * label)
{ {
#if USE_LV_MULTI_LANG #if USE_LV_MULTI_LANG
lv_label_ext_t * ext = lv_obj_get_ext_attr(label); lv_label_ext_t * ext = lv_obj_get_ext_attr(label);

View File

@@ -191,7 +191,7 @@ char * lv_label_get_text(const lv_obj_t * label);
* @param label pointer to a label object * @param label pointer to a label object
* @return ID of the text * @return ID of the text
*/ */
uint16_t lv_label_get_text_lang(lv_obj_t * label); uint16_t lv_label_get_text_id(lv_obj_t * label);
/** /**
* Get the long mode of a label * Get the long mode of a label