Lines Matching refs:config
68 if(recognizer->config == NULL) { in lv_indev_set_pinch_up_threshold()
70 recognizer->config = lv_malloc(sizeof(lv_indev_gesture_configuration_t)); in lv_indev_set_pinch_up_threshold()
71 LV_ASSERT(recognizer->config != NULL); in lv_indev_set_pinch_up_threshold()
72 recognizer->config->pinch_down_threshold = LV_GESTURE_PINCH_DOWN_THRESHOLD; in lv_indev_set_pinch_up_threshold()
75 recognizer->config->pinch_up_threshold = threshold; in lv_indev_set_pinch_up_threshold()
83 if(recognizer->config == NULL) { in lv_indev_set_pinch_down_threshold()
85 recognizer->config = lv_malloc(sizeof(lv_indev_gesture_configuration_t)); in lv_indev_set_pinch_down_threshold()
86 LV_ASSERT(recognizer->config != NULL); in lv_indev_set_pinch_down_threshold()
87 recognizer->config->pinch_up_threshold = LV_GESTURE_PINCH_UP_THRESHOLD; in lv_indev_set_pinch_down_threshold()
90 recognizer->config->pinch_down_threshold = threshold; in lv_indev_set_pinch_down_threshold()
216 if(r->config == NULL) { in lv_indev_gesture_detect_pinch()
218 r->config = lv_malloc(sizeof(lv_indev_gesture_configuration_t)); in lv_indev_gesture_detect_pinch()
220 LV_ASSERT(r->config != NULL); in lv_indev_gesture_detect_pinch()
222 r->config->pinch_up_threshold = LV_GESTURE_PINCH_UP_THRESHOLD; in lv_indev_gesture_detect_pinch()
223 r->config->pinch_down_threshold = LV_GESTURE_PINCH_DOWN_THRESHOLD; in lv_indev_gesture_detect_pinch()
265 LV_ASSERT(r->config != NULL); in lv_indev_gesture_detect_pinch()
267 if(r->info->scale > r->config->pinch_up_threshold || in lv_indev_gesture_detect_pinch()
268 r->info->scale < r->config->pinch_down_threshold) { in lv_indev_gesture_detect_pinch()
271 r->scale = r->info->scale - (r->config->pinch_up_threshold - 1.0f); in lv_indev_gesture_detect_pinch()
276 r->scale = r->info->scale + (1.0f - r->config->pinch_down_threshold); in lv_indev_gesture_detect_pinch()
350 conf = recognizer->config; in reset_recognizer()
360 recognizer->config = conf; in reset_recognizer()