Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 25 of 33) sorted by relevance

12

/lvgl-latest/examples/widgets/chart/
Dlv_example_chart_6.c6 static lv_chart_cursor_t * cursor; variable
15 lv_chart_set_cursor_point(obj, cursor, NULL, last_id); in value_changed_event_cb()
34cursor = lv_chart_add_cursor(chart, lv_palette_main(LV_PALETTE_BLUE), LV_DIR_LEFT | LV_DIR_BOTTOM); in lv_example_chart_6()
Dindex.rst33 Show cursor on the clicked point
/lvgl-latest/src/widgets/textarea/
Dlv_textarea.c247 lv_label_ins_text(ta->label, ta->cursor.pos, letter_buf); /*Insert the character*/ in lv_textarea_add_char()
257 lv_text_ins(ta->pwd_tmp, ta->cursor.pos, (const char *)letter_buf); in lv_textarea_add_char()
298 lv_label_ins_text(ta->label, ta->cursor.pos, txt); in lv_textarea_add_text()
307 lv_text_ins(ta->pwd_tmp, ta->cursor.pos, txt); in lv_textarea_add_text()
324 uint32_t cur_pos = ta->cursor.pos; in lv_textarea_delete_char()
336 lv_text_cut(label_txt, ta->cursor.pos - 1, 1); in lv_textarea_delete_char()
349 lv_text_cut(ta->pwd_tmp, ta->cursor.pos - 1, 1); in lv_textarea_delete_char()
357 lv_textarea_set_cursor_pos(obj, ta->cursor.pos - 1); in lv_textarea_delete_char()
456 if((uint32_t)ta->cursor.pos == (uint32_t)pos) return; in lv_textarea_set_cursor_pos()
464 ta->cursor.pos = pos; in lv_textarea_set_cursor_pos()
[all …]
Dlv_textarea_private.h49 } cursor; member
/lvgl-latest/docs/details/integration/driver/
Duefi.rst72 lv_obj_t* cursor = NULL;
93 // Create an image that can be used as cursor
94 cursor = lv_image_create(lv_layer_top());
95 lv_image_set_src(cursor, "E:cursor.png");
104 lv_indev_set_cursor(indev, cursor);
Dopengles.rst62 /* add a cursor to the mouse indev */
120 /* add a cursor to the mouse indev */
/lvgl-latest/docs/details/widgets/
Dtextarea.rst11 The Text Area is a :ref:`base_widget_overview` with a :ref:`lv_label` and a cursor on
35 inserted. The cursor's area is always the bounding box of the current
36 character. A block cursor can be created by adding a background color
38 a "bar" cursor leave the cursor transparent and set a left border. The
39 ``anim_time`` style property sets the cursor's blink time.
53 You can insert text or characters to the current cursor's position with:
78 To delete the character to the left of the current cursor position, use
83 Moving the cursor
86 The cursor position can be modified programmatically using
88 the zero-based index of the character the cursor should be placed in front of.
[all …]
Dchart.rst104 - Each cursor (if there are any):
106 - The most recent cursor added appears on top.
133 the appearance of the cursor's "point" showing its location. If either ``width``
134 or ``height`` are set to 0, only the cursor's lines are drawn.
323 A new cursor is initially given position :c:macro:`LV_CHART_POINT_NONE` which causes
324 it to be hidden. To show the cursor, its location must be set by you
327 You can hide a cursor without removing it from the chart by using
331 A cursor can be added with ``lv_chart_cursor_t * c1 = lv_chart_add_cursor(chart, color, dir);``.
336 :cpp:expr:`lv_chart_set_cursor_pos(chart, cursor, &point)` sets the position of
337 the cursor to an arbitrary point on the chart. ``&point`` is a pointer to an
[all …]
Dspinbox.rst38 - :cpp:expr:`lv_spinbox_set_cursor_pos(spinbox, 1)` sets the cursor to a specific
39 digit to change on increment/decrement. Position '0' sets the cursor to
87 - ``LV_KEY_LEFT/RIGHT`` With *Keypad* move the cursor left/right. With
Dkeyboard.rst90 - :c:macro:`LV_SYMBOL_LEFT` Move cursor left.
91 - :c:macro:`LV_SYMBOL_RIGHT` Move cursor right.
/lvgl-latest/src/widgets/chart/
Dlv_chart.c430 lv_chart_cursor_t * cursor = lv_ll_ins_head(&chart->cursor_ll); in lv_chart_add_cursor() local
431 LV_ASSERT_MALLOC(cursor); in lv_chart_add_cursor()
432 if(cursor == NULL) return NULL; in lv_chart_add_cursor()
434 lv_point_set(&cursor->pos, LV_CHART_POINT_NONE, LV_CHART_POINT_NONE); in lv_chart_add_cursor()
435 cursor->point_id = LV_CHART_POINT_NONE; in lv_chart_add_cursor()
436 cursor->pos_set = 0; in lv_chart_add_cursor()
437 cursor->color = color; in lv_chart_add_cursor()
438 cursor->dir = dir; in lv_chart_add_cursor()
440 return cursor; in lv_chart_add_cursor()
443 void lv_chart_set_cursor_pos(lv_obj_t * chart, lv_chart_cursor_t * cursor, lv_point_t * pos) in lv_chart_set_cursor_pos() argument
[all …]
Dlv_chart.h229 void lv_chart_set_cursor_pos(lv_obj_t * chart, lv_chart_cursor_t * cursor, lv_point_t * pos);
238 void lv_chart_set_cursor_point(lv_obj_t * chart, lv_chart_cursor_t * cursor, lv_chart_series_t * se…
247 lv_point_t lv_chart_get_cursor_point(lv_obj_t * chart, lv_chart_cursor_t * cursor);
/lvgl-latest/src/widgets/spinbox/
Dlv_spinbox.c344 if(txt[spinbox->ta.cursor.pos] == '.') { in lv_spinbox_event()
348 else if(spinbox->ta.cursor.pos == (uint32_t)txt_len) { in lv_spinbox_event()
352 else if(spinbox->ta.cursor.pos == 0 && spinbox->range_min < 0) { in lv_spinbox_event()
357 uint32_t cp = spinbox->ta.cursor.pos; in lv_spinbox_event()
358 if(spinbox->ta.cursor.pos > spinbox->dec_point_pos && spinbox->dec_point_pos != 0) cp--; in lv_spinbox_event()
/lvgl-latest/src/others/xml/parsers/
Dlv_xml_chart_parser.c119 lv_chart_cursor_t * cursor = lv_xml_state_get_item(state); in lv_xml_chart_cursor_apply() local
130 lv_chart_set_cursor_pos(chart, cursor, &p); in lv_xml_chart_cursor_apply()
/lvgl-latest/docs/_static/css/
Dcustom.css28 cursor: pointer;
126 cursor: pointer;
/lvgl-latest/src/indev/
Dlv_indev_private.h111 lv_obj_t * cursor; /**< Cursor for LV_INPUT_TYPE_POINTER*/ member
Dlv_indev.c446 indev->cursor = cur_obj; in lv_indev_set_cursor()
447 lv_obj_set_parent(indev->cursor, lv_display_get_layer_sys(indev->disp)); in lv_indev_set_cursor()
448 lv_obj_set_pos(indev->cursor, indev->pointer.act_point.x, indev->pointer.act_point.y); in lv_indev_set_cursor()
449 lv_obj_remove_flag(indev->cursor, LV_OBJ_FLAG_CLICKABLE); in lv_indev_set_cursor()
450 lv_obj_add_flag(indev->cursor, LV_OBJ_FLAG_IGNORE_LAYOUT | LV_OBJ_FLAG_FLOATING); in lv_indev_set_cursor()
533 return indev->cursor; in lv_indev_get_cursor()
723 if(i->cursor != NULL && in indev_pointer_proc()
725 lv_obj_set_pos(i->cursor, data->point.x, data->point.y); in indev_pointer_proc()
/lvgl-latest/src/drivers/wayland/
Dlv_wayland.c354 const char * cursor = "left_ptr"; in pointer_handle_enter() local
381 cursor = "top_left_corner"; in pointer_handle_enter()
384 cursor = "top_right_corner"; in pointer_handle_enter()
387 cursor = "top_side"; in pointer_handle_enter()
395 cursor = "bottom_left_corner"; in pointer_handle_enter()
398 cursor = "bottom_right_corner"; in pointer_handle_enter()
401 cursor = "bottom_side"; in pointer_handle_enter()
409 cursor = "top_left_corner"; in pointer_handle_enter()
412 cursor = "bottom_left_corner"; in pointer_handle_enter()
415 cursor = "left_side"; in pointer_handle_enter()
[all …]
/lvgl-latest/src/libs/thorvg/
DtvgLottieBuilder.cpp997 Point cursor = {0.0f, 0.0f}; in updateText() local
1017 if (doc.justify == 1) layout.x += doc.bbox.size.x - (cursor.x * scale); //right aligned in updateText()
1018 …else if (doc.justify == 2) layout.x += (doc.bbox.size.x * 0.5f) - (cursor.x * 0.5f * scale); //ce… in updateText()
1033 cursor.x = 0.0f; in updateText()
1034 cursor.y = (++line * doc.height + totalLineSpacing) / scale; in updateText()
1057 shape->translate(cursor.x, cursor.y); in updateText()
1099 cursor.x += (*s)->style.letterSpacing(frameNo); in updateText()
1106 … translate(&matrix, translation.x / scale + cursor.x, translation.y / scale + cursor.y); in updateText()
1118 cursor.x += glyph->width + doc.tracking; in updateText()
/lvgl-latest/tests/
DCMakeLists.txt338 pkg_check_modules(wayland-cursor REQUIRED wayland-cursor)
341 link_libraries(wayland-client wayland-cursor xkbcommon)
/lvgl-latest/docs/details/integration/driver/touchpad/
Devdev.rst65 You may want to react to a new device being added so that a cursor image can be applied, for exampl…
/lvgl-latest/src/libs/tiny_ttf/
Dstb_truetype_htcw.h551 int cursor; member
1189 if(b->cursor >= b->size) in stbtt__buf_get8()
1192 long pos = (long)(b->cursor + b->offset); in stbtt__buf_get8()
1196 ++b->cursor; in stbtt__buf_get8()
1199 return b->data[b->cursor++]; in stbtt__buf_get8()
1206 if(b->cursor >= b->size) in stbtt__buf_peek8()
1209 long pos = (long)(b->cursor + b->offset); in stbtt__buf_peek8()
1215 return b->data[b->cursor]; in stbtt__buf_peek8()
1223 b->cursor = (o > b->size || o < 0) ? b->size : o; in stbtt__buf_seek()
1228 stbtt__buf_seek(b, b->cursor + o); in stbtt__buf_skip()
[all …]
/lvgl-latest/src/drivers/windows/
Dlv_windows_input.c717 label_object->coords.x1 + textarea->cursor.area.x1; in lv_windows_keypad_device_window_message_handler()
719 label_object->coords.y1 + textarea->cursor.area.y1; in lv_windows_keypad_device_window_message_handler()
/lvgl-latest/docs/details/main-components/
Dindev.rst65 Pointer input devices (like a mouse) can have a cursor.
73 …lv_obj_t * cursor_obj = lv_image_create(lv_screen_active()); /* Create image Widget for cursor. */
77 Note that the cursor object should have
Dfs.rst115 drv.seek_cb = my_seek_cb; /* Callback to seek in a file (Move cursor) */
116 drv.tell_cb = my_tell_cb; /* Callback to tell the cursor position */

12