render: add opacity to surfaces

This commit is contained in:
2024-11-24 18:51:51 +01:00
parent 43c3344418
commit b5e1b114f6
2 changed files with 15 additions and 2 deletions

View File

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