Home
last modified time | relevance | path

Searched refs:lv_subject_get_int (Results 1 – 22 of 22) sorted by relevance

/lvgl-latest/tests/src/test_cases/
Dtest_observer.c26 current_v = lv_subject_get_int(subject); in observer_int()
38 TEST_ASSERT_EQUAL(10, lv_subject_get_int(&subject)); in test_observer_add_remove()
43 TEST_ASSERT_EQUAL(15, lv_subject_get_int(&subject)); in test_observer_add_remove()
55 TEST_ASSERT_EQUAL(5, lv_subject_get_int(&subject)); in test_observer_int()
59 TEST_ASSERT_EQUAL(10, lv_subject_get_int(&subject)); in test_observer_int()
63 TEST_ASSERT_EQUAL(15, lv_subject_get_int(&subject)); in test_observer_int()
68 TEST_ASSERT_EQUAL(15, lv_subject_get_int(&subject)); in test_observer_int()
72 TEST_ASSERT_EQUAL(15, lv_subject_get_int(&subject)); in test_observer_int()
76 TEST_ASSERT_EQUAL(15, lv_subject_get_int(&subject)); in test_observer_int()
314 TEST_ASSERT_EQUAL(1, lv_subject_get_int(&subject)); in test_observer_button_checked()
[all …]
Dtest_bindings.c199 int32_t v = lv_subject_get_int(subject); in chart_type_observer_cb()
/lvgl-latest/examples/others/observer/
Dlv_example_observer_3.c123 int32_t hour = lv_subject_get_int(lv_subject_get_group_element(subject, 0)); in time_observer_cb()
124 int32_t minute = lv_subject_get_int(lv_subject_get_group_element(subject, 1)); in time_observer_cb()
125 int32_t format = lv_subject_get_int(lv_subject_get_group_element(subject, 2)); in time_observer_cb()
126 int32_t am_pm = lv_subject_get_int(lv_subject_get_group_element(subject, 3)); in time_observer_cb()
143 int32_t v = lv_subject_get_int(subject); in hour_roller_options_update()
Dlv_example_observer_5.c80 fw_update_state_t status = lv_subject_get_int(&fw_update_status_subject); in fw_update_win_observer_cb()
125 if(lv_subject_get_int(&fw_update_status_subject) != FW_UPDATE_STATE_CANCEL) { in connect_timer_cb()
133 if(lv_subject_get_int(&fw_update_status_subject) == FW_UPDATE_STATE_CANCEL) { in download_timer_cb()
138 int32_t v = lv_subject_get_int(&fw_download_percent_subject); in download_timer_cb()
156 fw_update_state_t state = lv_subject_get_int(&fw_update_status_subject); in fw_upload_manager_observer_cb()
Dlv_example_observer_2.c32 int32_t v = lv_subject_get_int(subject); in engine_state_observer_cb()
73 switch(lv_subject_get_int(subject)) { in info_label_observer_cb()
Dlv_example_observer_6.c43 …if(lv_subject_get_int(&theme_subject) == THEME_MODE_LIGHT) lv_subject_set_int(&theme_subject, THEM… in switch_theme_event_cb()
64 theme_mode_t m = lv_subject_get_int(&theme_subject); in my_panel_style_observer_cb()
134 theme_mode_t m = lv_subject_get_int(&theme_subject); in my_button_style_observer_cb()
Dlv_example_observer_4.c80 int32_t cur_v = lv_subject_get_int(subject); in cont_observer_cb()
176 int32_t cur_v = lv_subject_get_int(subject); in btn_observer_cb()
187 int32_t cur_v = lv_subject_get_int(subject); in indicator_observer_cb()
/lvgl-latest/demos/high_res/
Dlv_demo_high_res_api_example.c93 LV_LOG_USER("%s output subject value: %"PRId32, subject_name, lv_subject_get_int(subject)); in output_subject_observer_cb()
98 if(lv_subject_get_int(subject)) { in locked_observer_cb()
126 int32_t minutes = lv_subject_get_int(&api->subjects.minute); in clock_timer_cb()
130 int32_t hour = lv_subject_get_int(&api->subjects.hour); in clock_timer_cb()
Dlv_demo_high_res_top_margin.c111 …lv_image_set_src(health_icon, c->imgs[lv_subject_get_int(&c->top_margin_health_subject) ? IMG_HEAL… in lv_demo_high_res_top_margin_create()
119 …lv_image_set_src(settings_icon, c->imgs[lv_subject_get_int(&c->top_margin_setting_subject) ? IMG_S… in lv_demo_high_res_top_margin_create()
184 int32_t value = icon == clicked_icon && !lv_subject_get_int(subject); in icon_clicked_cb()
327 …lv_obj_set_style_bg_opa(celsius_label_cont, 255 * lv_subject_get_int(&c->temperature_units_are_cel… in create_settings()
330 …lv_obj_set_style_bg_opa(fahrenheit_label_cont, 255 * !lv_subject_get_int(&c->temperature_units_are… in create_settings()
382 lv_subject_get_int(&c->api.subjects.month_day), in date_observer_cb()
392 lv_label_set_text_fmt(time_label, "%02d:%02d", lv_subject_get_int(&c->api.subjects.hour), in time_observer_cb()
393 lv_subject_get_int(&c->api.subjects.minute)); in time_observer_cb()
Dlv_demo_high_res_app_smart_home.c185 lv_arc_set_value(arc, lv_map(lv_subject_get_int(subject), 0, EV_CHARGING_RANGE_END, 0, 100)); in charging_arc_observer()
191 …lv_label_set_text_fmt(label, "%"LV_PRId32"%%", lv_map(lv_subject_get_int(subject), 0, EV_CHARGING_… in charging_percent_label_observer()
197 …int32_t v_range_time_to_full = lv_map(lv_subject_get_int(subject), 0, EV_CHARGING_RANGE_END, 72, 0… in charging_time_until_full_label_observer()
280 bool locked = lv_subject_get_int(subject); in widget2_slider_locked_observer_cb()
312 lv_slider_set_value(slider, lv_subject_get_int(&c->api.subjects.locked) ? 100 : 0, LV_ANIM_OFF); in create_widget2()
398 …lv_image_set_src(play_pause_img, c->imgs[lv_subject_get_int(&c->api.subjects.music_play) ? IMG_PLA… in create_widget3()
Dlv_demo_high_res_home.c304 lv_snprintf(buf, sizeof(buf), "%02"LV_PRId32, lv_subject_get_int(&c->api.subjects.hour)); in time_observer_cb()
307 lv_snprintf(buf, sizeof(buf), ":%02"LV_PRId32, lv_subject_get_int(&c->api.subjects.minute)); in time_observer_cb()
321 lv_snprintf(buf, sizeof(buf), "%"PRId32" %s", lv_subject_get_int(&c->api.subjects.month_day), in date_observer_cb()
330lv_subject_get_int(subject) ? "H: 19\xc2\xb0 L: 10\xc2\xb0" : "H: 66.2\xc2\xb0 L: 50\xc2\xb0"); in hi_lo_observer_cb()
Dlv_demo_high_res_util.c605 int32_t val = lv_subject_get_int(temperature_subject); in label_text_temperature_cb()
609 if(!lv_subject_get_int(&c->temperature_units_are_celsius)) { in label_text_temperature_cb()
Dlv_demo_high_res_app_ev_charging.c154 anim_state_apply(anim_state, lv_subject_get_int(&c->ev_charging_progress)); in lv_demo_high_res_app_ev_charging()
585 int32_t start_v = lv_subject_get_int(&c->ev_charging_progress); in charging_status_box_clicked_cb()
Dlv_demo_high_res_app_smart_meter.c345 uint32_t idx = lv_subject_get_int(&c->smart_meter_selected_bar); in widget2_chart_event_draw_task_cb()
558 int32_t idx = lv_subject_get_int(subject); in widget3_chart_selected_day_observer_cb()
Dlv_demo_high_res_app_thermostat.c472 lv_arc_set_value(arc, (lv_subject_get_int(subject) + 5) / 10); in temperature_arc_observer_cb()
/lvgl-latest/demos/ebike/
Dlv_demo_ebike_stats.c169 lv_buttonmatrix_set_selected_button(btnm, lv_subject_get_int(&subject_mode)); in tabs_create()
177 int32_t week = lv_subject_get_int(&subject_week); in left_click_event_cb()
187 int32_t week = lv_subject_get_int(&subject_week); in right_click_event_cb()
199 int32_t week = lv_subject_get_int(&subject_week); in current_week_observer_cb()
214 stat_mode_t mode = lv_subject_get_int(&subject_mode); in current_data_objserver_cb()
215 int32_t day = lv_subject_get_int(&subject_day); in current_data_objserver_cb()
305 uint32_t day = lv_subject_get_int(&subject_day); in chart_draw_event_cb()
318 lv_snprintf(buf, sizeof(buf), _("March %d"), lv_subject_get_int(&subject_day)); in chart_draw_event_cb()
401 int32_t week = lv_subject_get_int(&subject_week); in chart_gesture_event_cb()
419 int32_t week = lv_subject_get_int(&subject_week); in chart_week_observer_cb()
[all …]
Dlv_demo_ebike_home.c109 lv_anim_set_values(&a, lv_subject_get_int(&ebike_subject_speed_arc), v); in roller_anim_timer_cb()
121 int32_t speed = lv_subject_get_int(subject); in speed_label_observer_cb()
131 int32_t speed = lv_subject_get_int(subject); in speed_roller_10_observer_cb()
138 int32_t speed = lv_subject_get_int(subject); in speed_roller_1_observer_cb()
Dlv_demo_ebike.c207 uint32_t lang_new = lv_subject_get_int(subject); in language_observer_cb()
/lvgl-latest/examples/libs/tiny_ttf/
Dlv_example_tiny_ttf_3.c51 int32_t size = lv_subject_get_int(subject); in font_size_observer_cb()
/lvgl-latest/docs/details/other-components/
Dobserver.rst50 int32_t v = lv_subject_get_int(subject);
109 - **Integer** ``int32_t lv_subject_get_int(lv_subject_t * subject)``
238 int32_t mode = lv_subject_get_int(subject_mode);
239 int32_t value = lv_subject_get_int(subject_value);
/lvgl-latest/src/others/observer/
Dlv_observer.h93 int32_t lv_subject_get_int(lv_subject_t * subject);
Dlv_observer.c98 int32_t lv_subject_get_int(lv_subject_t * subject) in lv_subject_get_int() function