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.
This commit is contained in:
parent
04ed092c4f
commit
eb04b3fb50
13 changed files with 38 additions and 300 deletions
|
|
@ -1,11 +0,0 @@
|
|||
use palette::Srgb;
|
||||
|
||||
pub trait Color: Copy {
|
||||
/// Convert to an sRGB color.
|
||||
///
|
||||
/// Useful for debugging or dithering.
|
||||
fn to_srgb(self) -> Srgb;
|
||||
|
||||
/// Combine two colors by putting one "over" the other.
|
||||
fn over(self, below: Self) -> Self;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue