render: add opacity to surfaces
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user