summaryrefslogtreecommitdiffstats
path: root/src/renderer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer.rs')
-rw-r--r--src/renderer.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index b445190b..2244f00b 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -17,19 +17,12 @@
//! [`text::Renderer`]: ../widget/text/trait.Renderer.html
//! [`Checkbox`]: ../widget/checkbox/struct.Checkbox.html
//! [`checkbox::Renderer`]: ../widget/checkbox/trait.Renderer.html
-use crate::Layout;
+use crate::{Color, Layout};
/// A renderer able to graphically explain a [`Layout`].
///
/// [`Layout`]: ../struct.Layout.html
pub trait Debugger {
- /// The color type that will be used to configure the _explanation_.
- ///
- /// This is the type that will be asked in [`Element::explain`].
- ///
- /// [`Element::explain`]: ../struct.Element.html#method.explain
- type Color: Copy;
-
/// Explains the [`Layout`] of an [`Element`] for debugging purposes.
///
/// This will be called when [`Element::explain`] has been used. It should
@@ -41,5 +34,5 @@ pub trait Debugger {
/// [`Layout`]: struct.Layout.html
/// [`Element`]: struct.Element.html
/// [`Element::explain`]: struct.Element.html#method.explain
- fn explain(&mut self, layout: &Layout<'_>, color: Self::Color);
+ fn explain(&mut self, layout: &Layout<'_>, color: Color);
}