Merge pull request #436 from airlonyan/patch-1
Update lv_ta_signal in lv_ta.c
This commit is contained in:
41
README.md
41
README.md
@@ -2,34 +2,23 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
LittlevGL provides everything you need to create a Graphical User Interface (GUI) on embedded systems with easy-to-use graphical elements, beautiful visual effects and low memory footprint.
|
**LittlevGL provides everything you need to create a Graphical User Interface (GUI) on embedded systems with easy-to-use graphical elements, beautiful visual effects and low memory footprint.**
|
||||||
|
https://littlevgl.com
|
||||||
Homepage: https://littlevgl.com
|
|
||||||
|
|
||||||
### Table Of Content
|
|
||||||
* [Key features](#key-features)
|
|
||||||
* [Porting](#porting)
|
|
||||||
* [Project set-up](#project-set-up)
|
|
||||||
* [PC simulator](#pc-simulator)
|
|
||||||
* [Related repositories](#related-repositories)
|
|
||||||
* [Screenshots](#screenshots)
|
|
||||||
* [Contributing](#contributing)
|
|
||||||
* [Donate](#donate)
|
|
||||||
|
|
||||||
## Key features
|
## Key features
|
||||||
* Powerful building blocks: buttons, charts, lists, sliders, images, etc.
|
* **Powerful building blocks** buttons, charts, lists, sliders, images, etc.
|
||||||
* Advanced graphics with animations, anti-aliasing, opacity, smooth scrolling
|
* **Advanced graphics** with animations, anti-aliasing, opacity, smooth scrolling
|
||||||
* Various input devices: touch pad, mouse, keyboard, encoder, buttons, etc.
|
* **Various input devices** touch pad, mouse, keyboard, encoder, buttons, etc.
|
||||||
* Multi-language support with UTF-8 encoding
|
* **Multi-language support** with UTF-8 encoding
|
||||||
* Fully customizable graphical elements
|
* **Fully customizable** graphical elements
|
||||||
* Hardware independent to use with any microcontroller or display
|
* **Hardware independent** to use with any microcontroller or display
|
||||||
* Scalable to operate with little memory (50 kB Flash, 10 kB RAM)
|
* **Scalable** to operate with little memory (50 kB Flash, 10 kB RAM)
|
||||||
* OS, External memory and GPU supported but not required
|
* **OS, External memory and GPU** supported but not required
|
||||||
* Single frame buffer operation even with advances graphical effects
|
* **Single frame buffer** operation even with advances graphical effects
|
||||||
* Written in C for maximal compatibility
|
* **Written in C** for maximal compatibility
|
||||||
* Simulator to develop on PC without embedded hardware
|
* **Simulator** to develop on PC without embedded hardware
|
||||||
* Tutorials, examples, themes for rapid development
|
* **Tutorials, examples, themes** for rapid development
|
||||||
* Documentation and API references online
|
* **Documentation** and API references online
|
||||||
|
|
||||||
## Porting
|
## Porting
|
||||||
In the simplest case you need 5 things:
|
In the simplest case you need 5 things:
|
||||||
|
|||||||
@@ -1102,7 +1102,18 @@ static lv_res_t lv_ta_signal(lv_obj_t * ta, lv_signal_t sign, void * param)
|
|||||||
}
|
}
|
||||||
buf->type[i] = "lv_ta";
|
buf->type[i] = "lv_ta";
|
||||||
}
|
}
|
||||||
|
else if (sign == LV_SIGNAL_DEFOCUS)
|
||||||
|
{
|
||||||
|
lv_cursor_type_t cur_type;
|
||||||
|
cur_type = lv_ta_get_cursor_type(ta);
|
||||||
|
lv_ta_set_cursor_type(ta, cur_type | LV_CURSOR_HIDDEN);
|
||||||
|
}
|
||||||
|
else if (sign == LV_SIGNAL_FOCUS)
|
||||||
|
{
|
||||||
|
lv_cursor_type_t cur_type;
|
||||||
|
cur_type = lv_ta_get_cursor_type(ta);
|
||||||
|
lv_ta_set_cursor_type(ta, cur_type & (~LV_CURSOR_HIDDEN));
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user