Home
last modified time | relevance | path

Searched full:id (Results 1 – 25 of 248) sorted by relevance

12345678910

/lvgl-latest/src/core/
Dlv_obj_property.c26 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()
115 LV_LOG_WARN("Invalid property id set to %p", obj); 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()
146 LV_LOG_WARN("Invalid property id to get from %p", obj); in lv_obj_get_property()
[all …]
Dlv_obj_property.h44 #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
57 * Group of predefined widget ID start value.
62 /*ID 0x01 to 0xff are style ID, check lv_style_prop_t*/
65 LV_PROPERTY_ID_START = 0x0100, /*ID smaller than 0xff is style ID*/
66 /*Define the property ID for every widget here. */
77 /*Special ID, use it to extend ID and make sure it's unique and compile time determinant*/
78 LV_PROPERTY_ID_BUILTIN_LAST = 0xffff, /*ID of 0x10000 ~ 0xfffffff is reserved for user*/
80 …LV_PROPERTY_ID_ANY = 0x7ffffffe, /*Special ID used by lvgl to intercept all setter/getter…
[all …]
Dlv_obj.c66 .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 …]
Dlv_obj.h388 * Set an id for an object.
390 * @param id the id of the object
392 void lv_obj_set_id(lv_obj_t * obj, void * id);
395 * Get the id of an object.
397 * @return the id of the object
402 * Get the child object by its id.
404 * Function `lv_obj_id_compare` is used to matched obj id with given id.
407 * @param id the id of the child object
410 lv_obj_t * lv_obj_get_child_by_id(const lv_obj_t * obj, const void * id);
413 * Assign id to object if not previously assigned.
[all …]
Dlv_obj_id_builtin.c51 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()
Dlv_obj_tree.c570 uint32_t id = i; in obj_delete_core() local
571 for(i = id; i < disp->screen_cnt - 1; i++) { in obj_delete_core()
579 int32_t id = lv_obj_get_index(obj); in obj_delete_core() local
581 for(i = id; i < obj->parent->spec_attr->child_cnt - 1; i++) { in obj_delete_core()
626 const char * id; in dump_tree_core() local
630 id = lv_obj_stringify_id(obj, buf, sizeof(buf)); in dump_tree_core()
631 if(id == NULL) id = "obj0"; in dump_tree_core()
633 id = "obj0"; in dump_tree_core()
636 /*id of `obj0` is an invalid id for builtin id*/ in dump_tree_core()
637 LV_LOG_USER("parent:%p, obj:%p, id:%s;", (void *)(obj ? obj->parent : NULL), (void *)obj, id); in dump_tree_core()
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_obj_property.c13 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 …]
Dtest_textarea.c143 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 …]
/lvgl-latest/docs/details/other-components/
Dobj_property.rst42 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 …]
Dobj_id.rst4 Widget ID
19 Enable Widget ID functionality by setting :c:macro:`LV_USE_OBJ_ID` to ``1`` in ``lv_conf.h``.
23 - each Widget will now have a ``void *`` field called ``id``;
27 - :cpp:expr:`lv_obj_get_child_by_id(widget, id)`;
29 - several more Widget-ID-related API functions become available if
55 responsible for assigning a value to the Widget's ``id`` field, and possibly do
75 - :cpp:expr:`lv_obj_set_id(widget, id)`
104 Using a custom ID generator
107 If you wish, you can provide custom implementations for several Widget-ID related
133 void lv_obj_set_id(lv_obj_t * widget, void * id);
[all …]
/lvgl-latest/src/libs/thorvg/
DtvgSvgLoader.cpp403 for (auto id = open; id < close; id++) { in _idFromUrl() local
404 if (*id == ' ' || *id == '\'') return nullptr; in _idFromUrl()
912 static void _postpone(Array<SvgNodeIdPair>& nodes, SvgNode *node, char* id) in _postpone() argument
914 nodes.push({node, id}); in _postpone()
1299 } else if (!strcmp(key, "id")) { in _attrParseGNode()
1300 if (node->id && value) free(node->id); in _attrParseGNode()
1301 node->id = _copyId(value); in _attrParseGNode()
1328 } else if (!strcmp(key, "id")) { in _attrParseClipPathNode()
1329 if (node->id && value) free(node->id); in _attrParseClipPathNode()
1330 node->id = _copyId(value); in _attrParseClipPathNode()
[all …]
DtvgLottieModel.h156 unsigned long id = 0; member
600 uint8_t id = 0; //1: linear, 2: radial member
724 LottieObject* content(unsigned long id) in content()
726 if (this->id == id) return this; in content()
732 if (auto ret = static_cast<LottieGroup*>(child)->content(id)) return ret; in content()
733 } else if (child->id == id) return child; in content()
783 unsigned long rid = 0; //pre-composition reference id.
784 int16_t mid = -1; //id of the matte layer.
800 LottieLayer* layerById(unsigned long id) in layerById()
805 if (layer->id == id) return layer; in layerById()
[all …]
Dthorvg.h457 * @brief Returns the ID value of this class.
461 * @return The class type ID of the Paint instance.
468 * @brief Unique ID of this instance.
474 uint32_t id = 0; variable
572 * @brief Returns the ID value of this class.
576 * @return The class type ID of the Fill instance.
762 * @brief Returns the ID value of this class.
766 * @return The class type ID of the LinearGradient instance.
827 * @brief Returns the ID value of this class.
831 * @return The class type ID of the LinearGradient instance.
[all …]
/lvgl-latest/src/widgets/table/
Dlv_table.h66 * @param row id of the row [0 .. row_cnt -1]
67 * @param col id of the column [0 .. col_cnt -1]
76 * @param row id of the row [0 .. row_cnt -1]
77 * @param col id of the column [0 .. col_cnt -1]
101 * @param col_id id of the column [0 .. LV_TABLE_COL_MAX -1]
109 * @param row id of the row [0 .. row_cnt -1]
110 * @param col id of the column [0 .. col_cnt -1]
118 * @param row id of the row [0 .. row_cnt -1]
119 * @param col id of the column [0 .. col_cnt -1]
127 * @param row id of the row [0 .. row_cnt -1]
[all …]
/lvgl-latest/demos/smartwatch/
Dlv_demo_smartwatch.h162 * @param app_id id of the app sending the notification (sets icon from the inbuilt icon list)
170 * @param app_id id of the app sending the notification (sets icon from the inbuilt icon list)
219 * @param id weather icon to use (0-7)
221 void lv_demo_smartwatch_weather_add_daily(int day, int temp, int id);
226 * @param id weather icon to use (0-7)
233 void lv_demo_smartwatch_weather_add_hourly(int hour, int id, int temp, int humidity, int wind, int …
242 * @param id determines the icon and name of the qr from inbuilt list. Value (0-9)
245 void lv_demo_smartwatch_qr_list_add(uint8_t id, const char * link);
249 * @param id unique id to track changes (recommended > 0x000F)
257 lv_obj_t * lv_demo_smartwatch_settings_add_slider(uint16_t id, const char * name, const lv_img_dsc_…
[all …]
Dlv_demo_smartwatch_settings.h47 * @param id unique id to track changes (recommended > 0x000F)
55 lv_obj_t * lv_demo_smartwatch_settings_add_slider(uint16_t id, const char * name, const lv_img_dsc_…
61 * @param id unique id to track changes (recommended > 0x000F)
67 lv_obj_t * lv_demo_smartwatch_settings_add_toggle(uint16_t id, const char * name, const lv_img_dsc_…
71 * @param id unique id to track changes (recommended > 0x000F)
77 lv_obj_t * lv_demo_smartwatch_settings_add_dropdown(uint16_t id, const char * name, const lv_img_ds…
82 * @param id unique id to track changes (recommended > 0x000F)
87 lv_obj_t * lv_demo_smartwatch_settings_add_label(uint16_t id, const char * name, const lv_img_dsc_t…
/lvgl-latest/src/indev/
Dlv_indev_gesture.c43 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);
233 LV_LOG_TRACE("processed touch ev: %d finger id: %d state: %d x: %d y: %d finger_cnt: %d", in lv_indev_gesture_detect_pinch()
234 … i, touch->id, touch->state, touch->point.x, touch->point.y, r->info->finger_cnt); in lv_indev_gesture_detect_pinch()
386 * Obtains the contact point motion descriptor with id
387 * @param id the id of the contact point
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()
407 * @param id the id of the contact point
411 static int8_t get_motion_idx(uint8_t id, lv_indev_gesture_t * info) in get_motion_idx() argument
[all …]
/lvgl-latest/src/widgets/chart/
Dlv_chart.c212 void lv_chart_get_point_pos_by_id(lv_obj_t * obj, lv_chart_series_t * ser, uint32_t id, lv_point_t … in lv_chart_get_point_pos_by_id() argument
219 if(id >= chart->point_cnt) { in lv_chart_get_point_pos_by_id()
220 LV_LOG_WARN("Invalid index: %"LV_PRIu32, id); in lv_chart_get_point_pos_by_id()
231 p_out->x = (w * id) / (chart->point_cnt - 1); in lv_chart_get_point_pos_by_id()
238 …p_out->x = lv_map(ser->x_points[id], chart->xmin[ser->x_axis_sec], chart->xmax[ser->x_axis_sec], 0… in lv_chart_get_point_pos_by_id()
250 p_out->x = (int32_t)((int32_t)(w - block_w) * id) / (chart->point_cnt - 1); in lv_chart_get_point_pos_by_id()
263 p_out->x = (int32_t)((int32_t)(w + block_gap) * id) / chart->point_cnt; in lv_chart_get_point_pos_by_id()
278 id = ((int32_t)start_point + id) % chart->point_cnt; in lv_chart_get_point_pos_by_id()
280 temp_y = (int32_t)((int32_t)ser->y_points[id] - chart->ymin[ser->y_axis_sec]) * h; in lv_chart_get_point_pos_by_id()
402 void lv_chart_set_x_start_point(lv_obj_t * obj, lv_chart_series_t * ser, uint32_t id) in lv_chart_set_x_start_point() argument
[all …]
/lvgl-latest/src/drivers/glfw/
Dlv_opengles_driver.c359 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/src/widgets/dropdown/
Dlv_dropdown.c53 static void draw_box(lv_obj_t * dropdown_obj, lv_layer_t * layer, uint32_t id, lv_state_t state);
54 static void draw_box_label(lv_obj_t * dropdown_obj, lv_layer_t * layer, uint32_t id, lv_state_t sta…
68 .id = LV_PROPERTY_DROPDOWN_TEXT,
73 .id = LV_PROPERTY_DROPDOWN_OPTIONS,
78 .id = LV_PROPERTY_DROPDOWN_OPTION_COUNT,
83 .id = LV_PROPERTY_DROPDOWN_SELECTED,
88 .id = LV_PROPERTY_DROPDOWN_DIR,
93 .id = LV_PROPERTY_DROPDOWN_SYMBOL,
98 .id = LV_PROPERTY_DROPDOWN_SELECTED_HIGHLIGHT,
103 .id = LV_PROPERTY_DROPDOWN_LIST,
[all …]
/lvgl-latest/tests/src/test_cases/draw/
Dtest_draw_svg.c85 "<g fill=\"blue\" xml:id=\"g1\">" in test_draw_group()
97 "<svg><defs><linearGradient id=\"s1\">" in test_draw_group()
101 "<g fill=\"url(#s1)\" id=\"g1\">" in test_draw_group()
169 "<defs><linearGradient xml:id=\"MyGradient\">" in test_draw_shapes()
185 … "<defs><solidColor xml:id=\"solidMaroon\" solid-color=\"maroon\" solid-opacity=\"0.7\"/>" in test_draw_shapes()
202 … "<defs><radialGradient id=\"MyGradient\" gradientUnits=\"userSpaceOnUse\"" in test_draw_shapes()
218 "<defs><radialGradient id=\"MyGradient\">" in test_draw_shapes()
233 …"<defs><linearGradient xml:id=\"MyGradient\" x1=0 y1=0 x2=500 y2=350 gradientUnits=\"userSpaceOnUs… in test_draw_shapes()
248 … "<g><defs><linearGradient id=\"MyGradient\" gradientUnits=\"objectBoundingBox\">" in test_draw_shapes()
266 … "<g><defs><linearGradient id=\"MyGradient\" gradientUnits=\"userSpaceOnUse\"" in test_draw_shapes()
[all …]
/lvgl-latest/demos/music/
Dlv_demo_music_main.c66 static void track_load(uint32_t id);
324 uint32_t id = track_id; in lv_demo_music_album_next() local
326 id++; in lv_demo_music_album_next()
327 if(id >= ACTIVE_TRACK_CNT) id = 0; in lv_demo_music_album_next()
330 if(id == 0) { in lv_demo_music_album_next()
331 id = ACTIVE_TRACK_CNT - 1; in lv_demo_music_album_next()
334 id--; in lv_demo_music_album_next()
339 lv_demo_music_play(id); in lv_demo_music_album_next()
342 track_load(id); in lv_demo_music_album_next()
346 void lv_demo_music_play(uint32_t id) in lv_demo_music_play() argument
[all …]
/lvgl-latest/src/widgets/roller/
Dlv_roller.c61 .id = LV_PROPERTY_ROLLER_OPTIONS,
66 .id = LV_PROPERTY_ROLLER_SELECTED,
71 .id = LV_PROPERTY_ROLLER_VISIBLE_ROW_COUNT,
199 /*In infinite mode interpret the new ID relative to the currently visible "page"*/ in lv_roller_set_selected()
665 * Refresh the position of the roller. It uses the id stored in: roller->ddlist.selected_option_id
707 int32_t id = roller->sel_opt_id; in refr_position() local
708 const int32_t sel_y1 = id * (font_h + line_space); in refr_position()
796 int32_t id = (mid - label_y1) / label_unit; in release_handler() local
798 if(id < 0) id = 0; in release_handler()
799 if(id >= (int32_t)roller->option_cnt) id = roller->option_cnt - 1; in release_handler()
[all …]
/lvgl-latest/src/libs/tjpgd/
Dtjpgd.c175 i = d & 3; /* Get table ID */ in create_qt_tbl()
288 unsigned int id, /* Table ID (0:Y, 1:C) */ in huffext() argument
298 const uint8_t * hb = jd->huffbits[id][cls]; /* Bit distribution table */ in huffext()
299 const uint16_t * hc = jd->huffcode[id][cls]; /* Code word table */ in huffext()
300 const uint8_t * hd = jd->huffdata[id][cls]; /* Data table */ in huffext()
388 d = jd->hufflut_ac[id][d]; /* Table decode */ in huffext()
395 d = jd->hufflut_dc[id][d]; /* Table decode */ in huffext()
403 hb = jd->huffbits[id][cls] + HUFF_BIT; /* Bit distribution table */ in huffext()
404 hc = jd->huffcode[id][cls] + jd->longofs[id][cls]; /* Code word table */ in huffext()
405 hd = jd->huffdata[id][cls] + jd->longofs[id][cls]; /* Data table */ in huffext()
[all …]
/lvgl-latest/src/libs/svg/
Dlv_svg_render.c267 switch(attr->id) { in _set_viewport_attr()
318 switch(attr->id) { in _set_use_attr()
337 switch(attr->id) { in _set_solid_attr()
351 switch(attr->id) { in _set_gradient_attr()
383 switch(attr->id) { in _set_rect_attr()
409 switch(attr->id) { in _set_circle_attr()
426 switch(attr->id) { in _set_ellipse_attr()
446 switch(attr->id) { in _set_line_attr()
466 if(attr->id == LV_SVG_ATTR_POINTS) { in _set_polyline_attr()
488 if(attr->id == LV_SVG_ATTR_POINTS) { in _set_polygen_attr()
[all …]

12345678910