Cannot implement From<Color> for new types #28
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rafaelcaricio/lvgl-rs#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
UIobject requires anembedded_graphicsdisplay to draw to, and the provided display needs to use aPixelColorthat also implementsFrom<Color>. However, theColortype does not export any fields or functions that provide either alv_color_t, or RGBA fields.This makes it impossible to convert from the
Colortype, as no color data is provided; this means that only displays that useRgb565orRgb888work (as they have crate-provided implementations).Either the
rawfield needs to be public:d442ab99cc/lvgl/src/support.rs (L18)or a function/functions that return RGBA data are needed.
Check out this https://github.com/rafaelcaricio/lvgl-rs/pull/29
I'm not sure the
alphainformation is provided by LVGL. 🤔You can reopen if you find this is not useful. Also feel free to send pull requests. Unfortunately, I am short on free time lately to work on
lvgl-rs. I hope to be back at it in a few weeks.