summaryrefslogtreecommitdiffstats
path: root/winit/src/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-01-10 19:10:57 +0100
committerLibravatar GitHub <noreply@github.com>2020-01-10 19:10:57 +0100
commit9b8f86f843819e1823633c5b7f4a9f020b462476 (patch)
treed63eb36d7d81aa9b403385fe1865633863832266 /winit/src/application.rs
parent84f1a936db93c16255a07f079c47e351635586f4 (diff)
parente45497dfd6d401d8da74a8167b876a20690ddcac (diff)
downloadiced-9b8f86f843819e1823633c5b7f4a9f020b462476.tar.gz
iced-9b8f86f843819e1823633c5b7f4a9f020b462476.tar.bz2
iced-9b8f86f843819e1823633c5b7f4a9f020b462476.zip
Merge pull request #150 from hecrj/refactor/move-renderer-traits
Move `Debugger` and `Windowed` traits
Diffstat (limited to 'winit/src/application.rs')
-rw-r--r--winit/src/application.rs8
1 files changed, 4 insertions, 4 deletions
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: <Self::Renderer as Windowed>::Settings,
+ renderer_settings: <Self::Renderer as window::Renderer>::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);
- <Self::Renderer as Windowed>::Target::new(
+ <Self::Renderer as window::Renderer>::Target::new(
&window, width, height, dpi as f32, &renderer,
)
};