Add background_color to Settings

This commit is contained in:
Héctor Ramón Jiménez 2019-12-29 12:29:47 +01:00
parent c7b170da6d
commit f74ab463d4
6 changed files with 55 additions and 14 deletions

View file

@ -21,14 +21,15 @@
//! [`checkbox::Renderer`]: ../widget/checkbox/trait.Renderer.html
mod debugger;
#[cfg(debug_assertions)]
mod null;
mod windowed;
pub use debugger::Debugger;
pub use windowed::{Target, Windowed};
#[cfg(debug_assertions)]
mod null;
#[cfg(debug_assertions)]
pub use null::Null;
pub use windowed::{Target, Windowed};
use crate::{layout, Element};

View file

@ -1,4 +1,4 @@
use crate::MouseCursor;
use crate::{Color, MouseCursor};
use raw_window_handle::HasRawWindowHandle;
@ -19,6 +19,7 @@ pub trait Windowed: super::Renderer + Sized {
/// top of the GUI on most scenarios.
fn draw<T: AsRef<str>>(
&mut self,
clear_color: Color,
output: &Self::Output,
overlay: &[T],
target: &mut Self::Target,