/lvgl-3.6.0/docs/widgets/core/ |
D | textarea.md | 5 The Text Area is a [Base object](widgets/obj) with a [Label](/widgets/core/label) and a cursor on i… 15 - `LV_PART_CURSOR` Marks the position where the characters are inserted. The cursor's area is alway… 16 …lock cursor can be created by adding a background color and background opacity to `LV_PART_CURSOR`… 17 The `anim_time` style property sets the cursor's blink time. 24 You can insert text or characters to the current cursor's position with: 39 To delete a character from the left of the current cursor position use `lv_textarea_del_char(textar… 42 ### Move the cursor 44 The cursor position can be modified directly like `lv_textarea_set_cursor_pos(textarea, 10)`. 48 You can step the cursor with 54 If `lv_textarea_set_cursor_click_pos(textarea, true)` is applied the cursor will jump to the positi… [all …]
|
/lvgl-3.6.0/src/widgets/ |
D | lv_textarea.c | 139 lv_label_ins_text(ta->label, ta->cursor.pos, letter_buf); /*Insert the character*/ in lv_textarea_add_char() 149 _lv_txt_ins(ta->pwd_tmp, ta->cursor.pos, (const char *)letter_buf); in lv_textarea_add_char() 190 lv_label_ins_text(ta->label, ta->cursor.pos, txt); in lv_textarea_add_text() 199 _lv_txt_ins(ta->pwd_tmp, ta->cursor.pos, txt); in lv_textarea_add_text() 216 uint32_t cur_pos = ta->cursor.pos; in lv_textarea_del_char() 228 _lv_txt_cut(label_txt, ta->cursor.pos - 1, 1); in lv_textarea_del_char() 241 _lv_txt_cut(ta->pwd_tmp, ta->cursor.pos - 1, 1); in lv_textarea_del_char() 249 lv_textarea_set_cursor_pos(obj, ta->cursor.pos - 1); in lv_textarea_del_char() 349 if((uint32_t)ta->cursor.pos == (uint32_t)pos) return; in lv_textarea_set_cursor_pos() 357 ta->cursor.pos = pos; in lv_textarea_set_cursor_pos() [all …]
|
D | lv_textarea.h | 58 } cursor; member
|
/lvgl-3.6.0/examples/widgets/chart/ |
D | lv_example_chart_6.c | 6 static lv_chart_cursor_t * cursor; variable 17 lv_chart_set_cursor_point(obj, cursor, NULL, last_id); in event_cb() 72 …cursor = lv_chart_add_cursor(chart, lv_palette_main(LV_PALETTE_BLUE), LV_DIR_LEFT | LV_DIR_BOTTOM); in lv_example_chart_6()
|
D | lv_example_chart_6.py | 19 … self.cursor = chart.add_cursor(lv.palette_main(lv.PALETTE.BLUE), lv.DIR.LEFT | lv.DIR.BOTTOM) 48 chart.set_cursor_point(self.cursor, None, self.last_id)
|
D | index.rst | 33 Show cursor on the clicked point
|
/lvgl-3.6.0/src/extra/widgets/chart/ |
D | lv_chart.c | 453 lv_chart_cursor_t * cursor = _lv_ll_ins_head(&chart->cursor_ll); in lv_chart_add_cursor() local 454 LV_ASSERT_MALLOC(cursor); in lv_chart_add_cursor() 455 if(cursor == NULL) return NULL; in lv_chart_add_cursor() 457 cursor->pos.x = LV_CHART_POINT_NONE; in lv_chart_add_cursor() 458 cursor->pos.y = LV_CHART_POINT_NONE; in lv_chart_add_cursor() 459 cursor->point_id = LV_CHART_POINT_NONE; in lv_chart_add_cursor() 460 cursor->pos_set = 0; in lv_chart_add_cursor() 461 cursor->color = color; in lv_chart_add_cursor() 462 cursor->dir = dir; in lv_chart_add_cursor() 464 return cursor; in lv_chart_add_cursor() [all …]
|
D | lv_chart.h | 339 void lv_chart_set_cursor_pos(lv_obj_t * chart, lv_chart_cursor_t * cursor, lv_point_t * pos); 348 void lv_chart_set_cursor_point(lv_obj_t * chart, lv_chart_cursor_t * cursor, lv_chart_series_t * se… 357 lv_point_t lv_chart_get_cursor_point(lv_obj_t * chart, lv_chart_cursor_t * cursor);
|
/lvgl-3.6.0/docs/widgets/extra/ |
D | chart.md | 118 A cursor can be added with `lv_chart_cursor_t * c1 = lv_chart_add_cursor(chart, color, dir);`. 119 …T/DOWN/HOR/VER/ALL` or their OR-ed values to tell in which direction(s) should the cursor be drawn. 121 `lv_chart_set_cursor_pos(chart, cursor, &point)` sets the position of the cursor. 122 …iable. E.g. `lv_point_t point = {10, 20};`. If the chart is scrolled the cursor will remain in the… 124 …point_out)` gets the coordinate of a given point. It's useful to place the cursor at a given point. 126 …_point(chart, cursor, series, point_id)` sticks the cursor at a point. If the point's position cha… 155 - `LV_CHART_DRAW_PART_CURSOR` Used on cursor lines and points.
|
D | spinbox.md | 19 …pos(spinbox, 1)` sets the cursor to a specific digit to change on increment/decrement. For example… 39 - `LV_KEY_LEFT/RIGHT` With *Keypad* move the cursor left/right. With *Encoder* decrement/increment …
|
D | keyboard.md | 46 - `LV_SYMBOL_LEFT` Move the cursor left. 47 - `LV_SYMBOL_RIGHT` Move the cursor right.
|
/lvgl-3.6.0/src/extra/widgets/spinbox/ |
D | lv_spinbox.c | 392 if(txt[spinbox->ta.cursor.pos] == '.') { in lv_spinbox_event() 395 else if(spinbox->ta.cursor.pos == (uint32_t)txt_len) { in lv_spinbox_event() 398 else if(spinbox->ta.cursor.pos == 0 && spinbox->range_min < 0) { in lv_spinbox_event() 403 uint16_t cp = spinbox->ta.cursor.pos; in lv_spinbox_event() 405 if(spinbox->ta.cursor.pos > spinbox->dec_point_pos && spinbox->dec_point_pos != 0) cp--; in lv_spinbox_event()
|
/lvgl-3.6.0/docs/_static/css/ |
D | custom.css | 28 cursor: pointer; 126 cursor: pointer;
|
/lvgl-3.6.0/src/hal/ |
D | lv_hal_indev.h | 179 struct _lv_obj_t * cursor; /**< Cursor for LV_INPUT_TYPE_POINTER*/ member
|
/lvgl-3.6.0/docs/overview/ |
D | indev.md | 17 Pointer input devices (like a mouse) can have a cursor. 24 lv_obj_t * cursor_obj = lv_img_create(lv_scr_act()); /*Create an image object for the cursor … 29 Note that the cursor object should have `lv_obj_clear_flag(cursor_obj, LV_OBJ_FLAG_CLICKABLE)`.
|
D | file-system.md | 27 drv.seek_cb = my_seek_cb; /*Callback to seek in a file (Move cursor) */ 28 drv.tell_cb = my_tell_cb; /*Callback to tell the cursor position */
|
D | layer.md | 56 The `layer_sys` is also used for similar purposes in LVGL. For example, it places the mouse cursor …
|
D | object.md | 151 …But, the *system layer* is restricted to system-level things (e.g. mouse cursor will be placed the… 193 - `LV_PART_CURSOR` Mark a specific place e.g. text area's or chart's cursor
|
D | event.md | 71 - `LV_EVENT_PRESS_LOST` An object is still being pressed but slid cursor/finger off of the object
|
D | style.md | 116 - `LV_PART_CURSOR` Mark a specific place e.g. text area's or chart's cursor
|
/lvgl-3.6.0/src/core/ |
D | lv_indev.c | 200 indev->cursor = cur_obj; in lv_indev_set_cursor() 201 lv_obj_set_parent(indev->cursor, lv_disp_get_layer_sys(indev->driver->disp)); in lv_indev_set_cursor() 202 …lv_obj_set_pos(indev->cursor, indev->proc.types.pointer.act_point.x, indev->proc.types.pointer.act… in lv_indev_set_cursor() 203 lv_obj_clear_flag(indev->cursor, LV_OBJ_FLAG_CLICKABLE); in lv_indev_set_cursor() 204 lv_obj_add_flag(indev->cursor, LV_OBJ_FLAG_IGNORE_LAYOUT | LV_OBJ_FLAG_FLOATING); in lv_indev_set_cursor() 372 if(i->cursor != NULL && in indev_pointer_proc() 374 lv_obj_set_pos(i->cursor, data->point.x, data->point.y); in indev_pointer_proc()
|
/lvgl-3.6.0/src/extra/libs/tiny_ttf/ |
D | stb_truetype_htcw.h | 552 int cursor; member 1196 if(b->cursor >= b->size) in stbtt__buf_get8() 1199 long pos = (long)(b->cursor + b->offset); in stbtt__buf_get8() 1203 ++b->cursor; in stbtt__buf_get8() 1206 return b->data[b->cursor++]; in stbtt__buf_get8() 1213 if(b->cursor >= b->size) in stbtt__buf_peek8() 1216 long pos = (long)(b->cursor + b->offset); in stbtt__buf_peek8() 1222 return b->data[b->cursor]; in stbtt__buf_peek8() 1230 b->cursor = (o > b->size || o < 0) ? b->size : o; in stbtt__buf_seek() 1235 stbtt__buf_seek(b, b->cursor + o); in stbtt__buf_skip() [all …]
|
/lvgl-3.6.0/docs/porting/ |
D | indev.md | 50 To set a mouse cursor use `lv_indev_set_cursor(my_indev, &img_cursor)`. (`my_indev` is the return v…
|
/lvgl-3.6.0/docs/ |
D | CHANGELOG.md | 18 - fix(ime_pinyin): keep cursor in the textarea when a candidate is pressed [`4731`](https://github.… 563 - fix(theme): in the basic theme show the textarea cursor only in focuses state [`bb03fb1`](https:/… 961 - feat(spinbox ) add function to set cursor to specific position [`2314`](https://github.com/lvgl/l… 1087 - fix(chart) fixed point-following cursor during vertical scroll in charts [`2400`](https://github.… 1088 - fix(chart) fixed cursor positioning with large Y rescaling without LV_USE_LARGE_COORD [`2399`](ht… 1112 - fix(textarea) style update in oneline mode + improve sroll to cursor [`60d9a5e`](https://github.c… 1147 - fix(textarea) various cursor drawing fixes [`273a0eb`](https://github.com/lvgl/lvgl/commit/273a0e… 1193 - fix(chart) fix sending LV_EVENT_DRAW_PART_BEGIN/END for the cursor [`34b8cd9`](https://github.com… 1240 - fix(textarea) allow using cursor with not full bg_opa [`c9d3965`](https://github.com/lvgl/lvgl/co… 1542 - fix(textarea) style update in oneline mode + improve scroll to cursor [all …]
|
/lvgl-3.6.0/scripts/ |
D | Doxyfile | 1546 # <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down 1548 # using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel 1549 # the search. The filter options can be selected when the cursor is inside the 1550 # search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
|