BigW Consortium Gitlab

Commit 8fc7c26a by Gabor

ta: lv_ta_get_label() added

parent fbc45518
......@@ -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
......
......@@ -142,6 +142,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
* @return the cursor position
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment