lv_indev_private.h
API reference for lv_indev_private.h
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_indev.h
Summary
Functions
indev/lv_indev_private.h:150function
lv_indev_find_scroll_obj
Find a scrollable object based on the current scroll vector in the indev. In handles scroll propagation to the parent if needed, and scroll directions too.
lv_obj_t * lv_indev_find_scroll_obj(lv_indev_t *indev)| Name | Type | Description |
|---|---|---|
indev | lv_indev_t * | pointer to an indev |
Returns: lv_obj_t * — the found scrollable object or NULL if not found.
Structs
struct
_lv_indev_t
| Member | Type | Description |
|---|---|---|
ext_data | lv_ext_data_t | |
type | lv_indev_type_t | Input device type |
read_cb | lv_indev_read_cb_t | Function pointer to read input device data. |
state | lv_indev_state_t | Current state of the input device. |
prev_state | lv_indev_state_t | Previous state of the input device. |
mode | lv_indev_mode_t | |
long_pr_sent | uint8_t | |
reset_query | uint8_t | |
enabled | uint8_t | |
wait_until_release | uint8_t | |
stop_processing_query | uint8_t | |
timestamp | uint32_t | Timestamp of last event |
pr_timestamp | uint32_t | Pressed time stamp |
longpr_rep_timestamp | uint32_t | Long press repeat time stamp |
driver_data | void * | |
user_data | void * | Pointer to the assigned display |
disp | lv_display_t * | Timer to periodically read the input device |
read_timer | lv_timer_t * | Number of pixels to slide before actually drag the object |
scroll_limit | uint8_t | Drag throw slow-down in [%]. Greater value means faster slow-down |
scroll_throw | uint8_t | Minimum velocity: difference between consecutive points must exceed this (in pixels) to detect gesture speed |
gesture_min_velocity | uint8_t | Minimum distance: total travel from first to current point must exceed this (in pixels) to trigger gesture |
gesture_min_distance | uint8_t | Long press time in milliseconds |
long_press_time | uint16_t | Repeated trigger period in long press [ms] |
long_press_repeat_time | uint16_t | Rotary diff count will be multiplied by this value and divided by 256 |
rotary_sensitivity | int32_t | |
act_point | lv_point_t | Current point of input device. |
last_point | lv_point_t | Last point of input device. |
last_raw_point | lv_point_t | Last point read from read_cb. |
vect | lv_point_t | Difference between act_point and last_point. |
vect_hist | lv_point_t[8] | |
vect_hist_timestamp | uint32_t[8] | |
vect_hist_index | uint8_t | |
scroll_sum | lv_point_t | |
scroll_throw_vect | lv_point_t | |
scroll_throw_vect_ori | lv_point_t | |
act_obj | lv_obj_t * | |
scroll_obj | lv_obj_t * | |
last_pressed | lv_obj_t * | |
last_hovered | lv_obj_t * | |
scroll_area | lv_area_t | |
gesture_sum | lv_point_t | |
diff | int32_t | |
short_click_streak | uint8_t | |
last_short_click_point | lv_point_t | |
last_short_click_timestamp | uint32_t | |
scroll_dir | uint8_t | |
gesture_dir | uint8_t | |
gesture_sent | uint8_t | |
press_moved | uint8_t | |
pressed | uint8_t | |
pointer | struct _lv_indev_t | |
last_state | lv_indev_state_t | |
last_key | uint32_t | |
keypad | struct _lv_indev_t | |
cursor | lv_obj_t * | Cursor for LV_INPUT_TYPE_POINTER |
group | lv_group_t * | Keypad destination group |
btn_points | const lv_point_t * | Array points assigned to the button ()screen will be pressed here by the buttons |
event_list | lv_event_list_t | |
scroll_throw_anim | lv_anim_t * | Key remapping callback |
key_remap_cb | lv_indev_key_remap_cb_t | |
recognizers | lv_indev_gesture_recognizer_t[LV_INDEV_GESTURE_CNT] | |
cur_gesture | lv_indev_gesture_type_t | |
gesture_data | void *[LV_INDEV_GESTURE_CNT] | |
gesture_type | lv_indev_gesture_type_t[LV_INDEV_GESTURE_CNT] |
Macros
LV_INDEV_VECT_HIST_SIZE
#define LV_INDEV_VECT_HIST_SIZE 8Dependencies
Indirect dependencies
lv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_internal.hlv_conf_kconfig.hlv_display.hlv_draw.hlv_draw_arc.hlv_draw_blur.hlv_draw_buf.hlv_draw_image.hlv_draw_label.hlv_draw_line.hlv_draw_rect.hlv_draw_triangle.hlv_event.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_group.hlv_image_decoder.hlv_image_dsc.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_obj.hlv_obj_class.hlv_obj_draw.hlv_obj_event.hlv_obj_pos.hlv_obj_property.hlv_obj_property_names.hlv_obj_scroll.hlv_obj_style.hlv_obj_style_gen.hlv_obj_tree.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_style_properties.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.h
How is this guide?
Last updated on