render: add api for setting the rectangle on a surface
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user