diff options
author | 2020-01-10 01:58:55 +0100 | |
---|---|---|
committer | 2020-01-10 01:58:55 +0100 | |
commit | e45497dfd6d401d8da74a8167b876a20690ddcac (patch) | |
tree | 617ba841d32009092589a96516deb0dea10c656d /native/src/renderer | |
parent | d15d1156bd0c7fa111d1c59bea11fd58b9cc63b1 (diff) | |
download | iced-e45497dfd6d401d8da74a8167b876a20690ddcac.tar.gz iced-e45497dfd6d401d8da74a8167b876a20690ddcac.tar.bz2 iced-e45497dfd6d401d8da74a8167b876a20690ddcac.zip |
Move `Debugger` and `Windowed` to a better location
We move `renderer::Debugger` to `layout::Debugger` and
`renderer::Windowed` to `window::Renderer`.
Diffstat (limited to '')
-rw-r--r-- | native/src/layout/debugger.rs (renamed from native/src/renderer/debugger.rs) | 10 | ||||
-rw-r--r-- | native/src/renderer.rs | 6 | ||||
-rw-r--r-- | native/src/window/renderer.rs (renamed from native/src/renderer/windowed.rs) | 6 |
3 files changed, 8 insertions, 14 deletions
diff --git a/native/src/renderer/debugger.rs b/native/src/layout/debugger.rs index 30f3d9a0..e4b21609 100644 --- a/native/src/renderer/debugger.rs +++ b/native/src/layout/debugger.rs @@ -1,9 +1,9 @@ -use crate::{Color, Layout, Point, Widget}; +use crate::{Color, Layout, Point, Renderer, Widget}; /// A renderer able to graphically explain a [`Layout`]. /// -/// [`Layout`]: ../struct.Layout.html -pub trait Debugger: super::Renderer { +/// [`Layout`]: struct.Layout.html +pub trait Debugger: Renderer { /// Explains the [`Layout`] of an [`Element`] for debugging purposes. /// /// This will be called when [`Element::explain`] has been used. It should @@ -13,8 +13,8 @@ pub trait Debugger: super::Renderer { /// [`Layout`] and its children. /// /// [`Layout`]: struct.Layout.html - /// [`Element`]: struct.Element.html - /// [`Element::explain`]: struct.Element.html#method.explain + /// [`Element`]: ../struct.Element.html + /// [`Element::explain`]: ../struct.Element.html#method.explain fn explain<Message>( &mut self, defaults: &Self::Defaults, diff --git a/native/src/renderer.rs b/native/src/renderer.rs index 284c95f6..ff90fdd9 100644 --- a/native/src/renderer.rs +++ b/native/src/renderer.rs @@ -20,12 +20,6 @@ //! [`Checkbox`]: ../widget/checkbox/struct.Checkbox.html //! [`checkbox::Renderer`]: ../widget/checkbox/trait.Renderer.html -mod debugger; -mod windowed; - -pub use debugger::Debugger; -pub use windowed::{Target, Windowed}; - #[cfg(debug_assertions)] mod null; #[cfg(debug_assertions)] diff --git a/native/src/renderer/windowed.rs b/native/src/window/renderer.rs index ee020ab1..be9765fa 100644 --- a/native/src/renderer/windowed.rs +++ b/native/src/window/renderer.rs @@ -3,16 +3,16 @@ use crate::MouseCursor; use raw_window_handle::HasRawWindowHandle; /// A renderer that can target windows. -pub trait Windowed: super::Renderer + Sized { +pub trait Renderer: crate::Renderer + Sized { /// The settings of the renderer. type Settings: Default; /// The type of target. type Target: Target<Renderer = Self>; - /// Creates a new [`Windowed`] renderer. + /// Creates a new window [`Renderer`]. /// - /// [`Windowed`]: trait.Windowed.html + /// [`Renderer`]: trait.Renderer.html fn new(settings: Self::Settings) -> Self; /// Performs the drawing operations described in the output on the given |