summaryrefslogtreecommitdiffstats
path: root/graphics/src/geometry
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-05-11 15:25:58 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-05-11 15:25:58 +0200
commit8622e998f2701e7f4ca8d2f71c85150f436a9945 (patch)
treede62eead3db44002997b83849711533b214aae31 /graphics/src/geometry
parentdd04c0b070b60b15293892e2a7c284787d3d63b1 (diff)
downloadiced-8622e998f2701e7f4ca8d2f71c85150f436a9945.tar.gz
iced-8622e998f2701e7f4ca8d2f71c85150f436a9945.tar.bz2
iced-8622e998f2701e7f4ca8d2f71c85150f436a9945.zip
Write missing documentation in `iced_graphics`
Diffstat (limited to 'graphics/src/geometry')
-rw-r--r--graphics/src/geometry/path.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/src/geometry/path.rs b/graphics/src/geometry/path.rs
index c3127bdf..3d8fc6fa 100644
--- a/graphics/src/geometry/path.rs
+++ b/graphics/src/geometry/path.rs
@@ -53,11 +53,13 @@ impl Path {
Self::new(|p| p.circle(center, radius))
}
+ /// Returns the internal [`lyon_path::Path`].
#[inline]
pub fn raw(&self) -> &lyon_path::Path {
&self.raw
}
+ /// Returns the current [`Path`] with the given transform applied to it.
#[inline]
pub fn transform(&self, transform: &lyon_path::math::Transform) -> Path {
Path {