render: add api for setting the rectangle on a surface

This commit is contained in:
2024-11-22 15:54:06 +01:00
parent 7b6cf42e4f
commit 73c3ced3d7
2 changed files with 8 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ pub trait Surface: Default + Clone + Debug {
fn clear_shader(&mut self);
fn rect(&self) -> Rectangle<u8, Virtual>;
fn set_rect(&mut self, rect: &Rectangle<u8, Virtual>);
}
pub trait Framed {