Commit graph

9 commits

Author SHA1 Message Date
638a449343 Make naming scheme more consistent
Constructor functions that set/overwrite a value are called with_*,
functions that add a value are called and_*.
2024-03-09 14:53:15 +01:00
4f14d70152 Give widget access to taffy layout 2024-03-09 00:07:59 +01:00
dc6265f837 Add Text widget 2024-03-07 23:43:12 +01:00
fe33465564 Make widgets generic over global state 2024-03-07 16:34:10 +01:00
bea5e03834 Add Widget and Node 2024-03-07 13:58:10 +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
6b62c3fd54 Tweak Widget naming and docs 2024-03-05 00:42:05 +01:00
fd1b337cd1 Add Background widget 2024-03-04 00:26:20 +01:00
ba68e34d0d Add Widget and BoxedWidget 2024-03-04 00:25:43 +01:00