1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use glib::translate::*;

glib::wrapper! {
    #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
    pub struct AnnotCalloutLine(Boxed<ffi::PopplerAnnotCalloutLine>);

    match fn {
        copy => |ptr| ffi::poppler_annot_callout_line_copy(mut_override(ptr)),
        free => |ptr| ffi::poppler_annot_callout_line_free(ptr),
        type_ => || ffi::poppler_annot_callout_line_get_type(),
    }
}

impl AnnotCalloutLine {
    /// Creates a new empty [`AnnotCalloutLine`][crate::AnnotCalloutLine].
    ///
    /// # Returns
    ///
    /// a new allocated [`AnnotCalloutLine`][crate::AnnotCalloutLine], [`None`] in other case.
    ///  It must be freed when done.
    #[doc(alias = "poppler_annot_callout_line_new")]
    pub fn new() -> AnnotCalloutLine {
        unsafe { from_glib_full(ffi::poppler_annot_callout_line_new()) }
    }
}

impl Default for AnnotCalloutLine {
    fn default() -> Self {
        Self::new()
    }
}