| /lvgl-latest/tests/src/test_cases/widgets/ |
| D | test_obj_property.c | 11 lv_property_t prop = { }; in test_obj_property_fail_on_invalid_id() local 13 prop.id = LV_PROPERTY_ID_INVALID; in test_obj_property_fail_on_invalid_id() 14 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); 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() 17 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); 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() 20 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); 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() 23 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); 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() [all …]
|
| D | test_textarea.c | 140 lv_property_t prop = { }; in test_textarea_properties() local 143 prop.id = LV_PROPERTY_TEXTAREA_TEXT; in test_textarea_properties() 144 prop.ptr = "Hello World!"; in test_textarea_properties() 145 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RES_OK); in test_textarea_properties() 149 prop.id = LV_PROPERTY_TEXTAREA_PLACEHOLDER_TEXT; in test_textarea_properties() 150 prop.ptr = "Hello!"; in test_textarea_properties() 151 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RES_OK); in test_textarea_properties() 155 prop.id = LV_PROPERTY_TEXTAREA_CURSOR_POS; in test_textarea_properties() 156 prop.num = 5; in test_textarea_properties() 157 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RES_OK); in test_textarea_properties() [all …]
|
| D | test_keyboard.c | 46 lv_property_t prop = { }; in test_keyboard_properties() local 50 prop.id = LV_PROPERTY_KEYBOARD_TEXTAREA; in test_keyboard_properties() 51 prop.ptr = test_area; in test_keyboard_properties() 52 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_keyboard_properties() 56 prop.id = LV_PROPERTY_KEYBOARD_MODE; in test_keyboard_properties() 57 prop.num = LV_KEYBOARD_MODE_TEXT_UPPER; in test_keyboard_properties() 58 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_keyboard_properties() 62 prop.id = LV_PROPERTY_KEYBOARD_POPOVERS; in test_keyboard_properties() 63 prop.num = 1; in test_keyboard_properties() 64 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_keyboard_properties() [all …]
|
| D | test_animimg.c | 110 lv_property_t prop; in test_animimg_property() local 113 prop.id = LV_PROPERTY_ANIMIMAGE_SRC; in test_animimg_property() 114 prop.arg1.ptr = anim_imgs; in test_animimg_property() 115 prop.arg2.num = 3; in test_animimg_property() 116 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_animimg_property() 122 prop.id = LV_PROPERTY_ANIMIMAGE_DURATION; in test_animimg_property() 123 prop.num = 1000; in test_animimg_property() 124 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_animimg_property() 128 prop.id = LV_PROPERTY_ANIMIMAGE_REPEAT_COUNT; in test_animimg_property() 129 prop.num = LV_ANIM_REPEAT_INFINITE; in test_animimg_property() [all …]
|
| D | test_slider.c | 219 lv_property_t prop = { }; in test_slider_properties() local 221 prop.id = LV_PROPERTY_SLIDER_RANGE; in test_slider_properties() 222 prop.arg1.num = 10; in test_slider_properties() 223 prop.arg2.num = 100; in test_slider_properties() 224 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_slider_properties() 230 prop.id = LV_PROPERTY_SLIDER_VALUE; in test_slider_properties() 231 prop.arg1.num = 50; in test_slider_properties() 232 prop.arg2.enable = false; in test_slider_properties() 233 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_slider_properties() 237 prop.id = LV_PROPERTY_SLIDER_MODE; in test_slider_properties() [all …]
|
| D | test_image.c | 456 lv_property_t prop = { }; in test_image_properties() local 458 prop.id = LV_PROPERTY_IMAGE_SRC; in test_image_properties() 459 prop.ptr = &test_arc_bg; in test_image_properties() 460 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties() 464 prop.id = LV_PROPERTY_IMAGE_OFFSET_X; in test_image_properties() 465 prop.num = 10; in test_image_properties() 466 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties() 470 prop.id = LV_PROPERTY_IMAGE_OFFSET_Y; in test_image_properties() 471 prop.num = 20; in test_image_properties() 472 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_image_properties() [all …]
|
| D | test_dropdown.c | 460 lv_property_t prop = { }; in test_dropdown_properties() local 462 prop.id = LV_PROPERTY_DROPDOWN_TEXT; in test_dropdown_properties() 463 prop.ptr = "Hello"; in test_dropdown_properties() 464 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_dropdown_properties() 468 prop.id = LV_PROPERTY_DROPDOWN_OPTIONS; in test_dropdown_properties() 469 prop.ptr = "Option 1\nOption 2"; in test_dropdown_properties() 470 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_dropdown_properties() 477 prop.id = LV_PROPERTY_DROPDOWN_SELECTED; in test_dropdown_properties() 478 prop.arg1.num = 1; in test_dropdown_properties() 479 prop.arg2.enable = LV_ANIM_OFF; in test_dropdown_properties() [all …]
|
| D | test_roller.c | 356 lv_property_t prop = { }; in test_roller_properties() local 358 prop.id = LV_PROPERTY_ROLLER_OPTIONS; in test_roller_properties() 359 prop.arg1.ptr = "One\nTwo\nThree"; in test_roller_properties() 360 prop.arg2.num = LV_ROLLER_MODE_NORMAL; in test_roller_properties() 361 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_roller_properties() 365 prop.id = LV_PROPERTY_ROLLER_SELECTED; in test_roller_properties() 366 prop.arg1.num = 1; in test_roller_properties() 367 prop.arg2.enable = LV_ANIM_ON; in test_roller_properties() 368 TEST_ASSERT_TRUE(lv_obj_set_property(obj, &prop) == LV_RESULT_OK); in test_roller_properties()
|
| /lvgl-latest/src/misc/ |
| D | lv_style_gen.h | 139 .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 …]
|
| D | lv_style.c | 242 bool lv_style_remove_prop(lv_style_t * style, lv_style_prop_t prop) in lv_style_remove_prop() argument 259 if(old_props[i] == prop) { in lv_style_remove_prop() 279 if(old_props[j] != prop) { in lv_style_remove_prop() 295 void lv_style_set_prop(lv_style_t * style, lv_style_prop_t prop, lv_style_value_t value) in lv_style_set_prop() argument 304 LV_ASSERT(prop != LV_STYLE_PROP_INV); in lv_style_set_prop() 312 if(props[i] == prop) { in lv_style_set_prop() 342 props[style->prop_cnt - 1] = prop; in lv_style_set_prop() 345 uint32_t group = lv_style_get_prop_group(prop); in lv_style_set_prop() 350 lv_style_res_t lv_style_get_prop(const lv_style_t * style, lv_style_prop_t prop, lv_style_value_t *… in lv_style_get_prop() argument 352 return lv_style_get_prop_inlined(style, prop, value); in lv_style_get_prop() [all …]
|
| D | lv_style.h | 69 #define LV_STYLE_CONST_PROPS_END { .prop = LV_STYLE_PROP_INV, .value = { .num = 0 } } 363 lv_style_prop_t prop; member 441 bool lv_style_remove_prop(lv_style_t * style, lv_style_prop_t prop); 451 void lv_style_set_prop(lv_style_t * style, lv_style_prop_t prop, lv_style_value_t value); 462 lv_style_res_t lv_style_get_prop(const lv_style_t * style, lv_style_prop_t prop, lv_style_value_t *… 488 lv_style_value_t lv_style_prop_get_default(lv_style_prop_t prop); 500 …tic inline lv_style_res_t lv_style_get_prop_inlined(const lv_style_t * style, lv_style_prop_t prop, in lv_style_get_prop_inlined() argument 506 for(i = 0; props[i].prop != LV_STYLE_PROP_INV; i++) { in lv_style_get_prop_inlined() 507 if(props[i].prop == prop) { in lv_style_get_prop_inlined() 517 if(props[i] == prop) { in lv_style_get_prop_inlined() [all …]
|
| /lvgl-latest/src/core/ |
| D | lv_obj_property.c | 24 value->field = ((lv_property_get_##type##_t)(prop->getter))(obj); \ 26 switch(LV_PROPERTY_ID_TYPE2(prop->id)) { \ 28 ((lv_property_set_##type##_t)(prop->setter))(obj, value->field); \ 31 … ((lv_property_set_##type##_integer_t)(prop->setter))(obj, value->arg1.field, value->arg2.num); \ 34 …((lv_property_set_##type##_boolean_t)(prop->setter))(obj, value->arg1.field, value->arg2.enable); \ 37 …((lv_property_set_##type##_precise_t)(prop->setter))(obj, value->arg1.field, value->arg2.precise);… 40 … ((lv_property_set_##type##_color_t)(prop->setter))(obj, value->arg1.field, value->arg2.color); \ 48 … ((lv_property_set_##type##_pointer_t)(prop->setter))(obj, value->arg1.field, value->arg2.ptr); \ 249 const lv_property_ops_t * prop; in obj_property() local 268 prop = &properties[i]; in obj_property() [all …]
|
| D | lv_obj_style.c | 25 #define STYLE_PROP_SHIFTED(prop) ((uint32_t)1 << ((prop) >> 3)) argument 33 lv_style_prop_t prop; member 56 …style_res_t get_prop_core(const lv_obj_t * obj, lv_style_selector_t selector, lv_style_prop_t prop, 60 static bool trans_delete(lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop, trans_t * tr_limit); 69 …t get_selector_style_prop(const lv_obj_t * obj, lv_style_selector_t selector, lv_style_prop_t prop, 142 for(i = 0; props[i].prop != LV_STYLE_PROP_INV; i++) { in lv_obj_add_style() 143 (*prop_is_set) |= STYLE_PROP_SHIFTED(props[i].prop); in lv_obj_add_style() 207 lv_style_prop_t prop = LV_STYLE_PROP_ANY; in lv_obj_remove_style() local 208 if(style && style->prop_cnt == 0) prop = LV_STYLE_PROP_INV; in lv_obj_remove_style() 250 if(deleted && prop != LV_STYLE_PROP_INV) { in lv_obj_remove_style() [all …]
|
| D | lv_obj_style.h | 111 void lv_obj_refresh_style(lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop); 130 lv_style_value_t lv_obj_get_style_prop(const lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop); 139 bool lv_obj_has_style_prop(const lv_obj_t * obj, lv_style_selector_t selector, lv_style_prop_t prop… 148 void lv_obj_set_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_value_t value, 151 lv_style_res_t lv_obj_get_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_value_t *… 161 bool lv_obj_remove_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_selector_t selec…
|
| D | lv_obj.c | 941 … if(ts[t].prop == tr->props[j] && part_ts == part_act && state_ts >= state_act) break; in update_obj_state() 949 ts[tsi].prop = tr->props[j]; in update_obj_state() 1005 static lv_result_t lv_obj_set_any(lv_obj_t * obj, lv_prop_id_t id, const lv_property_t * prop) in lv_obj_set_any() argument 1011 if(prop->num) lv_obj_add_flag(obj, flag); in lv_obj_set_any() 1021 if(prop->num) lv_obj_add_state(obj, state); in lv_obj_set_any() 1030 static lv_result_t lv_obj_get_any(const lv_obj_t * obj, lv_prop_id_t id, lv_property_t * prop) in lv_obj_get_any() argument 1035 prop->id = id; in lv_obj_get_any() 1036 prop->num = obj->flags & flag; in lv_obj_get_any() 1040 prop->id = id; in lv_obj_get_any() 1042 prop->num = obj->state; in lv_obj_get_any() [all …]
|
| D | lv_obj_style_private.h | 38 lv_style_prop_t prop; member
|
| /lvgl-latest/src/libs/thorvg/ |
| D | tvgLottieModel.cpp | 51 … static_cast<LottieGradient*>(pair->obj)->colorStops = *static_cast<LottieColorStop*>(pair->prop); in reset() 52 static_cast<LottieColorStop*>(pair->prop)->frames = nullptr; in reset() 57 … static_cast<LottieSolid*>(pair->obj)->color = *static_cast<LottieColor*>(pair->prop); in reset() 58 static_cast<LottieColor*>(pair->prop)->frames = nullptr; in reset() 63 static_cast<LottieText*>(pair->obj)->doc = *static_cast<LottieTextDoc*>(pair->prop); in reset() 64 static_cast<LottieTextDoc*>(pair->prop)->frames = nullptr; in reset() 69 delete(pair->prop); in reset() 70 pair->prop = nullptr; in reset() 84 pair->prop = new LottieColorStop; in assign() 85 … *static_cast<LottieColorStop*>(pair->prop) = static_cast<LottieGradient*>(pair->obj)->colorStops; in assign() [all …]
|
| D | tvgLottieParser.h | 73 template<typename T> void parseKeyFrame(T& prop); 74 template<typename T> void parsePropertyInternal(T& prop); 75 …e type = LottieProperty::Type::Invalid, typename T> void parseProperty(T& prop, LottieObject* obj … 76 …ieProperty::Type type = LottieProperty::Type::Invalid, typename T> void parseSlotProperty(T& prop);
|
| D | tvgLottieModel.h | 148 virtual void override(LottieProperty* prop) in override() 264 void override(LottieProperty* prop) override in override() 266 this->doc = *static_cast<LottieTextDoc*>(prop); in override() 535 void override(LottieProperty* prop) override in override() 537 this->color = *static_cast<LottieColor*>(prop); in override() 550 void override(LottieProperty* prop) override in override() 552 this->color = *static_cast<LottieColor*>(prop); in override() 612 void override(LottieProperty* prop) override in override() 614 this->colorStops = *static_cast<LottieColorStop*>(prop); in override() 641 void override(LottieProperty* prop) override in override() [all …]
|
| D | tvgLottieExpressions.h | 54 … } else if (auto prop = static_cast<Property*>(jerry_object_get_native_ptr(bm_rt, nullptr))) { in result() local 55 out = (*prop)(frameNo); in result() 67 if (auto prop = static_cast<Property*>(jerry_object_get_native_ptr(bm_rt, nullptr))) { in result() local 68 out = (*prop)(frameNo); in result()
|
| D | tvgLottieParser.cpp | 363 void LottieParser::parseSlotProperty(T& prop) in parseSlotProperty() argument 366 if (KEY_AS("p")) parseProperty<type>(prop); in parseSlotProperty() 419 void LottieParser::parseKeyFrame(T& prop) in parseKeyFrame() argument 423 auto& frame = prop.newFrame(); in parseKeyFrame() 451 auto& frame2 = prop.nextFrame(); in parseKeyFrame() 466 void LottieParser::parsePropertyInternal(T& prop) in parsePropertyInternal() argument 470 getValue(prop.value); in parsePropertyInternal() 479 parseKeyFrame(prop); in parsePropertyInternal() 482 getValue(prop.value); in parsePropertyInternal() 486 prop.prepare(); in parsePropertyInternal() [all …]
|
| /lvgl-latest/tests/src/test_cases/ |
| D | test_style.c | 51 lv_style_prop_t prop = lv_style_register_prop(fake_flag); in test_custom_prop_ids() local 53 TEST_ASSERT_GREATER_THAN(LV_STYLE_LAST_BUILT_IN_PROP, prop); in test_custom_prop_ids() 56 TEST_ASSERT_EQUAL(LV_STYLE_NUM_BUILT_IN_PROPS + initial_custom_props, prop); in test_custom_prop_ids() 59 TEST_ASSERT_EQUAL(fake_flag, lv_style_prop_lookup_flags(prop)); in test_custom_prop_ids()
|
| /lvgl-latest/src/others/xml/ |
| D | lv_xml_component.c | 227 lv_xml_param_t * prop = lv_ll_ins_tail(&state->ctx.param_ll); in process_prop_element() local 228 prop->name = lv_strdup(lv_xml_get_value_of(attrs, "name")); in process_prop_element() 230 if(def) prop->def = lv_strdup(def); in process_prop_element() 231 else prop->def = NULL; in process_prop_element() 235 prop->type = lv_strdup(type); in process_prop_element()
|
| /lvgl-latest/scripts/gdb/lvglgdb/ |
| D | lvgl.py | 119 prop = values_and_props[j].prop 120 if prop == LV_STYLE_PROP_INV or prop == LV_STYLE_PROP_ANY: 199 prop = int(style.prop)
|
| /lvgl-latest/demos/flex_layout/ |
| D | lv_demo_flex_layout_view.c | 148 static const lv_style_prop_t prop[] = { in obj_child_node_checked_style_init() local 153 lv_style_transition_dsc_init(&tran, prop, lv_anim_path_ease_out, 300, 0, NULL); in obj_child_node_checked_style_init()
|