2019-10-09 05:36:49 +02:00
|
|
|
use crate::MouseCursor;
|
|
|
|
|
|
|
|
|
|
use raw_window_handle::HasRawWindowHandle;
|
|
|
|
|
|
|
|
|
|
pub trait Windowed: super::Renderer {
|
|
|
|
|
type Target;
|
|
|
|
|
|
|
|
|
|
fn new<W: HasRawWindowHandle>(window: &W) -> Self;
|
|
|
|
|
|
|
|
|
|
fn target(&self, width: u16, height: u16) -> Self::Target;
|
|
|
|
|
|
|
|
|
|
fn draw(
|
|
|
|
|
&mut self,
|
2019-10-11 22:15:39 +02:00
|
|
|
output: &Self::Output,
|
2019-10-09 05:36:49 +02:00
|
|
|
target: &mut Self::Target,
|
|
|
|
|
) -> MouseCursor;
|
|
|
|
|
}
|