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
// This file was generated by gir (9e3f4cc) from gir-files (0bcaef9)
// DO NOT EDIT

use ffi;
use glib::translate::*;

bitflags! {
    pub struct FontMask: u32 {
        const FONT_MASK_FAMILY = 1;
        const FONT_MASK_STYLE = 2;
        const FONT_MASK_VARIANT = 4;
        const FONT_MASK_WEIGHT = 8;
        const FONT_MASK_STRETCH = 16;
        const FONT_MASK_SIZE = 32;
        const FONT_MASK_GRAVITY = 64;
    }
}

#[doc(hidden)]
impl ToGlib for FontMask {
    type GlibType = ffi::PangoFontMask;

    fn to_glib(&self) -> ffi::PangoFontMask {
        ffi::PangoFontMask::from_bits_truncate(self.bits())
    }
}

#[doc(hidden)]
impl FromGlib<ffi::PangoFontMask> for FontMask {
    fn from_glib(value: ffi::PangoFontMask) -> FontMask {
        FontMask::from_bits_truncate(value.bits())
    }
}