From e45497dfd6d401d8da74a8167b876a20690ddcac Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 10 Jan 2020 01:58:55 +0100 Subject: Move `Debugger` and `Windowed` to a better location We move `renderer::Debugger` to `layout::Debugger` and `renderer::Windowed` to `window::Renderer`. --- winit/src/application.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'winit/src/application.rs') diff --git a/winit/src/application.rs b/winit/src/application.rs index 8529c99c..10c5a7ac 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -1,7 +1,6 @@ use crate::{ container, conversion, input::{keyboard, mouse}, - renderer::{Target, Windowed}, subscription, window, Cache, Clipboard, Command, Container, Debug, Element, Event, Length, MouseCursor, Settings, Subscription, UserInterface, }; @@ -18,7 +17,7 @@ pub trait Application: Sized { /// The renderer to use to draw the [`Application`]. /// /// [`Application`]: trait.Application.html - type Renderer: Windowed + container::Renderer; + type Renderer: window::Renderer + container::Renderer; /// The type of __messages__ your [`Application`] will produce. /// @@ -83,10 +82,11 @@ pub trait Application: Sized { /// [`Application`]: trait.Application.html fn run( settings: Settings, - renderer_settings: ::Settings, + renderer_settings: ::Settings, ) where Self: 'static, { + use window::{Renderer as _, Target as _}; use winit::{ event::{self, WindowEvent}, event_loop::{ControlFlow, EventLoop}, @@ -147,7 +147,7 @@ pub trait Application: Sized { let mut target = { let (width, height) = to_physical(size, dpi); - ::Target::new( + ::Target::new( &window, width, height, dpi as f32, &renderer, ) }; -- cgit