From 023aded2772f0cd6abd716fe5c8624d5d22e21fa Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 4 Nov 2021 19:22:29 +0700 Subject: Rename `fill_rectangle` to `fill_quad` in `Renderer` --- examples/custom_widget/src/main.rs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'examples') diff --git a/examples/custom_widget/src/main.rs b/examples/custom_widget/src/main.rs index 78a4339e..b32cb83d 100644 --- a/examples/custom_widget/src/main.rs +++ b/examples/custom_widget/src/main.rs @@ -12,8 +12,7 @@ mod circle { use iced_native::layout::{self, Layout}; use iced_native::renderer; use iced_native::{ - Background, Color, Element, Hasher, Length, Point, Rectangle, Size, - Widget, + Color, Element, Hasher, Length, Point, Rectangle, Size, Widget, }; pub struct Circle { @@ -60,13 +59,15 @@ mod circle { _cursor_position: Point, _viewport: &Rectangle, ) { - renderer.fill_rectangle(renderer::Quad { - bounds: layout.bounds(), - background: Background::Color(Color::BLACK), - border_radius: self.radius, - border_width: 0.0, - border_color: Color::TRANSPARENT, - }); + renderer.fill_quad( + renderer::Quad { + bounds: layout.bounds(), + border_radius: self.radius, + border_width: 0.0, + border_color: Color::TRANSPARENT, + }, + Color::BLACK, + ); } } -- cgit