1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::PathBuilder;
use glib::translate::*;

impl PathBuilder {
    /// Adds a Cairo path to the builder.
    ///
    /// You can use cairo_copy_path() to access the path
    /// from a Cairo context.
    #[doc(alias = "gsk_path_builder_add_cairo_path")]
    pub fn add_cairo_path(&self, path: &cairo::Path) {
        unsafe {
            ffi::gsk_path_builder_add_cairo_path(self.to_glib_none().0, path.as_ptr());
        }
    }
}