1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

minor formatting

This commit is contained in:
Gabor Kiss-Vamosi 2019-05-18 13:48:13 +02:00
parent 432e87bfdf
commit d8edbb8a41

View File

@ -941,6 +941,20 @@ bool lv_obj_is_focused(const lv_obj_t * obj);
* MACROS
**********************/
/**
* Helps to quickly declare an event callback function.
* Will be expanded to: `void <name> (lv_obj_t * obj, lv_event_t e)`
*
* Examples:
* static LV_EVENT_CB_DECLARE(my_event1); //Protoype declaration
*
* static LV_EVENT_CB_DECLARE(my_event1)
* {
* if(e == LV_EVENT_CLICKED) {
* lv_obj_set_hidden(obj ,true);
* }
* }
*/
#define LV_EVENT_CB_DECLARE(name) void name(lv_obj_t * obj, lv_event_t e)
#ifdef __cplusplus