/lvgl-latest/demos/smartwatch/ |
D | lv_demo_smartwatch_list.c | 30 const lv_image_dsc_t * icon; /**< icon of the app. Shown on the app list */ member 61 void lv_demo_smartwatch_register_app_cb(const char * name, const lv_image_dsc_t * icon, lv_obj_t **… in lv_demo_smartwatch_register_app_cb() argument 68 apps[num_apps].icon = icon; in lv_demo_smartwatch_register_app_cb() 70 add_external_app(name, num_apps, icon); in lv_demo_smartwatch_register_app_cb() 184 lv_obj_t * icon = lv_image_create(panel); in add_external_app() local 185 lv_image_set_src(icon, img); in add_external_app() 186 lv_obj_set_width(icon, LV_SIZE_CONTENT); in add_external_app() 187 lv_obj_set_height(icon, LV_SIZE_CONTENT); in add_external_app() 188 lv_obj_set_align(icon, LV_ALIGN_LEFT_MID); in add_external_app() 189 lv_obj_add_flag(icon, LV_OBJ_FLAG_ADV_HITTEST); in add_external_app() [all …]
|
D | lv_demo_smartwatch_settings.c | 107 lv_obj_t * icon = lv_image_create(panel); in lv_demo_smartwatch_settings_add_slider() local 108 lv_image_set_src(icon, img); in lv_demo_smartwatch_settings_add_slider() 109 lv_obj_set_width(icon, LV_SIZE_CONTENT); in lv_demo_smartwatch_settings_add_slider() 110 lv_obj_set_height(icon, LV_SIZE_CONTENT); in lv_demo_smartwatch_settings_add_slider() 111 lv_obj_set_align(icon, LV_ALIGN_LEFT_MID); in lv_demo_smartwatch_settings_add_slider() 112 lv_obj_add_flag(icon, LV_OBJ_FLAG_ADV_HITTEST); in lv_demo_smartwatch_settings_add_slider() 113 lv_obj_remove_flag(icon, LV_OBJ_FLAG_SCROLLABLE); in lv_demo_smartwatch_settings_add_slider() 114 lv_image_set_scale(icon, 150); in lv_demo_smartwatch_settings_add_slider() 148 lv_obj_t * icon = lv_image_create(panel); in lv_demo_smartwatch_settings_add_toggle() local 149 lv_image_set_src(icon, img); in lv_demo_smartwatch_settings_add_toggle() [all …]
|
D | lv_demo_smartwatch_weather.c | 104 void lv_demo_smartwatch_set_weather(int temp, uint8_t icon, bool day, int hour, int minute, const c… in lv_demo_smartwatch_set_weather() argument 110 set_weather_icon(weather_current_icon, icon, day); in lv_demo_smartwatch_set_weather() 113 lv_demo_smartwatch_home_set_weather(temp, get_weather_icon(icon, day)); in lv_demo_smartwatch_set_weather() 159 lv_obj_t * icon = lv_image_create(panel); in lv_demo_smartwatch_weather_add_daily() local 160 lv_obj_set_width(icon, LV_SIZE_CONTENT); in lv_demo_smartwatch_weather_add_daily() 161 lv_obj_set_height(icon, LV_SIZE_CONTENT); in lv_demo_smartwatch_weather_add_daily() 162 lv_obj_set_align(icon, LV_ALIGN_CENTER); in lv_demo_smartwatch_weather_add_daily() 163 lv_obj_add_flag(icon, LV_OBJ_FLAG_ADV_HITTEST); in lv_demo_smartwatch_weather_add_daily() 164 lv_obj_remove_flag(icon, LV_OBJ_FLAG_SCROLLABLE); in lv_demo_smartwatch_weather_add_daily() 165 lv_image_set_scale(icon, 150); in lv_demo_smartwatch_weather_add_daily() [all …]
|
D | lv_demo_smartwatch.h | 153 void lv_demo_smartwatch_register_app_cb(const char * name, const lv_image_dsc_t * icon, lv_obj_t **… 203 void lv_demo_smartwatch_set_weather(int temp, uint8_t icon, bool day, int hour, int minute, const c…
|
D | lv_demo_smartwatch_weather.h | 50 void lv_demo_smartwatch_home_set_weather(int temp, const lv_img_dsc_t * icon);
|
D | lv_demo_smartwatch_home.h | 84 void lv_demo_smartwatch_home_set_weather(int temp, const lv_img_dsc_t * icon);
|
/lvgl-latest/examples/widgets/menu/ |
D | lv_example_menu_5.c | 12 static lv_obj_t * create_text(lv_obj_t * parent, const char * icon, const char * txt, 15 … const char * icon, const char * txt, int32_t min, int32_t max, int32_t val); 17 const char * icon, const char * txt, bool chk); 146 static lv_obj_t * create_text(lv_obj_t * parent, const char * icon, const char * txt, in create_text() argument 154 if(icon) { in create_text() 156 lv_image_set_src(img, icon); in create_text() 166 if(builder_variant == LV_MENU_ITEM_BUILDER_VARIANT_2 && icon && txt) { in create_text() 174 static lv_obj_t * create_slider(lv_obj_t * parent, const char * icon, const char * txt, int32_t min… in create_slider() argument 177 lv_obj_t * obj = create_text(parent, icon, txt, LV_MENU_ITEM_BUILDER_VARIANT_2); in create_slider() 184 if(icon == NULL) { in create_slider() [all …]
|
/lvgl-latest/demos/music/ |
D | lv_demo_music_main.c | 528 lv_obj_t * icon; in create_icon_box() local 533 icon = lv_image_create(cont); in create_icon_box() 534 lv_image_set_src(icon, &img_lv_demo_music_icon_1); in create_icon_box() 535 icon = lv_image_create(cont); in create_icon_box() 536 lv_image_set_src(icon, &img_lv_demo_music_icon_2); in create_icon_box() 537 icon = lv_image_create(cont); in create_icon_box() 538 lv_image_set_src(icon, &img_lv_demo_music_icon_3); in create_icon_box() 539 icon = lv_image_create(cont); in create_icon_box() 540 lv_image_set_src(icon, &img_lv_demo_music_icon_4); in create_icon_box() 585 lv_obj_t * icon; in create_ctrl_box() local [all …]
|
D | lv_demo_music_list.c | 157 lv_obj_t * icon = lv_obj_get_child(btn, 0); in lv_demo_music_list_button_check() local 161 lv_image_set_src(icon, &img_lv_demo_music_btn_list_pause); in lv_demo_music_list_button_check() 166 lv_image_set_src(icon, &img_lv_demo_music_btn_list_play); in lv_demo_music_list_button_check() 200 lv_obj_t * icon = lv_image_create(btn); in add_list_button() local 201 lv_image_set_src(icon, &img_lv_demo_music_btn_list_play); in add_list_button() 202 lv_obj_set_grid_cell(icon, LV_GRID_ALIGN_START, 0, 1, LV_GRID_ALIGN_CENTER, 0, 2); in add_list_button()
|
/lvgl-latest/src/widgets/win/ |
D | lv_win.c | 64 lv_obj_t * lv_win_add_button(lv_obj_t * win, const void * icon, int32_t btn_w) in lv_win_add_button() argument 70 if(icon) { in lv_win_add_button() 72 lv_image_set_src(img, icon); in lv_win_add_button()
|
D | lv_win.h | 51 lv_obj_t * lv_win_add_button(lv_obj_t * win, const void * icon, int32_t btn_w);
|
/lvgl-latest/demos/high_res/ |
D | lv_demo_high_res_top_margin.c | 155 lv_obj_t * icon = lv_image_create(parent); in create_icon() local 156 lv_obj_add_style(icon, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_A8_IMG], 0); in create_icon() 157 subject->user_data = icon; in create_icon() 158 lv_obj_set_user_data(icon, img_dsc_pair); in create_icon() 159 lv_obj_add_flag(icon, LV_OBJ_FLAG_CLICKABLE); in create_icon() 160 lv_obj_add_event_cb(icon, icon_clicked_cb, LV_EVENT_CLICKED, c); in create_icon() 161 return icon; in create_icon() 182 lv_obj_t * icon = subject->user_data; in icon_clicked_cb() local 183 lv_image_dsc_t ** pair = lv_obj_get_user_data(icon); in icon_clicked_cb() 184 int32_t value = icon == clicked_icon && !lv_subject_get_int(subject); in icon_clicked_cb() [all …]
|
D | lv_demo_high_res_home.c | 170 lv_obj_set_height(logo, c->sz->icon[1]); in lv_demo_high_res_home() 255 lv_obj_t * icon = lv_image_create(app_card); in app_card_create() local 256 lv_obj_set_size(icon, icon_img_dsc->header.w, icon_img_dsc->header.h); in app_card_create() 257 lv_image_set_inner_align(icon, LV_IMAGE_ALIGN_CENTER); in app_card_create() 258 lv_image_set_src(icon, icon_img_dsc); in app_card_create() 259 lv_obj_set_style_bg_opa(icon, LV_OPA_COVER, 0); in app_card_create() 260 lv_obj_set_style_bg_color(icon, lv_color_white(), 0); in app_card_create() 261 lv_obj_set_style_radius(icon, LV_COORD_MAX, 0); in app_card_create() 262 lv_obj_add_style(icon, &c->styles[STYLE_COLOR_ACCENT][STYLE_TYPE_A8_IMG], 0); in app_card_create() 263 lv_obj_add_flag(icon, LV_OBJ_FLAG_EVENT_BUBBLE); in app_card_create()
|
D | lv_demo_high_res_app_thermostat.c | 281 lv_obj_set_size(minus, c->sz->icon[ICON_MD], c->sz->icon[ICON_MD]); in create_widget2_value() 299 lv_obj_set_size(plus, c->sz->icon[ICON_MD], c->sz->icon[ICON_MD]); in create_widget2_value() 412 lv_obj_t * icon = lv_image_create(setting); in create_widget3_setting() local 413 lv_image_set_src(icon, img_dsc); in create_widget3_setting() 414 lv_image_set_inner_align(icon, LV_IMAGE_ALIGN_CENTER); in create_widget3_setting() 415 lv_obj_set_size(icon, c->sz->icon[ICON_XL], c->sz->icon[ICON_XL]); in create_widget3_setting() 416 lv_obj_set_style_bg_color(icon, lv_color_white(), 0); in create_widget3_setting() 417 lv_obj_set_style_bg_opa(icon, active ? LV_OPA_COVER : LV_OPA_40, 0); in create_widget3_setting() 418 lv_obj_set_style_radius(icon, LV_COORD_MAX, 0); in create_widget3_setting() 419 lv_obj_set_style_shadow_width(icon, 50, 0); in create_widget3_setting() [all …]
|
D | lv_demo_high_res_app_about.c | 133 lv_obj_set_width(left, c->sz->icon[3]); in lv_demo_high_res_app_about() 136 lv_obj_set_width(play_pause, c->sz->icon[4]); in lv_demo_high_res_app_about() 139 lv_obj_set_width(right, c->sz->icon[3]); in lv_demo_high_res_app_about() 195 lv_obj_set_size(button, c->sz->icon[4], c->sz->icon[1]); in create_button()
|
D | lv_demo_high_res_private.h | 153 int32_t icon[ICON_COUNT]; member
|
/lvgl-latest/src/widgets/list/ |
D | lv_list.c | 85 lv_obj_t * lv_list_add_button(lv_obj_t * list, const void * icon, const char * txt) in lv_list_add_button() argument 93 if(icon) { in lv_list_add_button() 95 lv_image_set_src(img, icon); in lv_list_add_button()
|
D | lv_list.h | 57 lv_obj_t * lv_list_add_button(lv_obj_t * list, const void * icon, const char * txt);
|
/lvgl-latest/demos/ebike/ |
D | lv_demo_ebike.c | 178 lv_obj_t * icon = lv_event_get_target(e); in menu_item_click_event_cb() local 179 lv_obj_t * menu_cont = lv_obj_get_parent(icon); in menu_item_click_event_cb() 180 uint32_t idx = lv_obj_get_index(icon); in menu_item_click_event_cb()
|
/lvgl-latest/docs/details/widgets/ |
D | list.rst | 40 :cpp:expr:`lv_list_add_button(list, icon, text)` adds a full-width button with an icon
|
D | win.rst | 76 - :cpp:expr:`lv_win_add_button(win, icon, button_width)` adds a Button with the 78 ``icon`` is not NULL, an image is created, centered on the button, using ``icon``
|
D | menu.rst | 25 - Back button icon: :ref:`lv_image` 30 - Back button icon: :ref:`lv_image`
|
/lvgl-latest/src/widgets/msgbox/ |
D | lv_msgbox.c | 166 lv_obj_t * lv_msgbox_add_header_button(lv_obj_t * obj, const void * icon) in lv_msgbox_add_header_button() argument 179 if(icon) { in lv_msgbox_add_header_button() 181 lv_image_set_src(img, icon); in lv_msgbox_add_header_button()
|
D | lv_msgbox.h | 66 lv_obj_t * lv_msgbox_add_header_button(lv_obj_t * obj, const void * icon);
|
/lvgl-latest/docs/details/integration/chip/ |
D | alif.rst | 180 it by either clicking the gear icon on the bottom bar or by navigating to the CMSIS panel 182 graphical editor tab called "Manage Solution" with a gear icon. 187 "First time pack installation". Click the play icon at the top of the CMSIS left side panel. 190 Now you can click the hammer icon next to the play icon to compile the project. 194 play icon. It prepares some files as a prior step to flashing. 196 Open the dropdown again and choose "Program with Security Toolkit". Click the play icon.
|