summaryrefslogtreecommitdiffstats
path: root/native/src/renderer
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-06-05 14:02:29 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-06-05 14:02:29 +0200
commit4dc5bffdfbfb09a017f35c12b484301fcf044876 (patch)
tree2175e006a72050aaef4789bc1bf8d5513274057f /native/src/renderer
parente8e656b3300093e384771a6083e25e9395bbeb50 (diff)
downloadiced-4dc5bffdfbfb09a017f35c12b484301fcf044876.tar.gz
iced-4dc5bffdfbfb09a017f35c12b484301fcf044876.tar.bz2
iced-4dc5bffdfbfb09a017f35c12b484301fcf044876.zip
Draft draggable and graphics logic for `TitleBar`
Diffstat (limited to 'native/src/renderer')
-rw-r--r--native/src/renderer/null.rs21
1 files changed, 18 insertions, 3 deletions
diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs
index b8695b9c..29df3e14 100644
--- a/native/src/renderer/null.rs
+++ b/native/src/renderer/null.rs
@@ -1,7 +1,7 @@
use crate::{
- button, checkbox, column, progress_bar, radio, row, scrollable, slider,
- text, text_input, Color, Element, Font, HorizontalAlignment, Layout, Point,
- Rectangle, Renderer, Size, VerticalAlignment,
+ button, checkbox, column, container, progress_bar, radio, row, scrollable,
+ slider, text, text_input, Color, Element, Font, HorizontalAlignment,
+ Layout, Point, Rectangle, Renderer, Size, VerticalAlignment,
};
/// A renderer that does nothing.
@@ -226,3 +226,18 @@ impl progress_bar::Renderer for Null {
) {
}
}
+
+impl container::Renderer for Null {
+ type Style = ();
+
+ fn draw<Message>(
+ &mut self,
+ _defaults: &Self::Defaults,
+ _bounds: Rectangle,
+ _cursor_position: Point,
+ _style: &Self::Style,
+ _content: &Element<'_, Message, Self>,
+ _content_layout: Layout<'_>,
+ ) {
+ }
+}