MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / update_icon

Function update_icon

Tactility/Source/lvgl/Statusbar.cpp:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153static void update_icon(lv_obj_t* image, const StatusbarIcon* icon) {
154 if (!icon->image.empty() && icon->visible && icon->claimed) {
155 lv_image_set_src(image, icon->image.c_str());
156 lv_obj_remove_flag(image, LV_OBJ_FLAG_HIDDEN);
157 } else {
158 lv_obj_add_flag(image, LV_OBJ_FLAG_HIDDEN);
159 }
160}
161
162lv_obj_t* statusbar_create(lv_obj_t* parent) {
163 statusbar_class.height_def = statusbar_get_height();

Callers 2

statusbar_createFunction · 0.85
update_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected