Commit graph

12 commits

Author SHA1 Message Date
dfc22b0008 Reformat with the 2024 rustfmt style edition 2025-02-22 15:45:27 +01:00
d69557daf6 Fix crash when printing some text 2024-03-17 17:35:44 +01:00
ef5f0e3af4 Add Image widget 2024-03-09 22:46:55 +01:00
2c8f9685b9 Add Block widget 2024-03-09 00:52:14 +01:00
e31eea8178 Add iterator over points in rect 2024-03-09 00:19:02 +01:00
1e73c01845 Switch to sRGBA everywhere 2024-03-08 17:40:17 +01:00
c9dd8051dd Extract color conversion functions 2024-03-08 17:23:54 +01:00
dc6265f837 Add Text widget 2024-03-07 23:43:12 +01:00
eb04b3fb50 Rip out buffer and widgets
I've decided to use the "taffy" crate for layouting. To make the API
somewhat bearable to use, I've decided to perform all rendering in a
good ol' rgb image buffer (in this case, an ImageBuffer from the "image"
crate). The pixels will be converted to their final representation just
before being sent to whatever device will be displaying them.

I've removed the buffer and the color traits because they're no longer
necessary. I've also removed the existing widgets because the widget
system will have to be redesigned to work well with taffy.
2024-03-06 00:36:19 +01:00
f3f8af39d4 Use Color in View 2024-03-05 00:21:48 +01:00
fd1b337cd1 Add Background widget 2024-03-04 00:26:20 +01:00
b31c2de425 Add View 2024-03-03 23:04:20 +01:00