diff options
author | 2021-11-04 19:22:29 +0700 | |
---|---|---|
committer | 2021-11-04 19:24:11 +0700 | |
commit | 023aded2772f0cd6abd716fe5c8624d5d22e21fa (patch) | |
tree | 1bdb1a4584d7acc688b081a299bb4431cd35c349 /examples | |
parent | 343f9b7e2e594bd1fef1ed511d71e81f9c44e3d9 (diff) | |
download | iced-023aded2772f0cd6abd716fe5c8624d5d22e21fa.tar.gz iced-023aded2772f0cd6abd716fe5c8624d5d22e21fa.tar.bz2 iced-023aded2772f0cd6abd716fe5c8624d5d22e21fa.zip |
Rename `fill_rectangle` to `fill_quad` in `Renderer`
Diffstat (limited to 'examples')
-rw-r--r-- | examples/custom_widget/src/main.rs | 19 |
1 files changed, 10 insertions, 9 deletions
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, + ); } } |