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
349109a4
Commit
349109a4
authored
Jun 13, 2017
by
Gabor
Committed by
Kiss-Vamosi Gabor
Jul 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv_app_kb: LV_APP_KB_MODE_ANIM added
parent
b7445f23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
lv_app_kb.c
lv_app/lv_app_util/lv_app_kb.c
+14
-2
lv_app_kb.h
lv_app/lv_app_util/lv_app_kb.h
+5
-4
lv_conf_templ.h
lv_conf_templ.h
+1
-1
No files found.
lv_app/lv_app_util/lv_app_kb.c
View file @
349109a4
...
...
@@ -15,6 +15,9 @@
/*********************
* DEFINES
*********************/
#ifndef LV_APP_KB_ANIM_TIME
#define LV_APP_KB_ANIM_TIME 300
/*ms*/
#endif
/**********************
* TYPEDEFS
...
...
@@ -157,6 +160,11 @@ lv_obj_t * lv_app_kb_open(lv_obj_t * ta, lv_app_kb_mode_t mode, void (*close)(lv
lv_ta_set_cursor_show
(
kb_ta
,
true
);
}
if
(
kb_mode
&
LV_APP_KB_MODE_ANIM
)
{
lv_obj_anim
(
kb_btnm
,
LV_ANIM_FLOAT_BOTTOM
|
ANIM_IN
,
LV_APP_KB_ANIM_TIME
,
0
,
NULL
);
}
return
kb_btnm
;
}
...
...
@@ -185,8 +193,12 @@ void lv_app_kb_close(bool ok)
if
(
kb_mode
&
LV_APP_KB_MODE_CURSOR_MANAGE
)
{
lv_ta_set_cursor_show
(
kb_ta
,
false
);
}
lv_obj_del
(
kb_btnm
);
if
(
kb_mode
&
LV_APP_KB_MODE_ANIM
)
{
lv_obj_anim
(
kb_btnm
,
LV_ANIM_FLOAT_BOTTOM
|
ANIM_OUT
,
LV_APP_KB_ANIM_TIME
,
0
,
lv_obj_del
);
}
else
{
lv_obj_del
(
kb_btnm
);
}
kb_btnm
=
NULL
;
kb_ta
=
NULL
;
...
...
lv_app/lv_app_util/lv_app_kb.h
View file @
349109a4
...
...
@@ -21,10 +21,11 @@
**********************/
typedef
enum
{
LV_APP_KB_MODE_TXT
=
0x01
,
LV_APP_KB_MODE_NUM
=
0x02
,
LV_APP_KB_MODE_WIN_RESIZE
=
0x04
,
LV_APP_KB_MODE_CURSOR_MANAGE
=
0x08
,
LV_APP_KB_MODE_TXT
=
0x0001
,
LV_APP_KB_MODE_NUM
=
0x0002
,
LV_APP_KB_MODE_WIN_RESIZE
=
0x0004
,
LV_APP_KB_MODE_CURSOR_MANAGE
=
0x0008
,
LV_APP_KB_MODE_ANIM
=
0x0010
,
}
lv_app_kb_mode_t
;
/**********************
...
...
lv_conf_templ.h
View file @
349109a4
...
...
@@ -198,7 +198,7 @@
/*Keyboard*/
#define USE_LV_APP_KB 1
#if USE_LV_APP_KB != 0
/*No setting
s*/
#define LV_APP_KB_ANIM_TIME 300 /*m
s*/
#endif
/*==================
...
...
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