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

Function statusbar_icon_remove

Tactility/Source/lvgl/Statusbar.cpp:265–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265void statusbar_icon_remove(int8_t id) {
266 if (LOGGER.isLoggingDebug()) {
267 LOGGER.debug("id {}: remove", id);
268 }
269 check(id >= 0 && id < STATUSBAR_ICON_LIMIT);
270 statusbar_data.mutex.lock();
271 StatusbarIcon* icon = &statusbar_data.icons[id];
272 icon->claimed = false;
273 icon->visible = false;
274 icon->image = "";
275 statusbar_data.mutex.unlock();
276 statusbar_data.pubsub->publish(nullptr);
277}
278
279void statusbar_icon_set_image(int8_t id, const std::string& image) {
280 if (LOGGER.isLoggingDebug()) {

Callers 3

onStopMethod · 0.85
~StatusbarServiceMethod · 0.85
onStopMethod · 0.85

Calls 6

isLoggingDebugMethod · 0.80
debugMethod · 0.80
publishMethod · 0.80
checkFunction · 0.50
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected