mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
ta: lv_ta_get_label() added
This commit is contained in:
parent
f931d759bb
commit
752a7aa7b5
@ -434,8 +434,8 @@ void lv_ta_set_cursor_show(lv_obj_t * ta, bool show)
|
||||
*====================*/
|
||||
|
||||
/**
|
||||
* Get the text of the i the text area
|
||||
* @param ta obj pointer to a text area object
|
||||
* Get the text of a text area
|
||||
* @param ta pointer to a text area object
|
||||
* @return pointer to the text
|
||||
*/
|
||||
const char * lv_ta_get_txt(lv_obj_t * ta)
|
||||
@ -444,6 +444,19 @@ const char * lv_ta_get_txt(lv_obj_t * ta)
|
||||
return lv_label_get_text(ext->label);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the label of a text area
|
||||
* @param ta pointer to a text area object
|
||||
* @return pointer to the label object
|
||||
*/
|
||||
lv_obj_t * lv_ta_get_label(lv_obj_t * ta)
|
||||
{
|
||||
lv_ta_ext_t * ext = lv_obj_get_ext(ta);
|
||||
return ext->label;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the current cursor position in character index
|
||||
* @param ta pointer to a text area object
|
||||
|
@ -141,6 +141,13 @@ void lv_ta_set_cursor_show(lv_obj_t * ta, bool show);
|
||||
*/
|
||||
const char * lv_ta_get_txt(lv_obj_t * ta);
|
||||
|
||||
/**
|
||||
* Get the label of a text area
|
||||
* @param ta pointer to a text area object
|
||||
* @return pointer to the label object
|
||||
*/
|
||||
lv_obj_t * lv_ta_get_label(lv_obj_t * ta);
|
||||
|
||||
/**
|
||||
* Get the current cursor position in character index
|
||||
* @param ta pointer to a text area object
|
||||
|
Loading…
x
Reference in New Issue
Block a user