summaryrefslogtreecommitdiffstats
path: root/renderer
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-16 16:52:21 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-16 16:52:21 +0100
commitbad3b1ac4777b4d9b57c6ba9473fb97753a77124 (patch)
treeb5675155923b3576df03a6ed67d0943807a38493 /renderer
parent348e00e11cd976a16493f4ce693db614886c1ecd (diff)
downloadiced-bad3b1ac4777b4d9b57c6ba9473fb97753a77124.tar.gz
iced-bad3b1ac4777b4d9b57c6ba9473fb97753a77124.tar.bz2
iced-bad3b1ac4777b4d9b57c6ba9473fb97753a77124.zip
Show name of current `Theme` in `clock` example
Diffstat (limited to 'renderer')
-rw-r--r--renderer/src/geometry.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/renderer/src/geometry.rs b/renderer/src/geometry.rs
index f09ccfbf..36435148 100644
--- a/renderer/src/geometry.rs
+++ b/renderer/src/geometry.rs
@@ -2,7 +2,7 @@ mod cache;
pub use cache::Cache;
-use crate::core::{Point, Rectangle, Size, Transformation, Vector};
+use crate::core::{Point, Radians, Rectangle, Size, Transformation, Vector};
use crate::graphics::geometry::{Fill, Path, Stroke, Text};
use crate::Renderer;
@@ -184,7 +184,7 @@ impl Frame {
/// Applies a rotation in radians to the current transform of the [`Frame`].
#[inline]
- pub fn rotate(&mut self, angle: f32) {
+ pub fn rotate(&mut self, angle: impl Into<Radians>) {
delegate!(self, frame, frame.rotate(angle));
}