lvgl / lv_binding_rust

LVGL bindings for Rust. A powerful and easy-to-use embedded GUI with many widgets, advanced visual effects (opacity, antialiasing, animations) and low memory requirements (16K RAM, 64K Flash).
MIT License
687 stars 71 forks source link

Request: implement lv_style_get_prop #136

Closed cydergoth closed 1 year ago

cydergoth commented 1 year ago
lv_style_value_t v;
lv_res_t res = lv_style_get_prop(&style, LV_STYLE_BG_COLOR, &v);
if(res == LV_RES_OK) {  /*Found*/
    do_something(v.color);
}

From : https://docs.lvgl.io/master/overview/style.html

nia-e commented 1 year ago

WIll get to this tomorrow, the animation stuff is turning out to be a massive pain. But thanks!