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

More infrastructure for `Flex` layout #134

Closed nia-e closed 1 year ago

nia-e commented 1 year ago

Closes #132

nia-e commented 1 year ago

@cydergoth let me know if there's anything else regarding this. I noticed the lv_style_set_flex_grow fn exists also but it doesn't seem to have any preset constants so letting it just take an arbitrary u8 should be Fine?

cydergoth commented 1 year ago
grow -- a value to set how much free space to take proportionally to other growing items.

From the docs, I think we're good with a u8

BTW, on the area one, I think you need to export the area mod?

nia-e commented 1 year ago

Gah, had missed that. Thanks! Gonna merge this now.

cydergoth commented 1 year ago

Gah, had missed that. Thanks! Gonna merge this now.

No worries, I missed it too :-D