/lvgl-latest/src/core/ |
D | lv_obj_property.c | 26 switch(LV_PROPERTY_ID_TYPE2(prop->id)) { \ 94 static lv_result_t obj_property(lv_obj_t * obj, lv_prop_id_t id, lv_property_t * value, bool set); 113 uint32_t index = LV_PROPERTY_ID_INDEX(value->id); in lv_obj_set_property() 114 if(value->id == LV_PROPERTY_ID_INVALID || index > LV_PROPERTY_ID_ANY) { in lv_obj_set_property() 124 return obj_property(obj, value->id, (lv_property_t *)value, true); in lv_obj_set_property() 139 lv_property_t lv_obj_get_property(lv_obj_t * obj, lv_prop_id_t id) in lv_obj_get_property() argument 144 uint32_t index = LV_PROPERTY_ID_INDEX(id); in lv_obj_get_property() 145 if(id == LV_PROPERTY_ID_INVALID || index > LV_PROPERTY_ID_ANY) { in lv_obj_get_property() 147 value.id = LV_PROPERTY_ID_INVALID; in lv_obj_get_property() 154 value.id = id; in lv_obj_get_property() [all …]
|
D | lv_obj_id_builtin.c | 51 uint32_t id = 0; in lv_obj_assign_id() local 58 obj->id = NULL; in lv_obj_assign_id() 77 id = ++info->obj_count; in lv_obj_assign_id() 79 obj->id = (void *)(lv_uintptr_t)id; in lv_obj_assign_id() 82 void lv_obj_set_id(lv_obj_t * obj, void * id) in lv_obj_set_id() argument 85 if(obj->id) lv_obj_free_id(obj); in lv_obj_set_id() 86 obj->id = id; in lv_obj_set_id() 92 obj->id = NULL; in lv_obj_free_id() 104 lv_snprintf(buf, len, "%s%" LV_PRIu32 "", name, (uint32_t)(lv_uintptr_t)obj->id); in lv_obj_stringify_id()
|
D | lv_obj_property.h | 44 #define LV_PROPERTY_ID_TYPE(id) ((id) >> LV_PROPERTY_TYPE_SHIFT) argument 45 #define LV_PROPERTY_ID_TYPE2(id) ((id) >> LV_PROPERTY_TYPE_SHIFT) argument 46 #define LV_PROPERTY_ID_INDEX(id) ((id) & 0xfffffff) argument 85 lv_prop_id_t id; member 89 lv_prop_id_t id; member 142 lv_prop_id_t id; member 184 lv_property_t lv_obj_get_property(lv_obj_t * obj, lv_prop_id_t id); 193 lv_property_t lv_obj_get_style_property(lv_obj_t * obj, lv_prop_id_t id, uint32_t selector);
|
D | lv_obj.c | 66 .id = LV_PROPERTY_OBJ_PARENT, 71 .id = LV_PROPERTY_OBJ_X, 76 .id = LV_PROPERTY_OBJ_Y, 81 .id = LV_PROPERTY_OBJ_W, 86 .id = LV_PROPERTY_OBJ_H, 91 .id = LV_PROPERTY_OBJ_CONTENT_WIDTH, 96 .id = LV_PROPERTY_OBJ_CONTENT_HEIGHT, 101 .id = LV_PROPERTY_OBJ_LAYOUT, 105 .id = LV_PROPERTY_OBJ_ALIGN, 109 .id = LV_PROPERTY_OBJ_SCROLLBAR_MODE, [all …]
|
/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_obj_property.c | 13 prop.id = LV_PROPERTY_ID_INVALID; in test_obj_property_fail_on_invalid_id() 16 prop.id = LV_PROPERTY_ID_BUILTIN_LAST; /* No widget use this ID */ in test_obj_property_fail_on_invalid_id() 19 prop.id = LV_PROPERTY_OBJ_PARENT + 1; /* Not a valid ID for obj */ in test_obj_property_fail_on_invalid_id() 22 prop.id = LV_PROPERTY_IMAGE_OFFSET_X; /* Not an ID for obj but for image */ in test_obj_property_fail_on_invalid_id() 25 prop.id = LV_PROPERTY_OBJ_PARENT; /* Valid ID */ in test_obj_property_fail_on_invalid_id() 41 prop.id = LV_PROPERTY_STYLE_X; in test_obj_property_set_get_should_match() 48 prop.id = LV_PROPERTY_STYLE_BG_COLOR; in test_obj_property_set_get_should_match() 55 prop.id = LV_PROPERTY_STYLE_TEXT_FONT; in test_obj_property_set_get_should_match() 62 prop.id = LV_PROPERTY_OBJ_FLAG_HIDDEN ; in test_obj_property_set_get_should_match() 68 prop.id = LV_PROPERTY_OBJ_FLAG_CLICKABLE; in test_obj_property_set_get_should_match() [all …]
|
D | test_textarea.c | 143 prop.id = LV_PROPERTY_TEXTAREA_TEXT; in test_textarea_properties() 149 prop.id = LV_PROPERTY_TEXTAREA_PLACEHOLDER_TEXT; in test_textarea_properties() 155 prop.id = LV_PROPERTY_TEXTAREA_CURSOR_POS; in test_textarea_properties() 161 prop.id = LV_PROPERTY_TEXTAREA_CURSOR_CLICK_POS; in test_textarea_properties() 167 prop.id = LV_PROPERTY_TEXTAREA_PASSWORD_MODE; in test_textarea_properties() 173 prop.id = LV_PROPERTY_TEXTAREA_PASSWORD_BULLET; in test_textarea_properties() 179 prop.id = LV_PROPERTY_TEXTAREA_ONE_LINE; in test_textarea_properties() 185 prop.id = LV_PROPERTY_TEXTAREA_ACCEPTED_CHARS; in test_textarea_properties() 191 prop.id = LV_PROPERTY_TEXTAREA_MAX_LENGTH; in test_textarea_properties() 197 prop.id = LV_PROPERTY_TEXTAREA_INSERT_REPLACE; in test_textarea_properties() [all …]
|
D | test_keyboard.c | 50 prop.id = LV_PROPERTY_KEYBOARD_TEXTAREA; in test_keyboard_properties() 56 prop.id = LV_PROPERTY_KEYBOARD_MODE; in test_keyboard_properties() 62 prop.id = LV_PROPERTY_KEYBOARD_POPOVERS; in test_keyboard_properties() 68 prop.id = LV_PROPERTY_KEYBOARD_SELECTED_BUTTON; in test_keyboard_properties()
|
D | test_slider.c | 221 prop.id = LV_PROPERTY_SLIDER_RANGE; in test_slider_properties() 230 prop.id = LV_PROPERTY_SLIDER_VALUE; in test_slider_properties() 237 prop.id = LV_PROPERTY_SLIDER_MODE; in test_slider_properties() 242 prop.id = LV_PROPERTY_SLIDER_LEFT_VALUE; in test_slider_properties() 249 prop.id = LV_PROPERTY_SLIDER_IS_DRAGGED; in test_slider_properties() 253 prop.id = LV_PROPERTY_SLIDER_IS_SYMMETRICAL; in test_slider_properties()
|
/lvgl-latest/demos/smartwatch/ |
D | lv_demo_smartwatch.h | 221 void lv_demo_smartwatch_weather_add_daily(int day, int temp, int id); 233 void lv_demo_smartwatch_weather_add_hourly(int hour, int id, int temp, int humidity, int wind, int … 245 void lv_demo_smartwatch_qr_list_add(uint8_t id, const char * link); 257 lv_obj_t * lv_demo_smartwatch_settings_add_slider(uint16_t id, const char * name, const lv_img_dsc_… 269 lv_obj_t * lv_demo_smartwatch_settings_add_toggle(uint16_t id, const char * name, const lv_img_dsc_… 279 lv_obj_t * lv_demo_smartwatch_settings_add_dropdown(uint16_t id, const char * name, const lv_img_ds… 289 lv_obj_t * lv_demo_smartwatch_settings_add_label(uint16_t id, const char * name, const lv_img_dsc_t…
|
D | lv_demo_smartwatch_settings.h | 55 lv_obj_t * lv_demo_smartwatch_settings_add_slider(uint16_t id, const char * name, const lv_img_dsc_… 67 lv_obj_t * lv_demo_smartwatch_settings_add_toggle(uint16_t id, const char * name, const lv_img_dsc_… 77 lv_obj_t * lv_demo_smartwatch_settings_add_dropdown(uint16_t id, const char * name, const lv_img_ds… 87 lv_obj_t * lv_demo_smartwatch_settings_add_label(uint16_t id, const char * name, const lv_img_dsc_t…
|
D | lv_demo_smartwatch_weather.h | 68 void lv_demo_smartwatch_weather_add_daily(int day, int temp, int id); 80 void lv_demo_smartwatch_weather_add_hourly(int hour, int id, int temp, int humidity, int wind, int …
|
D | lv_demo_smartwatch_weather.c | 30 static void set_weather_icon(lv_obj_t * obj, uint8_t id, bool day); 31 static const lv_img_dsc_t * get_weather_icon(uint8_t id, bool day); 128 void lv_demo_smartwatch_weather_add_daily(int day, int temp, int id) in lv_demo_smartwatch_weather_add_daily() argument 166 set_weather_icon(icon, id, true); in lv_demo_smartwatch_weather_add_daily() 181 void lv_demo_smartwatch_weather_add_hourly(int hour, int id, int temp, int humidity, int wind, int … in lv_demo_smartwatch_weather_add_hourly() argument 215 set_weather_icon(hour_icon, id, true); in lv_demo_smartwatch_weather_add_hourly() 452 static void set_weather_icon(lv_obj_t * obj, uint8_t id, bool day) in set_weather_icon() argument 454 lv_image_set_src(obj, day ? weather_day_icons[id % 8] : weather_night_icons[id % 8]); in set_weather_icon() 457 static const lv_img_dsc_t * get_weather_icon(uint8_t id, bool day) in get_weather_icon() argument 459 return day ? weather_day_icons[id % 8] : weather_night_icons[id % 8]; in get_weather_icon()
|
/lvgl-latest/tests/src/test_cases/ |
D | test_hover.c | 10 char id[32]; member 39 lv_log("Object(ID:%s) hovered %u/%d times.\n", hover->id, hover->counts, TEST_HOVER_COUNTS); in hovered_event_cb() 64 lv_obj_stringify_id(label, label_hovered.id, sizeof(label_hovered.id)); in test_hover_basic() 74 lv_obj_stringify_id(btn, btn_hovered.id, sizeof(btn_hovered.id)); in test_hover_basic()
|
/lvgl-latest/src/drivers/glfw/ |
D | lv_opengles_driver.c | 359 unsigned int id; in lv_opengles_shader_compile() local 360 GL_CALL(id = glCreateShader(type)); in lv_opengles_shader_compile() 362 GL_CALL(glShaderSource(id, 1, &src, NULL)); in lv_opengles_shader_compile() 363 GL_CALL(glCompileShader(id)); in lv_opengles_shader_compile() 366 GL_CALL(glGetShaderiv(id, GL_COMPILE_STATUS, &result)); in lv_opengles_shader_compile() 369 GL_CALL(glGetShaderiv(id, GL_INFO_LOG_LENGTH, &length)); in lv_opengles_shader_compile() 371 GL_CALL(glGetShaderInfoLog(id, length, &length, message)); in lv_opengles_shader_compile() 374 GL_CALL(glDeleteShader(id)); in lv_opengles_shader_compile() 378 return id; in lv_opengles_shader_compile() 423 int id = -1; in lv_opengles_shader_get_uniform_location() local [all …]
|
/lvgl-latest/docs/_static/js/ |
D | custom.js | 6 if(dt.id == document.location.hash.substring(1)) 49 if (child.id) { 51 child.id = 'docs-' + child.id;
|
/lvgl-latest/scripts/ |
D | properties.py | 26 def __init__(self, widget, name, type, index, id): argument 31 self.id = id 53 id = f"LV_PROPERTY_{match.group(1).upper()}_{match.group(2).upper()}" 57 id) 66 id = f"LV_PROPERTY_STYLE_{name}" 69 match.group(2), id)
|
D | changelog-template.hbs | 9 - .. warning: {{message}} `{{id}} <{{href}}>`__ 22 - **{{message}}** `{{id}} <{{href}}>`__ 35 - **{{message}}** `{{id}} <{{href}}>`__ 48 - **{{message}}** `{{id}} <{{href}}>`__ 61 - **{{message}}** `{{id}} <{{href}}>`__ 74 - **{{message}}** `{{id}} <({{href}})>`__ 87 - **{{message}}** `{{id}} <{{href}}>`__ 100 - **{{message}}** `{{id}} <{{href}}>`__ 113 - **{{message}}** `{{id }} <{{href}}>`__
|
/lvgl-latest/examples/widgets/chart/ |
D | lv_example_chart_3.c | 17 int32_t id = lv_chart_get_pressed_point(chart); in event_cb() local 18 if(id == LV_CHART_POINT_NONE) return; in event_cb() 20 LV_LOG_USER("Selected point %d", (int)id); in event_cb() 25 lv_chart_get_point_pos_by_id(chart, ser, id, &p); in event_cb() 28 int32_t value = y_array[id]; in event_cb()
|
/lvgl-latest/examples/widgets/buttonmatrix/ |
D | lv_example_buttonmatrix_3.c | 7 uint32_t id = lv_buttonmatrix_get_selected_button(obj); in event_cb() local 8 bool prev = id == 0; in event_cb() 9 bool next = id == 6; in event_cb()
|
D | lv_example_buttonmatrix_1.c | 9 uint32_t id = lv_buttonmatrix_get_selected_button(obj); in event_handler() local 10 const char * txt = lv_buttonmatrix_get_button_text(obj, id); in event_handler()
|
/lvgl-latest/src/indev/ |
D | lv_indev_gesture.c | 43 static lv_indev_gesture_motion_t * get_motion(uint8_t id, lv_indev_gesture_t * info); 44 static int8_t get_motion_idx(uint8_t id, lv_indev_gesture_t * info); 234 … i, touch->id, touch->state, touch->point.x, touch->point.y, r->info->finger_cnt); in lv_indev_gesture_detect_pinch() 391 static lv_indev_gesture_motion_t * get_motion(uint8_t id, lv_indev_gesture_t * info) in get_motion() argument 396 if(info->motions[i].finger == id) { in get_motion() 411 static int8_t get_motion_idx(uint8_t id, lv_indev_gesture_t * info) in get_motion_idx() argument 416 if(info->motions[i].finger == id) { in get_motion_idx() 437 motion_idx = get_motion_idx(touch->id, g); in process_touch_event() 452 motion->finger = touch->id; in process_touch_event() 463 motion = get_motion(touch->id, g); in process_touch_event() [all …]
|
/lvgl-latest/demos/render/ |
D | lv_demo_render.h | 63 void lv_demo_render(lv_demo_render_scene_t id, lv_opa_t opa); 65 const char * lv_demo_render_get_scene_name(lv_demo_render_scene_t id);
|
/lvgl-latest/docs/details/other-components/ |
D | obj_property.rst | 42 top of that Widget's primary ``.c`` file as a ``const`` id-to-function-pointer lookup 50 .id = LV_PROPERTY_LABEL_TEXT, 55 .id = LV_PROPERTY_LABEL_LONG_MODE, 60 .id = LV_PROPERTY_LABEL_TEXT_SELECTION_START, 65 .id = LV_PROPERTY_LABEL_TEXT_SELECTION_END, 73 Widgets of the same type share the same id-to-function-pointer lookup array. 94 - :cpp:type:`lv_property_t` :cpp:expr:`lv_obj_get_property(widget, lv_prop_id_t id)` 108 { .id = LV_PROPERTY_IMAGE_SRC, .ptr = &img_demo_widgets_avatar, }, 109 { .id = LV_PROPERTY_IMAGE_PIVOT, .ptr = &pivot_50, }, 110 { .id = LV_PROPERTY_IMAGE_SCALE, .num = 128, }, [all …]
|
/lvgl-latest/src/libs/thorvg/ |
D | tvgPicture.cpp | 214 const Paint* Picture::paint(uint32_t id) noexcept in paint() argument 218 uint32_t id; in paint() member 220 } value = {id, nullptr}; in paint() 225 if (p->id == paint->id) { in paint()
|
/lvgl-latest/src/widgets/chart/ |
D | lv_chart.h | 141 void lv_chart_get_point_pos_by_id(lv_obj_t * obj, lv_chart_series_t * ser, uint32_t id, lv_point_t … 200 void lv_chart_set_x_start_point(lv_obj_t * obj, lv_chart_series_t * ser, uint32_t id); 285 void lv_chart_set_value_by_id(lv_obj_t * obj, lv_chart_series_t * ser, uint32_t id, int32_t value); 296 void lv_chart_set_value_by_id2(lv_obj_t * obj, lv_chart_series_t * ser, uint32_t id, int32_t x_valu…
|