Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 56) sorted by relevance

123

/lvgl-latest/src/misc/
Dlv_style_gen.c16 .num = (int32_t)value in lv_style_set_width()
24 .num = (int32_t)value in lv_style_set_min_width()
32 .num = (int32_t)value in lv_style_set_max_width()
40 .num = (int32_t)value in lv_style_set_height()
48 .num = (int32_t)value in lv_style_set_min_height()
56 .num = (int32_t)value in lv_style_set_max_height()
64 .num = (int32_t)value in lv_style_set_length()
72 .num = (int32_t)value in lv_style_set_x()
80 .num = (int32_t)value in lv_style_set_y()
88 .num = (int32_t)value in lv_style_set_align()
[all …]
Dlv_style_gen.h139 .prop = LV_STYLE_WIDTH, .value = { .num = (int32_t)val } \
144 .prop = LV_STYLE_MIN_WIDTH, .value = { .num = (int32_t)val } \
149 .prop = LV_STYLE_MAX_WIDTH, .value = { .num = (int32_t)val } \
154 .prop = LV_STYLE_HEIGHT, .value = { .num = (int32_t)val } \
159 .prop = LV_STYLE_MIN_HEIGHT, .value = { .num = (int32_t)val } \
164 .prop = LV_STYLE_MAX_HEIGHT, .value = { .num = (int32_t)val } \
169 .prop = LV_STYLE_LENGTH, .value = { .num = (int32_t)val } \
174 .prop = LV_STYLE_X, .value = { .num = (int32_t)val } \
179 .prop = LV_STYLE_Y, .value = { .num = (int32_t)val } \
184 .prop = LV_STYLE_ALIGN, .value = { .num = (int32_t)val } \
[all …]
Dlv_profiler_builtin.c107 uint32_t num = config->buf_size / sizeof(lv_profiler_builtin_item_t); in lv_profiler_builtin_init() local
108 if(num == 0) { in lv_profiler_builtin_init()
126 profiler_ctx->item_arr = lv_malloc(num * sizeof(lv_profiler_builtin_item_t)); in lv_profiler_builtin_init()
136 profiler_ctx->item_num = num; in lv_profiler_builtin_init()
147 LV_LOG_INFO("init OK, item_num = %d", (int)num); in lv_profiler_builtin_init()
Dlv_style.c374 .num = LV_SCALE_NONE in lv_style_prop_get_default()
404 .num = LV_OPA_COVER in lv_style_prop_get_default()
408 .num = 255 in lv_style_prop_get_default()
412 .num = LV_BORDER_SIDE_FULL in lv_style_prop_get_default()
421 .num = LV_COORD_MAX in lv_style_prop_get_default()
425 .num = 256 in lv_style_prop_get_default()
/lvgl-latest/src/core/
Dlv_obj_style_gen.c16 .num = (int32_t)value in lv_obj_set_style_width()
24 .num = (int32_t)value in lv_obj_set_style_min_width()
32 .num = (int32_t)value in lv_obj_set_style_max_width()
40 .num = (int32_t)value in lv_obj_set_style_height()
48 .num = (int32_t)value in lv_obj_set_style_min_height()
56 .num = (int32_t)value in lv_obj_set_style_max_height()
64 .num = (int32_t)value in lv_obj_set_style_length()
72 .num = (int32_t)value in lv_obj_set_style_x()
80 .num = (int32_t)value in lv_obj_set_style_y()
88 .num = (int32_t)value in lv_obj_set_style_align()
[all …]
Dlv_obj_style_gen.h25 return (int32_t)v.num; in lv_obj_get_style_width()
31 return (int32_t)v.num; in lv_obj_get_style_min_width()
37 return (int32_t)v.num; in lv_obj_get_style_max_width()
43 return (int32_t)v.num; in lv_obj_get_style_height()
49 return (int32_t)v.num; in lv_obj_get_style_min_height()
55 return (int32_t)v.num; in lv_obj_get_style_max_height()
61 return (int32_t)v.num; in lv_obj_get_style_length()
67 return (int32_t)v.num; in lv_obj_get_style_x()
73 return (int32_t)v.num; in lv_obj_get_style_y()
79 return (lv_align_t)v.num; in lv_obj_get_style_align()
[all …]
Dlv_obj_style.c438 if(v1.ptr == v2.ptr && v1.num == v2.num && lv_color_eq(v1.color, v2.color)) return; in lv_obj_style_create_transition()
448 if(v1.num == LV_RADIUS_CIRCLE || v2.num == LV_RADIUS_CIRCLE) { in lv_obj_style_create_transition()
451 if(v1.num == LV_RADIUS_CIRCLE) v1.num = LV_MIN(whalf + 1, hhalf + 1); in lv_obj_style_create_transition()
452 if(v2.num == LV_RADIUS_CIRCLE) v2.num = LV_MIN(whalf + 1, hhalf + 1); in lv_obj_style_create_transition()
872 if(v < 255) value_final.num = tr->start_value.num; in trans_anim_cb()
873 else value_final.num = tr->end_value.num; in trans_anim_cb()
899 if(v == 0) value_final.num = tr->start_value.num; in trans_anim_cb()
900 else if(v == 255) value_final.num = tr->end_value.num; in trans_anim_cb()
901 …else value_final.num = tr->start_value.num + ((int32_t)((int32_t)(tr->end_value.num - tr->start_va… in trans_anim_cb()
909 value_final.num == old_value.num) { in trans_anim_cb()
[all …]
Dlv_obj_property.h91 int32_t num; /**< Signed integer number (enums or "normal" numbers)*/ member
130 int32_t num; member
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_obj_property.c42 prop.num = 0xaabb; in test_obj_property_set_get_should_match()
45 TEST_ASSERT_EQUAL_UINT32(0xaabb, lv_obj_get_property(obj, LV_PROPERTY_STYLE_X).num); in test_obj_property_set_get_should_match()
63 prop.num = 1; in test_obj_property_set_get_should_match()
66 TEST_ASSERT_TRUE(lv_obj_get_property(obj, LV_PROPERTY_OBJ_FLAG_HIDDEN).num); in test_obj_property_set_get_should_match()
69 prop.num = 0; in test_obj_property_set_get_should_match()
72 TEST_ASSERT_FALSE(lv_obj_get_property(obj, LV_PROPERTY_OBJ_FLAG_CLICKABLE).num); in test_obj_property_set_get_should_match()
91 prop.num = 0x1234; in test_obj_property_set_get_should_match()
94 TEST_ASSERT_EQUAL_UINT16(0x1234, lv_obj_get_property(img, LV_PROPERTY_IMAGE_OFFSET_X).num); in test_obj_property_set_get_should_match()
106 prop.num = 0xaabb; /* `num` shares same memory with `prop.style.value.num` */ in test_obj_property_style_selector()
110 TEST_ASSERT_EQUAL_UINT32(0xaabb, lv_obj_get_style_property(obj, LV_PROPERTY_STYLE_X, 0).num); in test_obj_property_style_selector()
[all …]
Dtest_keyboard.c57 prop.num = LV_KEYBOARD_MODE_TEXT_UPPER; in test_keyboard_properties()
60 …RT_EQUAL_INT(LV_KEYBOARD_MODE_TEXT_UPPER, lv_obj_get_property(obj, LV_PROPERTY_KEYBOARD_MODE).num); in test_keyboard_properties()
63 prop.num = 1; in test_keyboard_properties()
66 TEST_ASSERT_EQUAL_INT(1, lv_obj_get_property(obj, LV_PROPERTY_KEYBOARD_POPOVERS).num); in test_keyboard_properties()
69 prop.num = 1; in test_keyboard_properties()
72 TEST_ASSERT_EQUAL_INT(1, lv_obj_get_property(obj, LV_PROPERTY_KEYBOARD_SELECTED_BUTTON).num); in test_keyboard_properties()
Dtest_textarea.c156 prop.num = 5; in test_textarea_properties()
159 TEST_ASSERT_EQUAL_INT(5, lv_obj_get_property(obj, LV_PROPERTY_TEXTAREA_CURSOR_POS).num); in test_textarea_properties()
162 prop.num = 1; in test_textarea_properties()
165 TEST_ASSERT_EQUAL_INT(1, lv_obj_get_property(obj, LV_PROPERTY_TEXTAREA_CURSOR_CLICK_POS).num); in test_textarea_properties()
168 prop.num = true; in test_textarea_properties()
171 TEST_ASSERT_TRUE(lv_obj_get_property(obj, LV_PROPERTY_TEXTAREA_PASSWORD_MODE).num); in test_textarea_properties()
192 prop.num = 10; in test_textarea_properties()
195 TEST_ASSERT_EQUAL_INT(10, lv_obj_get_property(obj, LV_PROPERTY_TEXTAREA_MAX_LENGTH).num); in test_textarea_properties()
203 prop.num = true; in test_textarea_properties()
209 prop.num = 10; in test_textarea_properties()
[all …]
Dtest_slider.c222 prop.arg1.num = 10; in test_slider_properties()
223 prop.arg2.num = 100; in test_slider_properties()
227 TEST_ASSERT_EQUAL_INT(10, lv_obj_get_property(obj, LV_PROPERTY_SLIDER_MIN_VALUE).num); in test_slider_properties()
228 TEST_ASSERT_EQUAL_INT(100, lv_obj_get_property(obj, LV_PROPERTY_SLIDER_MAX_VALUE).num); in test_slider_properties()
231 prop.arg1.num = 50; in test_slider_properties()
235 TEST_ASSERT_EQUAL_INT(50, lv_obj_get_property(obj, LV_PROPERTY_SLIDER_VALUE).num); in test_slider_properties()
238 prop.num = LV_SLIDER_MODE_RANGE; in test_slider_properties()
240 …TEST_ASSERT_EQUAL_INT(LV_SLIDER_MODE_RANGE, lv_obj_get_property(obj, LV_PROPERTY_SLIDER_MODE).num); in test_slider_properties()
243 prop.arg1.num = 40; in test_slider_properties()
247 TEST_ASSERT_EQUAL_INT(40, lv_obj_get_property(obj, LV_PROPERTY_SLIDER_LEFT_VALUE).num); in test_slider_properties()
Dtest_image.c465 prop.num = 10; in test_image_properties()
467 TEST_ASSERT_EQUAL_INT(lv_obj_get_property(obj, LV_PROPERTY_IMAGE_OFFSET_X).num, 10); in test_image_properties()
471 prop.num = 20; in test_image_properties()
473 TEST_ASSERT_EQUAL_INT(lv_obj_get_property(obj, LV_PROPERTY_IMAGE_OFFSET_Y).num, 20); in test_image_properties()
477 prop.num = 30; in test_image_properties()
479 TEST_ASSERT_EQUAL_INT(lv_obj_get_property(obj, LV_PROPERTY_IMAGE_ROTATION).num, 30); in test_image_properties()
494 prop.num = 60; in test_image_properties()
496 TEST_ASSERT_EQUAL_INT(lv_obj_get_property(obj, LV_PROPERTY_IMAGE_SCALE).num, 60); in test_image_properties()
500 prop.num = 70; in test_image_properties()
502 TEST_ASSERT_EQUAL_INT(lv_obj_get_property(obj, LV_PROPERTY_IMAGE_SCALE_X).num, 70); in test_image_properties()
[all …]
Dtest_animimg.c115 prop.arg2.num = 3; in test_animimg_property()
120 TEST_ASSERT_EQUAL_INT(3, lv_obj_get_property(obj, LV_PROPERTY_ANIMIMAGE_SRC_COUNT).num); in test_animimg_property()
123 prop.num = 1000; in test_animimg_property()
126 TEST_ASSERT_EQUAL_INT(1000, lv_obj_get_property(obj, LV_PROPERTY_ANIMIMAGE_DURATION).num); in test_animimg_property()
129 prop.num = LV_ANIM_REPEAT_INFINITE; in test_animimg_property()
/lvgl-latest/demos/ebike/translations/
Dlv_i18n.c47 static uint8_t en_plural_fn(int32_t num) in en_plural_fn() argument
49 uint32_t n = op_n(num); in en_plural_fn()
91 static uint8_t ar_plural_fn(int32_t num) in ar_plural_fn() argument
93 uint32_t n = op_n(num); in ar_plural_fn()
136 static uint8_t zh_plural_fn(int32_t num) in zh_plural_fn() argument
138 LV_UNUSED(num); in zh_plural_fn()
258 const char * lv_i18n_get_text_plural(const char * msg_id, int32_t num) in lv_i18n_get_text_plural() argument
268 ptype = lang->locale_plural_fn(num); in lv_i18n_get_text_plural()
282 ptype = lang->locale_plural_fn(num); in lv_i18n_get_text_plural()
Dlv_i18n.h32 uint8_t (*locale_plural_fn)(int32_t num);
67 const char * lv_i18n_get_text_plural(const char * msg_id, int32_t num);
80 #define _p(text, num) lv_i18n_get_text_plural(text, num) argument
/lvgl-latest/src/libs/thorvg/
DtvgCompressor.cpp84 static int nextPowerOfTwo(int num) in nextPowerOfTwo() argument
86 --num; in nextPowerOfTwo()
87 for (size_t i = 1; i < sizeof(num) * 8; i <<= 1) { in nextPowerOfTwo()
88 num = num | num >> i; in nextPowerOfTwo()
90 return ++num; in nextPowerOfTwo()
173 void appendBitsU64(const uint64_t num, const int bitCount) in appendBitsU64()
177 const int bit = !!(num & mask); in appendBitsU64()
234 uint64_t num = 0; in readBitsU64() local
241 num = (num & ~mask) | (-bit & mask); in readBitsU64()
243 return num; in readBitsU64()
/lvgl-latest/tests/src/test_cases/
Dtest_tree.c77 int32_t num; member
85 ret->result[ret->num++] = n->data1; in test_walk_cb()
125 struct _result result = {.num = 0}; in testWalkTree()
133 result.num = 0; in testWalkTree()
143 result.num = 0; in testWalkTree()
163 ret->result[ret->num++] = n->data1; in test_search_cb()
193 struct _result result = {.num = 0}; in testTreeSearch()
202 result.num = 0; in testTreeSearch()
/lvgl-latest/src/others/observer/
Dlv_observer.c81 subject->value.num = value; in lv_subject_init_int()
82 subject->prev_value.num = value; in lv_subject_init_int()
93 subject->prev_value.num = subject->value.num; in lv_subject_set_int()
94 subject->value.num = value; in lv_subject_set_int()
105 return subject->value.num; in lv_subject_get_int()
115 return subject->prev_value.num; in lv_subject_get_previous_int()
623 p->value.num = ref_value; in bind_to_bitfield()
635 bool res = subject->value.num == p->value.num; in obj_flag_observer_cb()
650 bool res = subject->value.num == p->value.num; in obj_state_observer_cb()
681 lv_label_set_text_fmt(observer->target, fmt, subject->value.num); in label_text_observer_cb()
[all …]
/lvgl-latest/demos/music/
Dlv_demo_music.c228 lv_obj_t * num = lv_label_create(bg); in auto_step_cb() local
229 lv_obj_set_style_text_font(num, font_large, 0); in auto_step_cb()
233 lv_label_set_text_fmt(num, "%" LV_PRIu32, info->calculated.fps_avg_total); in auto_step_cb()
235 lv_obj_align(num, LV_ALIGN_TOP_MID, 0, 120); in auto_step_cb()
/lvgl-latest/src/stdlib/
Dlv_mem.c119 void * lv_calloc(size_t num, size_t size) in lv_calloc() argument
121 LV_TRACE_MEM("allocating number of %zu each %zu bytes", num, size); in lv_calloc()
122 return lv_malloc_zeroed(num * size); in lv_calloc()
/lvgl-latest/docs/details/debugging/
Dgdb_plugin.rst68 32 = {num = 90, ptr = 0x5a, color = {blue = 90 'Z', green = 0 '\000', red = 0 '\000'}}
69 … 158 = {num = 32767, ptr = 0x7fff, color = {blue = 255 '\377', green = 127 '\177', red = 0 '\000'}}
73 32 = {num = 90, ptr = 0x5a, color = {blue = 90 'Z', green = 0 '\000', red = 0 '\000'}}
74 … 158 = {num = 32767, ptr = 0x7fff, color = {blue = 255 '\377', green = 127 '\177', red = 0 '\000'}}
/lvgl-latest/src/drivers/display/lcd/
Dlv_lcd_generic_mipi.c120 uint8_t num = *cmd_list++; in lv_lcd_generic_mipi_send_cmd_list() local
122 if(num == LV_LCD_CMD_EOF) /* end of list */ in lv_lcd_generic_mipi_send_cmd_list()
125 lv_delay_ms((uint32_t)(num) * 10); in lv_lcd_generic_mipi_send_cmd_list()
129 drv->send_cmd(drv->disp, &cmd, 1, cmd_list, num); in lv_lcd_generic_mipi_send_cmd_list()
130 cmd_list += num; in lv_lcd_generic_mipi_send_cmd_list()
/lvgl-latest/docs/details/other-components/
Dobj_property.rst110 { .id = LV_PROPERTY_IMAGE_SCALE, .num = 128, },
111 { .id = LV_PROPERTY_OBJ_FLAG_CLICKABLE, .num = 1, },
112 { .id = LV_STYLE_IMAGE_OPA, .num = 128, },
174 int32_t num; /**< Signed integer number (enums or "normal" numbers) */
185 * `style` shares same memory with `num`, `ptr`, `color`.
186 * So we set the style value directly without using `prop.style.num`.
192 * .num = 123,
199 * .style.num = 123, // note this line.
216 * so we can use `arg1.num` and `arg2.num` to set the argument.
220 int32_t num;
/lvgl-latest/src/widgets/animimage/
Dlv_animimage.c106 void lv_animimg_set_src(lv_obj_t * obj, const void * dsc[], size_t num) in lv_animimg_set_src() argument
111 animimg->pic_count = num; in lv_animimg_set_src()
112 lv_anim_set_values(&animimg->anim, 0, (int32_t)num); in lv_animimg_set_src()

123