BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
8fc7c26a
Commit
8fc7c26a
authored
Jun 13, 2017
by
Gabor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ta: lv_ta_get_label() added
parent
fbc45518
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
lv_ta.c
lv_objx/lv_ta.c
+15
-2
lv_ta.h
lv_objx/lv_ta.h
+7
-0
No files found.
lv_objx/lv_ta.c
View file @
8fc7c26a
...
...
@@ -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
...
...
lv_objx/lv_ta.h
View file @
8fc7c26a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment