gsk4/
path_builder.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use glib::translate::*;
4
5use crate::PathBuilder;
6
7impl PathBuilder {
8    /// Adds a Cairo path to the builder.
9    ///
10    /// You can use cairo_copy_path() to access the path
11    /// from a Cairo context.
12    /// ## `path`
13    /// a path
14    #[doc(alias = "gsk_path_builder_add_cairo_path")]
15    pub fn add_cairo_path(&self, path: &cairo::Path) {
16        unsafe {
17            crate::ffi::gsk_path_builder_add_cairo_path(self.to_glib_none().0, path.as_ptr());
18        }
19    }
20}