summaryrefslogtreecommitdiffstats
path: root/wgpu/src/renderer/column.rs
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu/src/renderer/column.rs')
-rw-r--r--wgpu/src/renderer/column.rs34
1 files changed, 0 insertions, 34 deletions
diff --git a/wgpu/src/renderer/column.rs b/wgpu/src/renderer/column.rs
deleted file mode 100644
index cac6da77..00000000
--- a/wgpu/src/renderer/column.rs
+++ /dev/null
@@ -1,34 +0,0 @@
-use crate::{Primitive, Renderer};
-use iced_native::{column, Column, Layout, MouseCursor, Point};
-
-impl column::Renderer for Renderer {
- fn draw<Message>(
- &mut self,
- column: &Column<'_, Message, Self>,
- layout: Layout<'_>,
- cursor_position: Point,
- ) -> Self::Output {
- let mut mouse_cursor = MouseCursor::OutOfBounds;
-
- (
- Primitive::Group {
- primitives: column
- .children
- .iter()
- .zip(layout.children())
- .map(|(child, layout)| {
- let (primitive, new_mouse_cursor) =
- child.draw(self, layout, cursor_position);
-
- if new_mouse_cursor > mouse_cursor {
- mouse_cursor = new_mouse_cursor;
- }
-
- primitive
- })
- .collect(),
- },
- mouse_cursor,
- )
- }
-}