pub trait Surface: 'static {
type DisplayList: DisplayList;
// Required methods
fn draw(
&mut self,
display_list: &Self::DisplayList,
) -> Result<(), &'static str>;
fn present(self) -> Result<(), &'static str>;
}Expand description
A surface represents a render target. That can be usually a window or a texture.