diff options
author | 2024-05-03 09:34:28 +0200 | |
---|---|---|
committer | 2024-05-03 09:34:28 +0200 | |
commit | 38cf87cb45484c7e52ddf775fb3abd7edbecc652 (patch) | |
tree | ea1d229fda688008bd31c285b2dfe5e444983efc /wgpu | |
parent | 1cefe6be210cdae8c6769673e8d23c6781a988f1 (diff) | |
parent | 4c658c41e9e5bf2c0c963ef49c1830257781b16e (diff) | |
download | iced-38cf87cb45484c7e52ddf775fb3abd7edbecc652.tar.gz iced-38cf87cb45484c7e52ddf775fb3abd7edbecc652.tar.bz2 iced-38cf87cb45484c7e52ddf775fb3abd7edbecc652.zip |
Merge pull request #2423 from iced-rs/center-widget-helper
Introduce `center` widget helper
Diffstat (limited to 'wgpu')
-rw-r--r-- | wgpu/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index 6920067b..eb600dde 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -61,8 +61,8 @@ pub use settings::Settings; pub use geometry::Geometry; use crate::core::{ - Background, Color, Font, Pixels, Point, Radians, Rectangle, Size, - Transformation, Vector, + Background, Color, Font, Pixels, Point, Rectangle, Size, Transformation, + Vector, }; use crate::graphics::text::{Editor, Paragraph}; use crate::graphics::Viewport; @@ -517,7 +517,7 @@ impl core::image::Renderer for Renderer { handle: Self::Handle, filter_method: core::image::FilterMethod, bounds: Rectangle, - rotation: Radians, + rotation: core::Radians, ) { let (layer, transformation) = self.layers.current_mut(); layer.draw_image( @@ -541,7 +541,7 @@ impl core::svg::Renderer for Renderer { handle: core::svg::Handle, color_filter: Option<Color>, bounds: Rectangle, - rotation: Radians, + rotation: core::Radians, ) { let (layer, transformation) = self.layers.current_mut(); layer.draw_svg(handle, color_filter, bounds, transformation, rotation); |