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

Function __wrap_lv_obj_create

Tactility/Source/lvgl/wrappers/obj.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20lv_obj_t* __wrap_lv_obj_create(lv_obj_t* parent) {
21 auto obj = __real_lv_obj_create(parent);
22 if (lvgl_get_ui_density() == LVGL_UI_DENSITY_COMPACT) {
23 lv_obj_set_style_pad_all(obj, 2, LV_STATE_DEFAULT);
24 lv_obj_set_style_pad_gap(obj, 2, LV_STATE_DEFAULT);
25 lv_obj_set_style_radius(obj, 3, LV_STATE_DEFAULT);
26 lv_obj_set_style_border_width(obj, 1, LV_STATE_DEFAULT);
27 }
28 return obj;
29}
30
31}
32

Callers

nothing calls this directly

Calls 1

lvgl_get_ui_densityFunction · 0.85

Tested by

no test coverage detected