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
01e4a449
Commit
01e4a449
authored
Dec 30, 2016
by
Kiss-Vamosi Gabor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv_label text_static and text_array added
parent
72948cda
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
lv_label.c
lv_objx/lv_label.c
+0
-0
lv_label.h
lv_objx/lv_label.h
+5
-2
No files found.
lv_objx/lv_label.c
View file @
01e4a449
This diff is collapsed.
Click to expand it.
lv_objx/lv_label.h
View file @
01e4a449
...
...
@@ -60,8 +60,9 @@ typedef struct
/*New data for this type */
char
*
txt
;
lv_label_long_mode_t
long_mode
;
char
dot_tmp
[
LV_LABEL_DOT_NUM
+
10
];
/*Store character which are replaced with dots*/
uint16_t
dot_end
;
/*The text end in dot mode*/
char
dot_tmp
[
LV_LABEL_DOT_NUM
];
/*Store character which are replaced with dots*/
uint16_t
dot_end
;
/* The text end in dot mode*/
uint8_t
static_txt
:
1
;
/* Flag to indicate the text is static*/
}
lv_label_ext_t
;
/**********************
...
...
@@ -73,6 +74,8 @@ bool lv_label_signal(lv_obj_t * label, lv_signal_t sign, void * param);
lv_labels_t
*
lv_labels_get
(
lv_labels_builtin_t
style
,
lv_labels_t
*
copy
);
void
lv_label_set_text
(
lv_obj_t
*
label
,
const
char
*
text
);
void
lv_label_set_text_array
(
lv_obj_t
*
label
,
const
char
*
array
,
uint16_t
size
);
void
lv_label_set_text_static
(
lv_obj_t
*
label
,
const
char
*
text
);
void
lv_label_set_long_mode
(
lv_obj_t
*
label
,
lv_label_long_mode_t
long_mode
);
const
char
*
lv_label_get_text
(
lv_obj_t
*
label
);
lv_label_long_mode_t
lv_label_get_long_mode
(
lv_obj_t
*
label
);
...
...
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