Skip to main content

pango_sys/
manual.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use libc::c_uint;
4
5// C has four 1-bit bitfields sharing one guint. The Pango gir lacks the
6// `bits` attribute on them, so gir would flatten them into separate
7// members and double the struct size. Remove this once fixed upstream.
8#[derive(Copy, Clone)]
9#[repr(C)]
10pub struct PangoGlyphVisAttr {
11    pub is_cluster_start: c_uint,
12}
13
14impl ::std::fmt::Debug for PangoGlyphVisAttr {
15    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
16        f.debug_struct(&format!("PangoGlyphVisAttr @ {self:p}"))
17            .field("is_cluster_start", &self.is_cluster_start)
18            .finish()
19    }
20}