Implement debug view and load system fonts

This commit is contained in:
Héctor Ramón Jiménez 2019-11-03 04:39:11 +01:00
parent ef056d8489
commit 2c6bfdbc8c
17 changed files with 418 additions and 241 deletions

View file

@ -1,4 +1,4 @@
use crate::{Metrics, MouseCursor};
use crate::MouseCursor;
use raw_window_handle::HasRawWindowHandle;
@ -7,10 +7,10 @@ pub trait Windowed: super::Renderer + Sized {
fn new() -> Self;
fn draw(
fn draw<T: AsRef<str>>(
&mut self,
output: &Self::Output,
metrics: Option<Metrics>,
overlay: &[T],
target: &mut Self::Target,
) -> MouseCursor;
}