Lines Matching refs:indev
46 static void indev_set_cursor(lv_indev_t * indev, int32_t size);
65 lv_indev_t * indev; in lv_nuttx_touchscreen_create() local
78 indev = touchscreen_init(fd); in lv_nuttx_touchscreen_create()
80 if(indev == NULL) { in lv_nuttx_touchscreen_create()
84 indev_set_cursor(indev, LV_NUTTX_TOUCHSCREEN_CURSOR_SIZE); in lv_nuttx_touchscreen_create()
86 return indev; in lv_nuttx_touchscreen_create()
93 static void indev_set_cursor(lv_indev_t * indev, int32_t size) in indev_set_cursor() argument
95 lv_obj_t * cursor_obj = lv_indev_get_cursor(indev); in indev_set_cursor()
99 lv_indev_set_cursor(indev, NULL); in indev_set_cursor()
115 lv_indev_set_cursor(indev, cursor_obj); in indev_set_cursor()
190 lv_indev_t * indev = (lv_indev_t *) lv_event_get_user_data(e); in touchscreen_delete_cb() local
191 lv_nuttx_touchscreen_t * touchscreen = lv_indev_get_driver_data(indev); in touchscreen_delete_cb()
193 lv_indev_set_driver_data(indev, NULL); in touchscreen_delete_cb()
194 lv_indev_set_read_cb(indev, NULL); in touchscreen_delete_cb()
195 indev_set_cursor(indev, -1); in touchscreen_delete_cb()
208 lv_indev_t * indev = NULL; in touchscreen_init() local
218 touchscreen->indev_drv = indev = lv_indev_create(); in touchscreen_init()
220 lv_indev_set_type(indev, LV_INDEV_TYPE_POINTER); in touchscreen_init()
221 lv_indev_set_read_cb(indev, touchscreen_read); in touchscreen_init()
222 lv_indev_set_driver_data(indev, touchscreen); in touchscreen_init()
223 lv_indev_add_event_cb(indev, touchscreen_delete_cb, LV_EVENT_DELETE, indev); in touchscreen_init()
224 return indev; in touchscreen_init()