summaryrefslogtreecommitdiffstats
path: root/wgpu/src/renderer.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-11 22:15:39 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-11 22:15:39 +0200
commit8846a239cf14edd464b1d09f6d6d57ad9b5c9fc7 (patch)
treeb893c10085e9b6c16b23fd329a1d78d8b13a8e4d /wgpu/src/renderer.rs
parent650d020fde6e684bf3c865de823ace08194b5220 (diff)
downloadiced-8846a239cf14edd464b1d09f6d6d57ad9b5c9fc7.tar.gz
iced-8846a239cf14edd464b1d09f6d6d57ad9b5c9fc7.tar.bz2
iced-8846a239cf14edd464b1d09f6d6d57ad9b5c9fc7.zip
Rename `Renderer::Primitive` to `Renderer::Output`
Diffstat (limited to 'wgpu/src/renderer.rs')
-rw-r--r--wgpu/src/renderer.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/wgpu/src/renderer.rs b/wgpu/src/renderer.rs
index 036efd27..cdb44554 100644
--- a/wgpu/src/renderer.rs
+++ b/wgpu/src/renderer.rs
@@ -100,8 +100,8 @@ impl Renderer {
fn draw(
&mut self,
- target: &mut Target,
primitive: &Primitive,
+ target: &mut Target,
) -> MouseCursor {
log::debug!("Drawing");
@@ -154,6 +154,7 @@ impl Renderer {
MouseCursor::OutOfBounds
}
+
fn draw_primitive(&mut self, primitive: &Primitive) {
match primitive {
Primitive::None => {}
@@ -243,7 +244,7 @@ impl Renderer {
impl iced_native::Renderer for Renderer {
// TODO: Add `MouseCursor` here (?)
- type Primitive = Primitive;
+ type Output = Primitive;
}
impl Windowed for Renderer {
@@ -259,10 +260,10 @@ impl Windowed for Renderer {
fn draw(
&mut self,
+ output: &Self::Output,
target: &mut Target,
- primitive: &Primitive,
) -> MouseCursor {
- self.draw(target, primitive)
+ self.draw(output, target)
}
}
@@ -273,7 +274,7 @@ impl Debugger for Renderer {
layout: Layout<'_>,
cursor_position: Point,
_color: Color,
- ) -> Self::Primitive {
+ ) -> Self::Output {
// TODO: Include a bordered box to display layout bounds
widget.draw(self, layout, cursor_position)
}