1
0
Fork 0
forked from wry/wry

damage: add damage queue

This commit is contained in:
Julian Orth 2024-09-07 16:54:25 +02:00
parent 9f98603121
commit 92f7cb56fd
2 changed files with 63 additions and 8 deletions

View file

@ -3,6 +3,8 @@ mod region;
#[cfg(test)]
mod tests;
#[expect(unused_imports)]
pub use region::DamageQueue;
pub use region::RegionBuilder;
use {
jay_algorithms::rect::RectRaw,
@ -16,7 +18,7 @@ pub struct Rect {
raw: RectRaw,
}
#[derive(Clone, Eq, PartialEq, Debug)]
#[derive(Clone, Eq, PartialEq, Debug, Default)]
pub struct Region {
rects: SmallVec<[RectRaw; 1]>,
extents: Rect,