LV_EVENT_GESTURE, /**< A gesture is detected. Get the gesture with `lv_indev_get_gesture_dir(lv_indev_get_act());` */ LV_EVENT_KEY, /**< A key is sent to the object. Get the key with `lv_indev_get_key(lv_indev_get_act());`*/ LV_EVENT_FOCUSED, /**< The object is ...
uint32_t lv_event_get_key(lv_event_t * e); /** * Get the animation descriptor of a scrolling. Can be used in `LV_EVENT_SCROLL_BEGIN` * @param e pointer to an event * @return the animation that will scroll the object. (can be modified as required) */ lv_anim_t * lv_event...
const lv_area_t * lv_event_get_old_size(lv_event_t * e); /** * Get the key passed as parameter to an event. Can be used in `LV_EVENT_KEY` * @param e pointer to an event * @return the triggering key or NULL if called on an unrelated event */ uint32_t lv_event_get_key...
正常情况下,当开关被点击并且状态发生改变时,触发 LV_EVENT_VALUE_CHANGED事件类型。也就是说可以在 LV_EVENT_VALUE_CHANGED 事件类型中处理事件,比如:lv_obj_add_event_cb(switch, event_handler, LV_EVENT_VALUE_CHANGED, NULL); 4.4 按键控制 LV_KEY_UP/RIGHT 开 ...
84 LV_EVENT_DRAG_END, 85 LV_EVENT_DRAG_THROW_BEGIN, 86 LV_EVENT_KEY, 87 LV_EVENT_FOCUSED, 88 LV_EVENT_DEFOCUSED, 89 LV_EVENT_VALUE_CHANGED, 90 LV_EVENT_INSERT, 91 LV_EVENT_REFRESH, 92 LV_EVENT_APPLY, 93 LV_EVENT_CANCEL, 94 LV_EVENT_DELETE, 95 }; 96 typedef uint8_...
#define LV_LOG_TRACE_EVENT 1 #define LV_LOG_TRACE_OBJ_CREATE 1 #define LV_LOG_TRACE_LAYOUT 1 #define LV_LOG_TRACE_ANIM 1 #define LV_LOG_TRACE_CACHE 1 #endif /*LV_USE_LOG*/ /*--- * Asserts *---*/ /*Enable asserts if an operation is failed or an invalid data...
else if(code == LV_EVENT_KEY) { uint32_t c = *((uint32_t *)lv_event_get_param(e)); /*uint32_t because can be UTF-8*/ if(c == LV_KEY_RIGHT) lv_textarea_cursor_right(obj); else if(c == LV_KEY_LEFT)
2.1.1196 Part 1 Section 19.7.48, ST_TLTriggerEvent (Trigger Event) 2.1.1197 Part 1 Section 19.7.55, ST_ViewType (List of View Types) 2.1.1198 Part 1 Section 20.1.2.2.1, bldChart (Build Chart) 2.1.1199 Part 1 Section 20.1.2.2.2, bldDgm (Build Diagram) 2.1.1200 ...
x,y=0,0# 设置各个方向移动whileTrue:foreventinpygame.event.get():ifevent.type==pygame.QUIT:#退出(处理了框体右上角x)exit()ifevent.type==pygame.KEYDOWN:# 按下ifevent.key==pygame.K_LEFT:x-=10elif event.key==pygame.K_RIGHT:x+=10elif event.key==pygame.K_UP:y-=10elif event.key=...
2.1.1237 Part 4 Section 4.8.52, ST_TLTriggerEvent (Trigger Event) 2.1.1238 Part 4 Section 4.8.59, ST_ViewType (List of View Types) 2.1.1239 Part 4 Section 4.8.61, ST_WebEncoding (Web Encoding) 2.1.1240 Part 4 Section 5.1.2.1.1, bldChart (Build Chart) 2.1.1241 Part...