1
2
3
/* automatically generated by rust-bindgen */

# [ repr ( C ) ] # [ derive ( Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd ) ] pub struct __BindgenBitfieldUnit < Storage , Align > { storage : Storage , align : [ Align ; 0 ] , } impl < Storage , Align > __BindgenBitfieldUnit < Storage , Align > { # [ inline ] pub const fn new ( storage : Storage ) -> Self { Self { storage , align : [ ] } } } impl < Storage , Align > __BindgenBitfieldUnit < Storage , Align > where Storage : AsRef < [ u8 ] > + AsMut < [ u8 ] >, { # [ inline ] pub fn get_bit ( & self , index : usize ) -> bool { debug_assert ! ( index / 8 < self . storage . as_ref ( ) . len ( ) ) ; let byte_index = index / 8 ; let byte = self . storage . as_ref ( ) [ byte_index ] ; let bit_index = if cfg ! ( target_endian = "big" ) { 7 - ( index % 8 ) } else { index % 8 } ; let mask = 1 << bit_index ; byte & mask == mask } # [ inline ] pub fn set_bit ( & mut self , index : usize , val : bool ) { debug_assert ! ( index / 8 < self . storage . as_ref ( ) . len ( ) ) ; let byte_index = index / 8 ; let byte = & mut self . storage . as_mut ( ) [ byte_index ] ; let bit_index = if cfg ! ( target_endian = "big" ) { 7 - ( index % 8 ) } else { index % 8 } ; let mask = 1 << bit_index ; if val { * byte |= mask ; } else { * byte &= ! mask ; } } # [ inline ] pub fn get ( & self , bit_offset : usize , bit_width : u8 ) -> u64 { debug_assert ! ( bit_width <= 64 ) ; debug_assert ! ( bit_offset / 8 < self . storage . as_ref ( ) . len ( ) ) ; debug_assert ! ( ( bit_offset + ( bit_width as usize ) ) / 8 <= self . storage . as_ref ( ) . len ( ) ) ; let mut val = 0 ; for i in 0 .. ( bit_width as usize ) { if self . get_bit ( i + bit_offset ) { let index = if cfg ! ( target_endian = "big" ) { bit_width as usize - 1 - i } else { i } ; val |= 1 << index ; } } val } # [ inline ] pub fn set ( & mut self , bit_offset : usize , bit_width : u8 , val : u64 ) { debug_assert ! ( bit_width <= 64 ) ; debug_assert ! ( bit_offset / 8 < self . storage . as_ref ( ) . len ( ) ) ; debug_assert ! ( ( bit_offset + ( bit_width as usize ) ) / 8 <= self . storage . as_ref ( ) . len ( ) ) ; for i in 0 .. ( bit_width as usize ) { let mask = 1 << i ; let val_bit_is_set = val & mask == mask ; let index = if cfg ! ( target_endian = "big" ) { bit_width as usize - 1 - i } else { i } ; self . set_bit ( index + bit_offset , val_bit_is_set ) ; } } } pub const FZ_VERSION : & 'static [ u8 ; 7usize ] = b"1.16.1\0" ; pub const FZ_VERSION_MAJOR : u32 = 1 ; pub const FZ_VERSION_MINOR : u32 = 16 ; pub const FZ_VERSION_PATCH : u32 = 1 ; pub const FZ_ENABLE_SPOT_RENDERING : u32 = 1 ; pub const FZ_PLOTTERS_N : u32 = 1 ; pub const FZ_PLOTTERS_G : u32 = 1 ; pub const FZ_PLOTTERS_RGB : u32 = 1 ; pub const FZ_PLOTTERS_CMYK : u32 = 1 ; pub const FZ_ENABLE_PDF : u32 = 1 ; pub const FZ_ENABLE_XPS : u32 = 1 ; pub const FZ_ENABLE_SVG : u32 = 1 ; pub const FZ_ENABLE_CBZ : u32 = 1 ; pub const FZ_ENABLE_IMG : u32 = 1 ; pub const FZ_ENABLE_HTML : u32 = 1 ; pub const FZ_ENABLE_EPUB : u32 = 1 ; pub const FZ_ENABLE_JPX : u32 = 1 ; pub const FZ_ENABLE_JS : u32 = 1 ; pub const FZ_ENABLE_ICC : u32 = 1 ; pub const FZ_PI : f64 = 3.14159265 ; pub const FZ_RADIAN : f64 = 57.2957795 ; pub const FZ_DEGREE : f64 = 0.017453292 ; pub const FZ_SQRT2 : f64 = 1.41421356 ; pub const FZ_LN2 : f64 = 0.69314718 ; pub const FZ_AES_DECRYPT : u32 = 0 ; pub const FZ_AES_ENCRYPT : u32 = 1 ; pub const FZ_REPLACEMENT_CHARACTER : u32 = 65533 ; pub const FZ_META_FORMAT : & 'static [ u8 ; 7usize ] = b"format\0" ; pub const FZ_META_ENCRYPTION : & 'static [ u8 ; 11usize ] = b"encryption\0" ; pub const FZ_META_INFO_AUTHOR : & 'static [ u8 ; 12usize ] = b"info:Author\0" ; pub const FZ_META_INFO_TITLE : & 'static [ u8 ; 11usize ] = b"info:Title\0" ; pub const UCDN_EAST_ASIAN_F : u32 = 0 ; pub const UCDN_EAST_ASIAN_H : u32 = 1 ; pub const UCDN_EAST_ASIAN_W : u32 = 2 ; pub const UCDN_EAST_ASIAN_NA : u32 = 3 ; pub const UCDN_EAST_ASIAN_A : u32 = 4 ; pub const UCDN_EAST_ASIAN_N : u32 = 5 ; pub const UCDN_SCRIPT_COMMON : u32 = 0 ; pub const UCDN_SCRIPT_LATIN : u32 = 1 ; pub const UCDN_SCRIPT_GREEK : u32 = 2 ; pub const UCDN_SCRIPT_CYRILLIC : u32 = 3 ; pub const UCDN_SCRIPT_ARMENIAN : u32 = 4 ; pub const UCDN_SCRIPT_HEBREW : u32 = 5 ; pub const UCDN_SCRIPT_ARABIC : u32 = 6 ; pub const UCDN_SCRIPT_SYRIAC : u32 = 7 ; pub const UCDN_SCRIPT_THAANA : u32 = 8 ; pub const UCDN_SCRIPT_DEVANAGARI : u32 = 9 ; pub const UCDN_SCRIPT_BENGALI : u32 = 10 ; pub const UCDN_SCRIPT_GURMUKHI : u32 = 11 ; pub const UCDN_SCRIPT_GUJARATI : u32 = 12 ; pub const UCDN_SCRIPT_ORIYA : u32 = 13 ; pub const UCDN_SCRIPT_TAMIL : u32 = 14 ; pub const UCDN_SCRIPT_TELUGU : u32 = 15 ; pub const UCDN_SCRIPT_KANNADA : u32 = 16 ; pub const UCDN_SCRIPT_MALAYALAM : u32 = 17 ; pub const UCDN_SCRIPT_SINHALA : u32 = 18 ; pub const UCDN_SCRIPT_THAI : u32 = 19 ; pub const UCDN_SCRIPT_LAO : u32 = 20 ; pub const UCDN_SCRIPT_TIBETAN : u32 = 21 ; pub const UCDN_SCRIPT_MYANMAR : u32 = 22 ; pub const UCDN_SCRIPT_GEORGIAN : u32 = 23 ; pub const UCDN_SCRIPT_HANGUL : u32 = 24 ; pub const UCDN_SCRIPT_ETHIOPIC : u32 = 25 ; pub const UCDN_SCRIPT_CHEROKEE : u32 = 26 ; pub const UCDN_SCRIPT_CANADIAN_ABORIGINAL : u32 = 27 ; pub const UCDN_SCRIPT_OGHAM : u32 = 28 ; pub const UCDN_SCRIPT_RUNIC : u32 = 29 ; pub const UCDN_SCRIPT_KHMER : u32 = 30 ; pub const UCDN_SCRIPT_MONGOLIAN : u32 = 31 ; pub const UCDN_SCRIPT_HIRAGANA : u32 = 32 ; pub const UCDN_SCRIPT_KATAKANA : u32 = 33 ; pub const UCDN_SCRIPT_BOPOMOFO : u32 = 34 ; pub const UCDN_SCRIPT_HAN : u32 = 35 ; pub const UCDN_SCRIPT_YI : u32 = 36 ; pub const UCDN_SCRIPT_OLD_ITALIC : u32 = 37 ; pub const UCDN_SCRIPT_GOTHIC : u32 = 38 ; pub const UCDN_SCRIPT_DESERET : u32 = 39 ; pub const UCDN_SCRIPT_INHERITED : u32 = 40 ; pub const UCDN_SCRIPT_TAGALOG : u32 = 41 ; pub const UCDN_SCRIPT_HANUNOO : u32 = 42 ; pub const UCDN_SCRIPT_BUHID : u32 = 43 ; pub const UCDN_SCRIPT_TAGBANWA : u32 = 44 ; pub const UCDN_SCRIPT_LIMBU : u32 = 45 ; pub const UCDN_SCRIPT_TAI_LE : u32 = 46 ; pub const UCDN_SCRIPT_LINEAR_B : u32 = 47 ; pub const UCDN_SCRIPT_UGARITIC : u32 = 48 ; pub const UCDN_SCRIPT_SHAVIAN : u32 = 49 ; pub const UCDN_SCRIPT_OSMANYA : u32 = 50 ; pub const UCDN_SCRIPT_CYPRIOT : u32 = 51 ; pub const UCDN_SCRIPT_BRAILLE : u32 = 52 ; pub const UCDN_SCRIPT_BUGINESE : u32 = 53 ; pub const UCDN_SCRIPT_COPTIC : u32 = 54 ; pub const UCDN_SCRIPT_NEW_TAI_LUE : u32 = 55 ; pub const UCDN_SCRIPT_GLAGOLITIC : u32 = 56 ; pub const UCDN_SCRIPT_TIFINAGH : u32 = 57 ; pub const UCDN_SCRIPT_SYLOTI_NAGRI : u32 = 58 ; pub const UCDN_SCRIPT_OLD_PERSIAN : u32 = 59 ; pub const UCDN_SCRIPT_KHAROSHTHI : u32 = 60 ; pub const UCDN_SCRIPT_BALINESE : u32 = 61 ; pub const UCDN_SCRIPT_CUNEIFORM : u32 = 62 ; pub const UCDN_SCRIPT_PHOENICIAN : u32 = 63 ; pub const UCDN_SCRIPT_PHAGS_PA : u32 = 64 ; pub const UCDN_SCRIPT_NKO : u32 = 65 ; pub const UCDN_SCRIPT_SUNDANESE : u32 = 66 ; pub const UCDN_SCRIPT_LEPCHA : u32 = 67 ; pub const UCDN_SCRIPT_OL_CHIKI : u32 = 68 ; pub const UCDN_SCRIPT_VAI : u32 = 69 ; pub const UCDN_SCRIPT_SAURASHTRA : u32 = 70 ; pub const UCDN_SCRIPT_KAYAH_LI : u32 = 71 ; pub const UCDN_SCRIPT_REJANG : u32 = 72 ; pub const UCDN_SCRIPT_LYCIAN : u32 = 73 ; pub const UCDN_SCRIPT_CARIAN : u32 = 74 ; pub const UCDN_SCRIPT_LYDIAN : u32 = 75 ; pub const UCDN_SCRIPT_CHAM : u32 = 76 ; pub const UCDN_SCRIPT_TAI_THAM : u32 = 77 ; pub const UCDN_SCRIPT_TAI_VIET : u32 = 78 ; pub const UCDN_SCRIPT_AVESTAN : u32 = 79 ; pub const UCDN_SCRIPT_EGYPTIAN_HIEROGLYPHS : u32 = 80 ; pub const UCDN_SCRIPT_SAMARITAN : u32 = 81 ; pub const UCDN_SCRIPT_LISU : u32 = 82 ; pub const UCDN_SCRIPT_BAMUM : u32 = 83 ; pub const UCDN_SCRIPT_JAVANESE : u32 = 84 ; pub const UCDN_SCRIPT_MEETEI_MAYEK : u32 = 85 ; pub const UCDN_SCRIPT_IMPERIAL_ARAMAIC : u32 = 86 ; pub const UCDN_SCRIPT_OLD_SOUTH_ARABIAN : u32 = 87 ; pub const UCDN_SCRIPT_INSCRIPTIONAL_PARTHIAN : u32 = 88 ; pub const UCDN_SCRIPT_INSCRIPTIONAL_PAHLAVI : u32 = 89 ; pub const UCDN_SCRIPT_OLD_TURKIC : u32 = 90 ; pub const UCDN_SCRIPT_KAITHI : u32 = 91 ; pub const UCDN_SCRIPT_BATAK : u32 = 92 ; pub const UCDN_SCRIPT_BRAHMI : u32 = 93 ; pub const UCDN_SCRIPT_MANDAIC : u32 = 94 ; pub const UCDN_SCRIPT_CHAKMA : u32 = 95 ; pub const UCDN_SCRIPT_MEROITIC_CURSIVE : u32 = 96 ; pub const UCDN_SCRIPT_MEROITIC_HIEROGLYPHS : u32 = 97 ; pub const UCDN_SCRIPT_MIAO : u32 = 98 ; pub const UCDN_SCRIPT_SHARADA : u32 = 99 ; pub const UCDN_SCRIPT_SORA_SOMPENG : u32 = 100 ; pub const UCDN_SCRIPT_TAKRI : u32 = 101 ; pub const UCDN_SCRIPT_UNKNOWN : u32 = 102 ; pub const UCDN_SCRIPT_BASSA_VAH : u32 = 103 ; pub const UCDN_SCRIPT_CAUCASIAN_ALBANIAN : u32 = 104 ; pub const UCDN_SCRIPT_DUPLOYAN : u32 = 105 ; pub const UCDN_SCRIPT_ELBASAN : u32 = 106 ; pub const UCDN_SCRIPT_GRANTHA : u32 = 107 ; pub const UCDN_SCRIPT_KHOJKI : u32 = 108 ; pub const UCDN_SCRIPT_KHUDAWADI : u32 = 109 ; pub const UCDN_SCRIPT_LINEAR_A : u32 = 110 ; pub const UCDN_SCRIPT_MAHAJANI : u32 = 111 ; pub const UCDN_SCRIPT_MANICHAEAN : u32 = 112 ; pub const UCDN_SCRIPT_MENDE_KIKAKUI : u32 = 113 ; pub const UCDN_SCRIPT_MODI : u32 = 114 ; pub const UCDN_SCRIPT_MRO : u32 = 115 ; pub const UCDN_SCRIPT_NABATAEAN : u32 = 116 ; pub const UCDN_SCRIPT_OLD_NORTH_ARABIAN : u32 = 117 ; pub const UCDN_SCRIPT_OLD_PERMIC : u32 = 118 ; pub const UCDN_SCRIPT_PAHAWH_HMONG : u32 = 119 ; pub const UCDN_SCRIPT_PALMYRENE : u32 = 120 ; pub const UCDN_SCRIPT_PAU_CIN_HAU : u32 = 121 ; pub const UCDN_SCRIPT_PSALTER_PAHLAVI : u32 = 122 ; pub const UCDN_SCRIPT_SIDDHAM : u32 = 123 ; pub const UCDN_SCRIPT_TIRHUTA : u32 = 124 ; pub const UCDN_SCRIPT_WARANG_CITI : u32 = 125 ; pub const UCDN_SCRIPT_AHOM : u32 = 126 ; pub const UCDN_SCRIPT_ANATOLIAN_HIEROGLYPHS : u32 = 127 ; pub const UCDN_SCRIPT_HATRAN : u32 = 128 ; pub const UCDN_SCRIPT_MULTANI : u32 = 129 ; pub const UCDN_SCRIPT_OLD_HUNGARIAN : u32 = 130 ; pub const UCDN_SCRIPT_SIGNWRITING : u32 = 131 ; pub const UCDN_SCRIPT_ADLAM : u32 = 132 ; pub const UCDN_SCRIPT_BHAIKSUKI : u32 = 133 ; pub const UCDN_SCRIPT_MARCHEN : u32 = 134 ; pub const UCDN_SCRIPT_NEWA : u32 = 135 ; pub const UCDN_SCRIPT_OSAGE : u32 = 136 ; pub const UCDN_SCRIPT_TANGUT : u32 = 137 ; pub const UCDN_SCRIPT_MASARAM_GONDI : u32 = 138 ; pub const UCDN_SCRIPT_NUSHU : u32 = 139 ; pub const UCDN_SCRIPT_SOYOMBO : u32 = 140 ; pub const UCDN_SCRIPT_ZANABAZAR_SQUARE : u32 = 141 ; pub const UCDN_SCRIPT_DOGRA : u32 = 142 ; pub const UCDN_SCRIPT_GUNJALA_GONDI : u32 = 143 ; pub const UCDN_SCRIPT_HANIFI_ROHINGYA : u32 = 144 ; pub const UCDN_SCRIPT_MAKASAR : u32 = 145 ; pub const UCDN_SCRIPT_MEDEFAIDRIN : u32 = 146 ; pub const UCDN_SCRIPT_OLD_SOGDIAN : u32 = 147 ; pub const UCDN_SCRIPT_SOGDIAN : u32 = 148 ; pub const UCDN_SCRIPT_ELYMAIC : u32 = 149 ; pub const UCDN_SCRIPT_NANDINAGARI : u32 = 150 ; pub const UCDN_SCRIPT_NYIAKENG_PUACHUE_HMONG : u32 = 151 ; pub const UCDN_SCRIPT_WANCHO : u32 = 152 ; pub const UCDN_LAST_SCRIPT : u32 = 152 ; pub const UCDN_LINEBREAK_CLASS_OP : u32 = 0 ; pub const UCDN_LINEBREAK_CLASS_CL : u32 = 1 ; pub const UCDN_LINEBREAK_CLASS_CP : u32 = 2 ; pub const UCDN_LINEBREAK_CLASS_QU : u32 = 3 ; pub const UCDN_LINEBREAK_CLASS_GL : u32 = 4 ; pub const UCDN_LINEBREAK_CLASS_NS : u32 = 5 ; pub const UCDN_LINEBREAK_CLASS_EX : u32 = 6 ; pub const UCDN_LINEBREAK_CLASS_SY : u32 = 7 ; pub const UCDN_LINEBREAK_CLASS_IS : u32 = 8 ; pub const UCDN_LINEBREAK_CLASS_PR : u32 = 9 ; pub const UCDN_LINEBREAK_CLASS_PO : u32 = 10 ; pub const UCDN_LINEBREAK_CLASS_NU : u32 = 11 ; pub const UCDN_LINEBREAK_CLASS_AL : u32 = 12 ; pub const UCDN_LINEBREAK_CLASS_HL : u32 = 13 ; pub const UCDN_LINEBREAK_CLASS_ID : u32 = 14 ; pub const UCDN_LINEBREAK_CLASS_IN : u32 = 15 ; pub const UCDN_LINEBREAK_CLASS_HY : u32 = 16 ; pub const UCDN_LINEBREAK_CLASS_BA : u32 = 17 ; pub const UCDN_LINEBREAK_CLASS_BB : u32 = 18 ; pub const UCDN_LINEBREAK_CLASS_B2 : u32 = 19 ; pub const UCDN_LINEBREAK_CLASS_ZW : u32 = 20 ; pub const UCDN_LINEBREAK_CLASS_CM : u32 = 21 ; pub const UCDN_LINEBREAK_CLASS_WJ : u32 = 22 ; pub const UCDN_LINEBREAK_CLASS_H2 : u32 = 23 ; pub const UCDN_LINEBREAK_CLASS_H3 : u32 = 24 ; pub const UCDN_LINEBREAK_CLASS_JL : u32 = 25 ; pub const UCDN_LINEBREAK_CLASS_JV : u32 = 26 ; pub const UCDN_LINEBREAK_CLASS_JT : u32 = 27 ; pub const UCDN_LINEBREAK_CLASS_RI : u32 = 28 ; pub const UCDN_LINEBREAK_CLASS_AI : u32 = 29 ; pub const UCDN_LINEBREAK_CLASS_BK : u32 = 30 ; pub const UCDN_LINEBREAK_CLASS_CB : u32 = 31 ; pub const UCDN_LINEBREAK_CLASS_CJ : u32 = 32 ; pub const UCDN_LINEBREAK_CLASS_CR : u32 = 33 ; pub const UCDN_LINEBREAK_CLASS_LF : u32 = 34 ; pub const UCDN_LINEBREAK_CLASS_NL : u32 = 35 ; pub const UCDN_LINEBREAK_CLASS_SA : u32 = 36 ; pub const UCDN_LINEBREAK_CLASS_SG : u32 = 37 ; pub const UCDN_LINEBREAK_CLASS_SP : u32 = 38 ; pub const UCDN_LINEBREAK_CLASS_XX : u32 = 39 ; pub const UCDN_LINEBREAK_CLASS_ZWJ : u32 = 40 ; pub const UCDN_LINEBREAK_CLASS_EB : u32 = 41 ; pub const UCDN_LINEBREAK_CLASS_EM : u32 = 42 ; pub const UCDN_GENERAL_CATEGORY_CC : u32 = 0 ; pub const UCDN_GENERAL_CATEGORY_CF : u32 = 1 ; pub const UCDN_GENERAL_CATEGORY_CN : u32 = 2 ; pub const UCDN_GENERAL_CATEGORY_CO : u32 = 3 ; pub const UCDN_GENERAL_CATEGORY_CS : u32 = 4 ; pub const UCDN_GENERAL_CATEGORY_LL : u32 = 5 ; pub const UCDN_GENERAL_CATEGORY_LM : u32 = 6 ; pub const UCDN_GENERAL_CATEGORY_LO : u32 = 7 ; pub const UCDN_GENERAL_CATEGORY_LT : u32 = 8 ; pub const UCDN_GENERAL_CATEGORY_LU : u32 = 9 ; pub const UCDN_GENERAL_CATEGORY_MC : u32 = 10 ; pub const UCDN_GENERAL_CATEGORY_ME : u32 = 11 ; pub const UCDN_GENERAL_CATEGORY_MN : u32 = 12 ; pub const UCDN_GENERAL_CATEGORY_ND : u32 = 13 ; pub const UCDN_GENERAL_CATEGORY_NL : u32 = 14 ; pub const UCDN_GENERAL_CATEGORY_NO : u32 = 15 ; pub const UCDN_GENERAL_CATEGORY_PC : u32 = 16 ; pub const UCDN_GENERAL_CATEGORY_PD : u32 = 17 ; pub const UCDN_GENERAL_CATEGORY_PE : u32 = 18 ; pub const UCDN_GENERAL_CATEGORY_PF : u32 = 19 ; pub const UCDN_GENERAL_CATEGORY_PI : u32 = 20 ; pub const UCDN_GENERAL_CATEGORY_PO : u32 = 21 ; pub const UCDN_GENERAL_CATEGORY_PS : u32 = 22 ; pub const UCDN_GENERAL_CATEGORY_SC : u32 = 23 ; pub const UCDN_GENERAL_CATEGORY_SK : u32 = 24 ; pub const UCDN_GENERAL_CATEGORY_SM : u32 = 25 ; pub const UCDN_GENERAL_CATEGORY_SO : u32 = 26 ; pub const UCDN_GENERAL_CATEGORY_ZL : u32 = 27 ; pub const UCDN_GENERAL_CATEGORY_ZP : u32 = 28 ; pub const UCDN_GENERAL_CATEGORY_ZS : u32 = 29 ; pub const UCDN_BIDI_CLASS_L : u32 = 0 ; pub const UCDN_BIDI_CLASS_LRE : u32 = 1 ; pub const UCDN_BIDI_CLASS_LRO : u32 = 2 ; pub const UCDN_BIDI_CLASS_R : u32 = 3 ; pub const UCDN_BIDI_CLASS_AL : u32 = 4 ; pub const UCDN_BIDI_CLASS_RLE : u32 = 5 ; pub const UCDN_BIDI_CLASS_RLO : u32 = 6 ; pub const UCDN_BIDI_CLASS_PDF : u32 = 7 ; pub const UCDN_BIDI_CLASS_EN : u32 = 8 ; pub const UCDN_BIDI_CLASS_ES : u32 = 9 ; pub const UCDN_BIDI_CLASS_ET : u32 = 10 ; pub const UCDN_BIDI_CLASS_AN : u32 = 11 ; pub const UCDN_BIDI_CLASS_CS : u32 = 12 ; pub const UCDN_BIDI_CLASS_NSM : u32 = 13 ; pub const UCDN_BIDI_CLASS_BN : u32 = 14 ; pub const UCDN_BIDI_CLASS_B : u32 = 15 ; pub const UCDN_BIDI_CLASS_S : u32 = 16 ; pub const UCDN_BIDI_CLASS_WS : u32 = 17 ; pub const UCDN_BIDI_CLASS_ON : u32 = 18 ; pub const UCDN_BIDI_CLASS_LRI : u32 = 19 ; pub const UCDN_BIDI_CLASS_RLI : u32 = 20 ; pub const UCDN_BIDI_CLASS_FSI : u32 = 21 ; pub const UCDN_BIDI_CLASS_PDI : u32 = 22 ; pub const UCDN_BIDI_PAIRED_BRACKET_TYPE_OPEN : u32 = 0 ; pub const UCDN_BIDI_PAIRED_BRACKET_TYPE_CLOSE : u32 = 1 ; pub const UCDN_BIDI_PAIRED_BRACKET_TYPE_NONE : u32 = 2 ; pub const PDF_MAX_OBJECT_NUMBER : u32 = 8388607 ; pub const PDF_MRANGE_CAP : u32 = 8 ; pub type wchar_t = :: std :: os :: raw :: c_int ; pub type va_list = __builtin_va_list ; pub type __jmp_buf = [ :: std :: os :: raw :: c_long ; 8usize ] ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __sigset_t { pub __val : [ :: std :: os :: raw :: c_ulong ; 16usize ] , } # [ test ] fn bindgen_test_layout___sigset_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __sigset_t > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( __sigset_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __sigset_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __sigset_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __sigset_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __sigset_t ) , "::" , stringify ! ( __val ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __jmp_buf_tag { pub __jmpbuf : __jmp_buf , pub __mask_was_saved : :: std :: os :: raw :: c_int , pub __saved_mask : __sigset_t , } # [ test ] fn bindgen_test_layout___jmp_buf_tag ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __jmp_buf_tag > ( ) , 200usize , concat ! ( "Size of: " , stringify ! ( __jmp_buf_tag ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __jmp_buf_tag > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __jmp_buf_tag ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __jmp_buf_tag > ( ) ) ) . __jmpbuf as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __jmp_buf_tag ) , "::" , stringify ! ( __jmpbuf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __jmp_buf_tag > ( ) ) ) . __mask_was_saved as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( __jmp_buf_tag ) , "::" , stringify ! ( __mask_was_saved ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __jmp_buf_tag > ( ) ) ) . __saved_mask as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( __jmp_buf_tag ) , "::" , stringify ! ( __saved_mask ) ) ) ; } pub type sigjmp_buf = [ __jmp_buf_tag ; 1usize ] ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; extern "C" { pub fn Memento_checkBlock ( arg1 : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_checkAllMemory ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_check ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_setParanoia ( arg1 : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_paranoidAt ( arg1 : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_breakAt ( arg1 : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_breakOnFree ( a : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn Memento_breakOnRealloc ( a : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn Memento_getBlockNum ( arg1 : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_find ( a : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_breakpoint ( ) ; } extern "C" { pub fn Memento_failAt ( arg1 : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_failThisEvent ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_listBlocks ( ) ; } extern "C" { pub fn Memento_listNewBlocks ( ) ; } extern "C" { pub fn Memento_setMax ( arg1 : usize ) -> usize ; } extern "C" { pub fn Memento_stats ( ) ; } extern "C" { pub fn Memento_label ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_tick ( ) ; } extern "C" { pub fn Memento_malloc ( s : usize ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_realloc ( arg1 : * mut :: std :: os :: raw :: c_void , s : usize ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_free ( arg1 : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn Memento_calloc ( arg1 : usize , arg2 : usize ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_info ( addr : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn Memento_listBlockInfo ( ) ; } extern "C" { pub fn Memento_takeByteRef ( blk : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_dropByteRef ( blk : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_takeShortRef ( blk : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_dropShortRef ( blk : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_takeIntRef ( blk : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_dropIntRef ( blk : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_takeRef ( blk : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_dropRef ( blk : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_adjustRef ( blk : * mut :: std :: os :: raw :: c_void , adjust : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_reference ( blk : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn Memento_checkPointerOrNull ( blk : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_checkBytePointerOrNull ( blk : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_checkShortPointerOrNull ( blk : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_checkIntPointerOrNull ( blk : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_startLeaking ( ) ; } extern "C" { pub fn Memento_stopLeaking ( ) ; } extern "C" { pub fn Memento_sequence ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn Memento_fin ( ) ; } extern "C" { pub fn Memento_bt ( ) ; } extern "C" { pub fn fz_atof ( s : * const :: std :: os :: raw :: c_char ) -> f32 ; } extern "C" { pub fn fz_atoi ( s : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_atoi64 ( s : * const :: std :: os :: raw :: c_char ) -> i64 ; } pub type fz_point = fz_point_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_point_s { pub x : f32 , pub y : f32 , } # [ test ] fn bindgen_test_layout_fz_point_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_point_s > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( fz_point_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_point_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_point_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_point_s > ( ) ) ) . x as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_point_s ) , "::" , stringify ! ( x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_point_s > ( ) ) ) . y as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_point_s ) , "::" , stringify ! ( y ) ) ) ; } pub type fz_rect = fz_rect_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_rect_s { pub x0 : f32 , pub y0 : f32 , pub x1 : f32 , pub y1 : f32 , } # [ test ] fn bindgen_test_layout_fz_rect_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_rect_s > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( fz_rect_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_rect_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_rect_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_rect_s > ( ) ) ) . x0 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_rect_s ) , "::" , stringify ! ( x0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_rect_s > ( ) ) ) . y0 as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_rect_s ) , "::" , stringify ! ( y0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_rect_s > ( ) ) ) . x1 as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_rect_s ) , "::" , stringify ! ( x1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_rect_s > ( ) ) ) . y1 as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_rect_s ) , "::" , stringify ! ( y1 ) ) ) ; } pub type fz_irect = fz_irect_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_irect_s { pub x0 : :: std :: os :: raw :: c_int , pub y0 : :: std :: os :: raw :: c_int , pub x1 : :: std :: os :: raw :: c_int , pub y1 : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_irect_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_irect_s > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( fz_irect_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_irect_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_irect_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_irect_s > ( ) ) ) . x0 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_irect_s ) , "::" , stringify ! ( x0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_irect_s > ( ) ) ) . y0 as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_irect_s ) , "::" , stringify ! ( y0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_irect_s > ( ) ) ) . x1 as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_irect_s ) , "::" , stringify ! ( x1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_irect_s > ( ) ) ) . y1 as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_irect_s ) , "::" , stringify ! ( y1 ) ) ) ; } extern "C" { pub static fz_unit_rect : fz_rect ; } extern "C" { pub static fz_empty_rect : fz_rect ; } extern "C" { pub static fz_empty_irect : fz_irect ; } extern "C" { pub static fz_infinite_rect : fz_rect ; } extern "C" { pub static fz_infinite_irect : fz_irect ; } pub type fz_matrix = fz_matrix_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_matrix_s { pub a : f32 , pub b : f32 , pub c : f32 , pub d : f32 , pub e : f32 , pub f : f32 , } # [ test ] fn bindgen_test_layout_fz_matrix_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_matrix_s > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( fz_matrix_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_matrix_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_matrix_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_matrix_s > ( ) ) ) . a as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_matrix_s ) , "::" , stringify ! ( a ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_matrix_s > ( ) ) ) . b as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_matrix_s ) , "::" , stringify ! ( b ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_matrix_s > ( ) ) ) . c as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_matrix_s ) , "::" , stringify ! ( c ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_matrix_s > ( ) ) ) . d as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_matrix_s ) , "::" , stringify ! ( d ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_matrix_s > ( ) ) ) . e as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_matrix_s ) , "::" , stringify ! ( e ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_matrix_s > ( ) ) ) . f as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( fz_matrix_s ) , "::" , stringify ! ( f ) ) ) ; } extern "C" { pub static fz_identity : fz_matrix ; } extern "C" { pub fn fz_concat ( left : fz_matrix , right : fz_matrix ) -> fz_matrix ; } extern "C" { pub fn fz_scale ( sx : f32 , sy : f32 ) -> fz_matrix ; } extern "C" { pub fn fz_pre_scale ( m : fz_matrix , sx : f32 , sy : f32 ) -> fz_matrix ; } extern "C" { pub fn fz_post_scale ( m : fz_matrix , sx : f32 , sy : f32 ) -> fz_matrix ; } extern "C" { pub fn fz_shear ( sx : f32 , sy : f32 ) -> fz_matrix ; } extern "C" { pub fn fz_pre_shear ( m : fz_matrix , sx : f32 , sy : f32 ) -> fz_matrix ; } extern "C" { pub fn fz_rotate ( degrees : f32 ) -> fz_matrix ; } extern "C" { pub fn fz_pre_rotate ( m : fz_matrix , degrees : f32 ) -> fz_matrix ; } extern "C" { pub fn fz_translate ( tx : f32 , ty : f32 ) -> fz_matrix ; } extern "C" { pub fn fz_pre_translate ( m : fz_matrix , tx : f32 , ty : f32 ) -> fz_matrix ; } extern "C" { pub fn fz_transform_page ( mediabox : fz_rect , resolution : f32 , rotate : f32 ) -> fz_matrix ; } extern "C" { pub fn fz_invert_matrix ( matrix : fz_matrix ) -> fz_matrix ; } extern "C" { pub fn fz_try_invert_matrix ( inv : * mut fz_matrix , src : fz_matrix ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_is_rectilinear ( m : fz_matrix ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_matrix_expansion ( m : fz_matrix ) -> f32 ; } extern "C" { pub fn fz_intersect_rect ( a : fz_rect , b : fz_rect ) -> fz_rect ; } extern "C" { pub fn fz_intersect_irect ( a : fz_irect , b : fz_irect ) -> fz_irect ; } extern "C" { pub fn fz_union_rect ( a : fz_rect , b : fz_rect ) -> fz_rect ; } extern "C" { pub fn fz_irect_from_rect ( rect : fz_rect ) -> fz_irect ; } extern "C" { pub fn fz_round_rect ( rect : fz_rect ) -> fz_irect ; } extern "C" { pub fn fz_rect_from_irect ( bbox : fz_irect ) -> fz_rect ; } extern "C" { pub fn fz_expand_rect ( b : fz_rect , expand : f32 ) -> fz_rect ; } extern "C" { pub fn fz_expand_irect ( a : fz_irect , expand : :: std :: os :: raw :: c_int ) -> fz_irect ; } extern "C" { pub fn fz_include_point_in_rect ( r : fz_rect , p : fz_point ) -> fz_rect ; } extern "C" { pub fn fz_translate_rect ( a : fz_rect , xoff : f32 , yoff : f32 ) -> fz_rect ; } extern "C" { pub fn fz_translate_irect ( a : fz_irect , xoff : :: std :: os :: raw :: c_int , yoff : :: std :: os :: raw :: c_int ) -> fz_irect ; } extern "C" { pub fn fz_contains_rect ( a : fz_rect , b : fz_rect ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_transform_point ( point : fz_point , m : fz_matrix ) -> fz_point ; } extern "C" { pub fn fz_transform_point_xy ( x : f32 , y : f32 , m : fz_matrix ) -> fz_point ; } extern "C" { pub fn fz_transform_vector ( vector : fz_point , m : fz_matrix ) -> fz_point ; } extern "C" { pub fn fz_transform_rect ( rect : fz_rect , m : fz_matrix ) -> fz_rect ; } extern "C" { pub fn fz_normalize_vector ( p : fz_point ) -> fz_point ; } extern "C" { pub fn fz_gridfit_matrix ( as_tiled : :: std :: os :: raw :: c_int , m : fz_matrix ) -> fz_matrix ; } extern "C" { pub fn fz_matrix_max_expansion ( m : fz_matrix ) -> f32 ; } pub type fz_quad = fz_quad_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_quad_s { pub ul : fz_point , pub ur : fz_point , pub ll : fz_point , pub lr : fz_point , } # [ test ] fn bindgen_test_layout_fz_quad_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_quad_s > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( fz_quad_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_quad_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_quad_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_quad_s > ( ) ) ) . ul as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_quad_s ) , "::" , stringify ! ( ul ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_quad_s > ( ) ) ) . ur as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_quad_s ) , "::" , stringify ! ( ur ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_quad_s > ( ) ) ) . ll as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_quad_s ) , "::" , stringify ! ( ll ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_quad_s > ( ) ) ) . lr as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_quad_s ) , "::" , stringify ! ( lr ) ) ) ; } extern "C" { pub fn fz_rect_from_quad ( q : fz_quad ) -> fz_rect ; } extern "C" { pub fn fz_transform_quad ( q : fz_quad , m : fz_matrix ) -> fz_quad ; } extern "C" { pub fn fz_is_point_inside_quad ( p : fz_point , q : fz_quad ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_is_point_inside_rect ( p : fz_point , r : fz_rect ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_is_point_inside_irect ( x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , r : fz_irect ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_font_context_s { _unused : [ u8 ; 0 ] , } pub type fz_font_context = fz_font_context_s ; pub type fz_colorspace_context = fz_colorspace_context_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_style_context_s { _unused : [ u8 ; 0 ] , } pub type fz_style_context = fz_style_context_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_tuning_context_s { _unused : [ u8 ; 0 ] , } pub type fz_tuning_context = fz_tuning_context_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_store_s { _unused : [ u8 ; 0 ] , } pub type fz_store = fz_store_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_glyph_cache_s { _unused : [ u8 ; 0 ] , } pub type fz_glyph_cache = fz_glyph_cache_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_document_handler_context_s { _unused : [ u8 ; 0 ] , } pub type fz_document_handler_context = fz_document_handler_context_s ; pub type fz_context = fz_context_s ; pub type fz_alloc_context = fz_alloc_context_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_alloc_context_s { pub user : * mut :: std :: os :: raw :: c_void , pub malloc : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : usize ) -> * mut :: std :: os :: raw :: c_void > , pub realloc : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_void , arg3 : usize ) -> * mut :: std :: os :: raw :: c_void > , pub free : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut :: std :: os :: raw :: c_void , arg2 : * mut :: std :: os :: raw :: c_void ) > , } # [ test ] fn bindgen_test_layout_fz_alloc_context_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_alloc_context_s > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( fz_alloc_context_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_alloc_context_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_alloc_context_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_alloc_context_s > ( ) ) ) . user as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_alloc_context_s ) , "::" , stringify ! ( user ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_alloc_context_s > ( ) ) ) . malloc as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_alloc_context_s ) , "::" , stringify ! ( malloc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_alloc_context_s > ( ) ) ) . realloc as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_alloc_context_s ) , "::" , stringify ! ( realloc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_alloc_context_s > ( ) ) ) . free as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_alloc_context_s ) , "::" , stringify ! ( free ) ) ) ; } pub type fz_error_stack_slot = fz_error_stack_slot_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_error_stack_slot_s { pub state : :: std :: os :: raw :: c_int , pub code : :: std :: os :: raw :: c_int , pub buffer : sigjmp_buf , } # [ test ] fn bindgen_test_layout_fz_error_stack_slot_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_error_stack_slot_s > ( ) , 208usize , concat ! ( "Size of: " , stringify ! ( fz_error_stack_slot_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_error_stack_slot_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_error_stack_slot_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_error_stack_slot_s > ( ) ) ) . state as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_error_stack_slot_s ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_error_stack_slot_s > ( ) ) ) . code as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_error_stack_slot_s ) , "::" , stringify ! ( code ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_error_stack_slot_s > ( ) ) ) . buffer as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_error_stack_slot_s ) , "::" , stringify ! ( buffer ) ) ) ; } pub type fz_error_context = fz_error_context_s ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_error_context_s { pub top : * mut fz_error_stack_slot , pub stack : [ fz_error_stack_slot ; 256usize ] , pub errcode : :: std :: os :: raw :: c_int , pub print_user : * mut :: std :: os :: raw :: c_void , pub print : :: std :: option :: Option < unsafe extern "C" fn ( user : * mut :: std :: os :: raw :: c_void , message : * const :: std :: os :: raw :: c_char ) > , pub message : [ :: std :: os :: raw :: c_char ; 256usize ] , } # [ test ] fn bindgen_test_layout_fz_error_context_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_error_context_s > ( ) , 53536usize , concat ! ( "Size of: " , stringify ! ( fz_error_context_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_error_context_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_error_context_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_error_context_s > ( ) ) ) . top as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_error_context_s ) , "::" , stringify ! ( top ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_error_context_s > ( ) ) ) . stack as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_error_context_s ) , "::" , stringify ! ( stack ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_error_context_s > ( ) ) ) . errcode as * const _ as usize } , 53256usize , concat ! ( "Offset of field: " , stringify ! ( fz_error_context_s ) , "::" , stringify ! ( errcode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_error_context_s > ( ) ) ) . print_user as * const _ as usize } , 53264usize , concat ! ( "Offset of field: " , stringify ! ( fz_error_context_s ) , "::" , stringify ! ( print_user ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_error_context_s > ( ) ) ) . print as * const _ as usize } , 53272usize , concat ! ( "Offset of field: " , stringify ! ( fz_error_context_s ) , "::" , stringify ! ( print ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_error_context_s > ( ) ) ) . message as * const _ as usize } , 53280usize , concat ! ( "Offset of field: " , stringify ! ( fz_error_context_s ) , "::" , stringify ! ( message ) ) ) ; } pub type fz_warn_context = fz_warn_context_s ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_warn_context_s { pub print_user : * mut :: std :: os :: raw :: c_void , pub print : :: std :: option :: Option < unsafe extern "C" fn ( user : * mut :: std :: os :: raw :: c_void , message : * const :: std :: os :: raw :: c_char ) > , pub count : :: std :: os :: raw :: c_int , pub message : [ :: std :: os :: raw :: c_char ; 256usize ] , } # [ test ] fn bindgen_test_layout_fz_warn_context_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_warn_context_s > ( ) , 280usize , concat ! ( "Size of: " , stringify ! ( fz_warn_context_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_warn_context_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_warn_context_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_warn_context_s > ( ) ) ) . print_user as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_warn_context_s ) , "::" , stringify ! ( print_user ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_warn_context_s > ( ) ) ) . print as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_warn_context_s ) , "::" , stringify ! ( print ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_warn_context_s > ( ) ) ) . count as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_warn_context_s ) , "::" , stringify ! ( count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_warn_context_s > ( ) ) ) . message as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( fz_warn_context_s ) , "::" , stringify ! ( message ) ) ) ; } pub type fz_aa_context = fz_aa_context_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_aa_context_s { pub hscale : :: std :: os :: raw :: c_int , pub vscale : :: std :: os :: raw :: c_int , pub scale : :: std :: os :: raw :: c_int , pub bits : :: std :: os :: raw :: c_int , pub text_bits : :: std :: os :: raw :: c_int , pub min_line_width : f32 , } # [ test ] fn bindgen_test_layout_fz_aa_context_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_aa_context_s > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( fz_aa_context_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_aa_context_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_aa_context_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_aa_context_s > ( ) ) ) . hscale as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_aa_context_s ) , "::" , stringify ! ( hscale ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_aa_context_s > ( ) ) ) . vscale as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_aa_context_s ) , "::" , stringify ! ( vscale ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_aa_context_s > ( ) ) ) . scale as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_aa_context_s ) , "::" , stringify ! ( scale ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_aa_context_s > ( ) ) ) . bits as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_aa_context_s ) , "::" , stringify ! ( bits ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_aa_context_s > ( ) ) ) . text_bits as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_aa_context_s ) , "::" , stringify ! ( text_bits ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_aa_context_s > ( ) ) ) . min_line_width as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( fz_aa_context_s ) , "::" , stringify ! ( min_line_width ) ) ) ; } extern "C" { pub fn fz_var_imp ( arg1 : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn fz_push_try ( ctx : * mut fz_context ) -> * mut sigjmp_buf ; } extern "C" { pub fn fz_do_try ( ctx : * mut fz_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_do_always ( ctx : * mut fz_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_do_catch ( ctx : * mut fz_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_vthrow ( ctx : * mut fz_context , errcode : :: std :: os :: raw :: c_int , arg1 : * const :: std :: os :: raw :: c_char , ap : * mut __va_list_tag ) ; } extern "C" { pub fn fz_throw ( ctx : * mut fz_context , errcode : :: std :: os :: raw :: c_int , arg1 : * const :: std :: os :: raw :: c_char , ... ) ; } extern "C" { pub fn fz_rethrow ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_vwarn ( ctx : * mut fz_context , fmt : * const :: std :: os :: raw :: c_char , ap : * mut __va_list_tag ) ; } extern "C" { pub fn fz_warn ( ctx : * mut fz_context , fmt : * const :: std :: os :: raw :: c_char , ... ) ; } extern "C" { pub fn fz_caught_message ( ctx : * mut fz_context ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_caught ( ctx : * mut fz_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_rethrow_if ( ctx : * mut fz_context , errcode : :: std :: os :: raw :: c_int ) ; } pub const FZ_ERROR_NONE : _bindgen_ty_1 = 0 ; pub const FZ_ERROR_MEMORY : _bindgen_ty_1 = 1 ; pub const FZ_ERROR_GENERIC : _bindgen_ty_1 = 2 ; pub const FZ_ERROR_SYNTAX : _bindgen_ty_1 = 3 ; pub const FZ_ERROR_MINOR : _bindgen_ty_1 = 4 ; pub const FZ_ERROR_TRYLATER : _bindgen_ty_1 = 5 ; pub const FZ_ERROR_ABORT : _bindgen_ty_1 = 6 ; pub const FZ_ERROR_COUNT : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = u32 ; extern "C" { pub fn fz_flush_warnings ( ctx : * mut fz_context ) ; } pub type fz_locks_context = fz_locks_context_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_locks_context_s { pub user : * mut :: std :: os :: raw :: c_void , pub lock : :: std :: option :: Option < unsafe extern "C" fn ( user : * mut :: std :: os :: raw :: c_void , lock : :: std :: os :: raw :: c_int ) > , pub unlock : :: std :: option :: Option < unsafe extern "C" fn ( user : * mut :: std :: os :: raw :: c_void , lock : :: std :: os :: raw :: c_int ) > , } # [ test ] fn bindgen_test_layout_fz_locks_context_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_locks_context_s > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( fz_locks_context_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_locks_context_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_locks_context_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_locks_context_s > ( ) ) ) . user as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_locks_context_s ) , "::" , stringify ! ( user ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_locks_context_s > ( ) ) ) . lock as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_locks_context_s ) , "::" , stringify ! ( lock ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_locks_context_s > ( ) ) ) . unlock as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_locks_context_s ) , "::" , stringify ! ( unlock ) ) ) ; } pub const FZ_LOCK_ALLOC : _bindgen_ty_2 = 0 ; pub const FZ_LOCK_FREETYPE : _bindgen_ty_2 = 1 ; pub const FZ_LOCK_GLYPHCACHE : _bindgen_ty_2 = 2 ; pub const FZ_LOCK_MAX : _bindgen_ty_2 = 3 ; pub type _bindgen_ty_2 = u32 ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_context_s { pub user : * mut :: std :: os :: raw :: c_void , pub alloc : fz_alloc_context , pub locks : fz_locks_context , pub error : fz_error_context , pub warn : fz_warn_context , pub aa : fz_aa_context , pub seed48 : [ u16 ; 7usize ] , pub icc_enabled : :: std :: os :: raw :: c_int , pub handler : * mut fz_document_handler_context , pub style : * mut fz_style_context , pub tuning : * mut fz_tuning_context , pub font : * mut fz_font_context , pub colorspace : * mut fz_colorspace_context , pub store : * mut fz_store , pub glyph_cache : * mut fz_glyph_cache , } # [ test ] fn bindgen_test_layout_fz_context_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_context_s > ( ) , 53984usize , concat ! ( "Size of: " , stringify ! ( fz_context_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_context_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_context_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . user as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( user ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . alloc as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( alloc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . locks as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( locks ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . error as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . warn as * const _ as usize } , 53600usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( warn ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . aa as * const _ as usize } , 53880usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( aa ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . seed48 as * const _ as usize } , 53904usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( seed48 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . icc_enabled as * const _ as usize } , 53920usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( icc_enabled ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . handler as * const _ as usize } , 53928usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( handler ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . style as * const _ as usize } , 53936usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( style ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . tuning as * const _ as usize } , 53944usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( tuning ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . font as * const _ as usize } , 53952usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( font ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . colorspace as * const _ as usize } , 53960usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( colorspace ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . store as * const _ as usize } , 53968usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( store ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_context_s > ( ) ) ) . glyph_cache as * const _ as usize } , 53976usize , concat ! ( "Offset of field: " , stringify ! ( fz_context_s ) , "::" , stringify ! ( glyph_cache ) ) ) ; } pub const FZ_STORE_UNLIMITED : _bindgen_ty_3 = 0 ; pub const FZ_STORE_DEFAULT : _bindgen_ty_3 = 268435456 ; pub type _bindgen_ty_3 = u32 ; extern "C" { pub fn fz_new_context_imp ( alloc : * const fz_alloc_context , locks : * const fz_locks_context , max_store : usize , version : * const :: std :: os :: raw :: c_char ) -> * mut fz_context ; } extern "C" { pub fn fz_clone_context ( ctx : * mut fz_context ) -> * mut fz_context ; } extern "C" { pub fn fz_drop_context ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_set_user_context ( ctx : * mut fz_context , user : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn fz_user_context ( ctx : * mut fz_context ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_default_error_callback ( user : * mut :: std :: os :: raw :: c_void , message : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_default_warning_callback ( user : * mut :: std :: os :: raw :: c_void , message : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_set_error_callback ( ctx : * mut fz_context , print : :: std :: option :: Option < unsafe extern "C" fn ( user : * mut :: std :: os :: raw :: c_void , message : * const :: std :: os :: raw :: c_char ) > , user : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn fz_set_warning_callback ( ctx : * mut fz_context , print : :: std :: option :: Option < unsafe extern "C" fn ( user : * mut :: std :: os :: raw :: c_void , message : * const :: std :: os :: raw :: c_char ) > , user : * mut :: std :: os :: raw :: c_void ) ; } pub type fz_tune_image_decode_fn = :: std :: option :: Option < unsafe extern "C" fn ( arg : * mut :: std :: os :: raw :: c_void , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , l2factor : :: std :: os :: raw :: c_int , subarea : * mut fz_irect ) > ; pub type fz_tune_image_scale_fn = :: std :: option :: Option < unsafe extern "C" fn ( arg : * mut :: std :: os :: raw :: c_void , dst_w : :: std :: os :: raw :: c_int , dst_h : :: std :: os :: raw :: c_int , src_w : :: std :: os :: raw :: c_int , src_h : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn fz_tune_image_decode ( ctx : * mut fz_context , image_decode : fz_tune_image_decode_fn , arg : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn fz_tune_image_scale ( ctx : * mut fz_context , image_scale : fz_tune_image_scale_fn , arg : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn fz_aa_level ( ctx : * mut fz_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_set_aa_level ( ctx : * mut fz_context , bits : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_text_aa_level ( ctx : * mut fz_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_set_text_aa_level ( ctx : * mut fz_context , bits : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_graphics_aa_level ( ctx : * mut fz_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_set_graphics_aa_level ( ctx : * mut fz_context , bits : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_graphics_min_line_width ( ctx : * mut fz_context ) -> f32 ; } extern "C" { pub fn fz_set_graphics_min_line_width ( ctx : * mut fz_context , min_line_width : f32 ) ; } extern "C" { pub fn fz_user_css ( ctx : * mut fz_context ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_set_user_css ( ctx : * mut fz_context , text : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_use_document_css ( ctx : * mut fz_context ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_set_use_document_css ( ctx : * mut fz_context , use_ : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_enable_icc ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_disable_icc ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_malloc ( ctx : * mut fz_context , size : usize ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_calloc ( ctx : * mut fz_context , count : usize , size : usize ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_realloc ( ctx : * mut fz_context , p : * mut :: std :: os :: raw :: c_void , size : usize ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_free ( ctx : * mut fz_context , p : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn fz_malloc_no_throw ( ctx : * mut fz_context , size : usize ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_calloc_no_throw ( ctx : * mut fz_context , count : usize , size : usize ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_realloc_no_throw ( ctx : * mut fz_context , p : * mut :: std :: os :: raw :: c_void , size : usize ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_strdup ( ctx : * mut fz_context , s : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_zlib_alloc ( ctx : * mut :: std :: os :: raw :: c_void , items : :: std :: os :: raw :: c_uint , size : :: std :: os :: raw :: c_uint ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_zlib_free ( ctx : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub static mut fz_alloc_default : fz_alloc_context ; } extern "C" { pub static mut fz_locks_default : fz_locks_context ; } extern "C" { pub fn fz_drand48 ( ctx : * mut fz_context ) -> f64 ; } extern "C" { pub fn fz_lrand48 ( ctx : * mut fz_context ) -> i32 ; } extern "C" { pub fn fz_mrand48 ( ctx : * mut fz_context ) -> i32 ; } extern "C" { pub fn fz_erand48 ( ctx : * mut fz_context , xsubi : * mut u16 ) -> f64 ; } extern "C" { pub fn fz_jrand48 ( ctx : * mut fz_context , xsubi : * mut u16 ) -> i32 ; } extern "C" { pub fn fz_nrand48 ( ctx : * mut fz_context , xsubi : * mut u16 ) -> i32 ; } extern "C" { pub fn fz_lcong48 ( ctx : * mut fz_context , param : * mut u16 ) ; } extern "C" { pub fn fz_seed48 ( ctx : * mut fz_context , seed16v : * mut u16 ) -> * mut u16 ; } extern "C" { pub fn fz_srand48 ( ctx : * mut fz_context , seedval : i32 ) ; } extern "C" { pub fn fz_memrnd ( ctx : * mut fz_context , block : * mut u8 , len : :: std :: os :: raw :: c_int ) ; } pub type fz_md5 = fz_md5_s ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_md5_s { pub state : [ :: std :: os :: raw :: c_uint ; 4usize ] , pub count : [ :: std :: os :: raw :: c_uint ; 2usize ] , pub buffer : [ :: std :: os :: raw :: c_uchar ; 64usize ] , } # [ test ] fn bindgen_test_layout_fz_md5_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_md5_s > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( fz_md5_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_md5_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_md5_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_md5_s > ( ) ) ) . state as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_md5_s ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_md5_s > ( ) ) ) . count as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_md5_s ) , "::" , stringify ! ( count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_md5_s > ( ) ) ) . buffer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_md5_s ) , "::" , stringify ! ( buffer ) ) ) ; } extern "C" { pub fn fz_md5_init ( state : * mut fz_md5 ) ; } extern "C" { pub fn fz_md5_update ( state : * mut fz_md5 , input : * const :: std :: os :: raw :: c_uchar , inlen : usize ) ; } extern "C" { pub fn fz_md5_final ( state : * mut fz_md5 , digest : * mut :: std :: os :: raw :: c_uchar ) ; } pub type fz_sha256 = fz_sha256_s ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_sha256_s { pub state : [ :: std :: os :: raw :: c_uint ; 8usize ] , pub count : [ :: std :: os :: raw :: c_uint ; 2usize ] , pub buffer : fz_sha256_s__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union fz_sha256_s__bindgen_ty_1 { pub u8 : [ :: std :: os :: raw :: c_uchar ; 64usize ] , pub u32 : [ :: std :: os :: raw :: c_uint ; 16usize ] , _bindgen_union_align : [ u32 ; 16usize ] , } # [ test ] fn bindgen_test_layout_fz_sha256_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_sha256_s__bindgen_ty_1 > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( fz_sha256_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_sha256_s__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_sha256_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_sha256_s__bindgen_ty_1 > ( ) ) ) . u8 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_sha256_s__bindgen_ty_1 ) , "::" , stringify ! ( u8 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_sha256_s__bindgen_ty_1 > ( ) ) ) . u32 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_sha256_s__bindgen_ty_1 ) , "::" , stringify ! ( u32 ) ) ) ; } # [ test ] fn bindgen_test_layout_fz_sha256_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_sha256_s > ( ) , 104usize , concat ! ( "Size of: " , stringify ! ( fz_sha256_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_sha256_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_sha256_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_sha256_s > ( ) ) ) . state as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_sha256_s ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_sha256_s > ( ) ) ) . count as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_sha256_s ) , "::" , stringify ! ( count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_sha256_s > ( ) ) ) . buffer as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_sha256_s ) , "::" , stringify ! ( buffer ) ) ) ; } extern "C" { pub fn fz_sha256_init ( state : * mut fz_sha256 ) ; } extern "C" { pub fn fz_sha256_update ( state : * mut fz_sha256 , input : * const :: std :: os :: raw :: c_uchar , inlen : usize ) ; } extern "C" { pub fn fz_sha256_final ( state : * mut fz_sha256 , digest : * mut :: std :: os :: raw :: c_uchar ) ; } pub type fz_sha512 = fz_sha512_s ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_sha512_s { pub state : [ u64 ; 8usize ] , pub count : [ :: std :: os :: raw :: c_uint ; 2usize ] , pub buffer : fz_sha512_s__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union fz_sha512_s__bindgen_ty_1 { pub u8 : [ :: std :: os :: raw :: c_uchar ; 128usize ] , pub u64 : [ u64 ; 16usize ] , _bindgen_union_align : [ u64 ; 16usize ] , } # [ test ] fn bindgen_test_layout_fz_sha512_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_sha512_s__bindgen_ty_1 > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( fz_sha512_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_sha512_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_sha512_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_sha512_s__bindgen_ty_1 > ( ) ) ) . u8 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_sha512_s__bindgen_ty_1 ) , "::" , stringify ! ( u8 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_sha512_s__bindgen_ty_1 > ( ) ) ) . u64 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_sha512_s__bindgen_ty_1 ) , "::" , stringify ! ( u64 ) ) ) ; } # [ test ] fn bindgen_test_layout_fz_sha512_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_sha512_s > ( ) , 200usize , concat ! ( "Size of: " , stringify ! ( fz_sha512_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_sha512_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_sha512_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_sha512_s > ( ) ) ) . state as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_sha512_s ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_sha512_s > ( ) ) ) . count as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_sha512_s ) , "::" , stringify ! ( count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_sha512_s > ( ) ) ) . buffer as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fz_sha512_s ) , "::" , stringify ! ( buffer ) ) ) ; } extern "C" { pub fn fz_sha512_init ( state : * mut fz_sha512 ) ; } extern "C" { pub fn fz_sha512_update ( state : * mut fz_sha512 , input : * const :: std :: os :: raw :: c_uchar , inlen : usize ) ; } extern "C" { pub fn fz_sha512_final ( state : * mut fz_sha512 , digest : * mut :: std :: os :: raw :: c_uchar ) ; } pub type fz_sha384 = fz_sha512_s ; extern "C" { pub fn fz_sha384_init ( state : * mut fz_sha384 ) ; } extern "C" { pub fn fz_sha384_update ( state : * mut fz_sha384 , input : * const :: std :: os :: raw :: c_uchar , inlen : usize ) ; } extern "C" { pub fn fz_sha384_final ( state : * mut fz_sha384 , digest : * mut :: std :: os :: raw :: c_uchar ) ; } pub type fz_arc4 = fz_arc4_s ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_arc4_s { pub x : :: std :: os :: raw :: c_uint , pub y : :: std :: os :: raw :: c_uint , pub state : [ :: std :: os :: raw :: c_uchar ; 256usize ] , } # [ test ] fn bindgen_test_layout_fz_arc4_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_arc4_s > ( ) , 264usize , concat ! ( "Size of: " , stringify ! ( fz_arc4_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_arc4_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_arc4_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_arc4_s > ( ) ) ) . x as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_arc4_s ) , "::" , stringify ! ( x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_arc4_s > ( ) ) ) . y as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_arc4_s ) , "::" , stringify ! ( y ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_arc4_s > ( ) ) ) . state as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_arc4_s ) , "::" , stringify ! ( state ) ) ) ; } extern "C" { pub fn fz_arc4_init ( state : * mut fz_arc4 , key : * const :: std :: os :: raw :: c_uchar , len : usize ) ; } extern "C" { pub fn fz_arc4_encrypt ( state : * mut fz_arc4 , dest : * mut :: std :: os :: raw :: c_uchar , src : * const :: std :: os :: raw :: c_uchar , len : usize ) ; } pub type fz_aes = fz_aes_s ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_aes_s { pub nr : :: std :: os :: raw :: c_int , pub rk : * mut :: std :: os :: raw :: c_ulong , pub buf : [ :: std :: os :: raw :: c_ulong ; 68usize ] , } # [ test ] fn bindgen_test_layout_fz_aes_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_aes_s > ( ) , 560usize , concat ! ( "Size of: " , stringify ! ( fz_aes_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_aes_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_aes_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_aes_s > ( ) ) ) . nr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_aes_s ) , "::" , stringify ! ( nr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_aes_s > ( ) ) ) . rk as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_aes_s ) , "::" , stringify ! ( rk ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_aes_s > ( ) ) ) . buf as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_aes_s ) , "::" , stringify ! ( buf ) ) ) ; } extern "C" { pub fn fz_aes_setkey_enc ( ctx : * mut fz_aes , key : * const :: std :: os :: raw :: c_uchar , keysize : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_aes_setkey_dec ( ctx : * mut fz_aes , key : * const :: std :: os :: raw :: c_uchar , keysize : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_aes_crypt_cbc ( ctx : * mut fz_aes , mode : :: std :: os :: raw :: c_int , length : usize , iv : * mut :: std :: os :: raw :: c_uchar , input : * const :: std :: os :: raw :: c_uchar , output : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn fz_getopt ( nargc : :: std :: os :: raw :: c_int , nargv : * const * mut :: std :: os :: raw :: c_char , ostr : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub static mut fz_optind : :: std :: os :: raw :: c_int ; } extern "C" { pub static mut fz_optarg : * mut :: std :: os :: raw :: c_char ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_buffer_s { _unused : [ u8 ; 0 ] , } pub type fz_buffer = fz_buffer_s ; extern "C" { pub fn fz_keep_buffer ( ctx : * mut fz_context , buf : * mut fz_buffer ) -> * mut fz_buffer ; } extern "C" { pub fn fz_drop_buffer ( ctx : * mut fz_context , buf : * mut fz_buffer ) ; } extern "C" { pub fn fz_buffer_storage ( ctx : * mut fz_context , buf : * mut fz_buffer , datap : * mut * mut :: std :: os :: raw :: c_uchar ) -> usize ; } extern "C" { pub fn fz_string_from_buffer ( ctx : * mut fz_context , buf : * mut fz_buffer ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_new_buffer ( ctx : * mut fz_context , capacity : usize ) -> * mut fz_buffer ; } extern "C" { pub fn fz_new_buffer_from_data ( ctx : * mut fz_context , data : * mut :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_buffer ; } extern "C" { pub fn fz_new_buffer_from_shared_data ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_buffer ; } extern "C" { pub fn fz_new_buffer_from_copied_data ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_buffer ; } extern "C" { pub fn fz_new_buffer_from_base64 ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_char , size : usize ) -> * mut fz_buffer ; } extern "C" { pub fn fz_resize_buffer ( ctx : * mut fz_context , buf : * mut fz_buffer , capacity : usize ) ; } extern "C" { pub fn fz_grow_buffer ( ctx : * mut fz_context , buf : * mut fz_buffer ) ; } extern "C" { pub fn fz_trim_buffer ( ctx : * mut fz_context , buf : * mut fz_buffer ) ; } extern "C" { pub fn fz_clear_buffer ( ctx : * mut fz_context , buf : * mut fz_buffer ) ; } extern "C" { pub fn fz_append_buffer ( ctx : * mut fz_context , destination : * mut fz_buffer , source : * mut fz_buffer ) ; } extern "C" { pub fn fz_append_data ( ctx : * mut fz_context , buf : * mut fz_buffer , data : * const :: std :: os :: raw :: c_void , len : usize ) ; } extern "C" { pub fn fz_append_string ( ctx : * mut fz_context , buf : * mut fz_buffer , data : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_append_byte ( ctx : * mut fz_context , buf : * mut fz_buffer , c : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_append_rune ( ctx : * mut fz_context , buf : * mut fz_buffer , c : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_append_int32_le ( ctx : * mut fz_context , buf : * mut fz_buffer , x : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_append_int16_le ( ctx : * mut fz_context , buf : * mut fz_buffer , x : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_append_int32_be ( ctx : * mut fz_context , buf : * mut fz_buffer , x : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_append_int16_be ( ctx : * mut fz_context , buf : * mut fz_buffer , x : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_append_bits ( ctx : * mut fz_context , buf : * mut fz_buffer , value : :: std :: os :: raw :: c_int , count : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_append_bits_pad ( ctx : * mut fz_context , buf : * mut fz_buffer ) ; } extern "C" { pub fn fz_append_printf ( ctx : * mut fz_context , buffer : * mut fz_buffer , fmt : * const :: std :: os :: raw :: c_char , ... ) ; } extern "C" { pub fn fz_append_vprintf ( ctx : * mut fz_context , buffer : * mut fz_buffer , fmt : * const :: std :: os :: raw :: c_char , args : * mut __va_list_tag ) ; } extern "C" { pub fn fz_append_pdf_string ( ctx : * mut fz_context , buffer : * mut fz_buffer , text : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_terminate_buffer ( ctx : * mut fz_context , buf : * mut fz_buffer ) ; } extern "C" { pub fn fz_md5_buffer ( ctx : * mut fz_context , buffer : * mut fz_buffer , digest : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn fz_buffer_extract ( ctx : * mut fz_context , buf : * mut fz_buffer , data : * mut * mut :: std :: os :: raw :: c_uchar ) -> usize ; } extern "C" { pub fn fz_strnlen ( s : * const :: std :: os :: raw :: c_char , maxlen : usize ) -> usize ; } extern "C" { pub fn fz_strsep ( stringp : * mut * mut :: std :: os :: raw :: c_char , delim : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_strlcpy ( dst : * mut :: std :: os :: raw :: c_char , src : * const :: std :: os :: raw :: c_char , n : usize ) -> usize ; } extern "C" { pub fn fz_strlcat ( dst : * mut :: std :: os :: raw :: c_char , src : * const :: std :: os :: raw :: c_char , n : usize ) -> usize ; } extern "C" { pub fn fz_memmem ( haystack : * const :: std :: os :: raw :: c_void , haystacklen : usize , needle : * const :: std :: os :: raw :: c_void , needlelen : usize ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_dirname ( dir : * mut :: std :: os :: raw :: c_char , path : * const :: std :: os :: raw :: c_char , dirsize : usize ) ; } extern "C" { pub fn fz_urldecode ( url : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_format_output_path ( ctx : * mut fz_context , path : * mut :: std :: os :: raw :: c_char , size : usize , fmt : * const :: std :: os :: raw :: c_char , page : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_cleanname ( name : * mut :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_strcasecmp ( a : * const :: std :: os :: raw :: c_char , b : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_strncasecmp ( a : * const :: std :: os :: raw :: c_char , b : * const :: std :: os :: raw :: c_char , n : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } pub const FZ_UTFMAX : _bindgen_ty_4 = 4 ; pub type _bindgen_ty_4 = u32 ; extern "C" { pub fn fz_chartorune ( rune : * mut :: std :: os :: raw :: c_int , str : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_runetochar ( str : * mut :: std :: os :: raw :: c_char , rune : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_runelen ( rune : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_utflen ( s : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_strtof ( s : * const :: std :: os :: raw :: c_char , es : * mut * mut :: std :: os :: raw :: c_char ) -> f32 ; } extern "C" { pub fn fz_grisu ( f : f32 , s : * mut :: std :: os :: raw :: c_char , exp : * mut :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_is_page_range ( ctx : * mut fz_context , s : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_parse_page_range ( ctx : * mut fz_context , s : * const :: std :: os :: raw :: c_char , a : * mut :: std :: os :: raw :: c_int , b : * mut :: std :: os :: raw :: c_int , n : :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_file_exists ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } pub type fz_stream = fz_stream_s ; extern "C" { pub fn fz_open_file ( ctx : * mut fz_context , filename : * const :: std :: os :: raw :: c_char ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_file_w ( ctx : * mut fz_context , filename : * const wchar_t ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_memory ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , len : usize ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_buffer ( ctx : * mut fz_context , buf : * mut fz_buffer ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_leecher ( ctx : * mut fz_context , chain : * mut fz_stream , buf : * mut fz_buffer ) -> * mut fz_stream ; } extern "C" { pub fn fz_drop_stream ( ctx : * mut fz_context , stm : * mut fz_stream ) ; } extern "C" { pub fn fz_tell ( ctx : * mut fz_context , stm : * mut fz_stream ) -> i64 ; } extern "C" { pub fn fz_seek ( ctx : * mut fz_context , stm : * mut fz_stream , offset : i64 , whence : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_read ( ctx : * mut fz_context , stm : * mut fz_stream , data : * mut :: std :: os :: raw :: c_uchar , len : usize ) -> usize ; } extern "C" { pub fn fz_skip ( ctx : * mut fz_context , stm : * mut fz_stream , len : usize ) -> usize ; } extern "C" { pub fn fz_read_all ( ctx : * mut fz_context , stm : * mut fz_stream , initial : usize ) -> * mut fz_buffer ; } extern "C" { pub fn fz_read_file ( ctx : * mut fz_context , filename : * const :: std :: os :: raw :: c_char ) -> * mut fz_buffer ; } extern "C" { pub fn fz_read_uint16 ( ctx : * mut fz_context , stm : * mut fz_stream ) -> u16 ; } extern "C" { pub fn fz_read_uint24 ( ctx : * mut fz_context , stm : * mut fz_stream ) -> u32 ; } extern "C" { pub fn fz_read_uint32 ( ctx : * mut fz_context , stm : * mut fz_stream ) -> u32 ; } extern "C" { pub fn fz_read_uint64 ( ctx : * mut fz_context , stm : * mut fz_stream ) -> u64 ; } extern "C" { pub fn fz_read_uint16_le ( ctx : * mut fz_context , stm : * mut fz_stream ) -> u16 ; } extern "C" { pub fn fz_read_uint24_le ( ctx : * mut fz_context , stm : * mut fz_stream ) -> u32 ; } extern "C" { pub fn fz_read_uint32_le ( ctx : * mut fz_context , stm : * mut fz_stream ) -> u32 ; } extern "C" { pub fn fz_read_uint64_le ( ctx : * mut fz_context , stm : * mut fz_stream ) -> u64 ; } extern "C" { pub fn fz_read_int16 ( ctx : * mut fz_context , stm : * mut fz_stream ) -> i16 ; } extern "C" { pub fn fz_read_int32 ( ctx : * mut fz_context , stm : * mut fz_stream ) -> i32 ; } extern "C" { pub fn fz_read_int64 ( ctx : * mut fz_context , stm : * mut fz_stream ) -> i64 ; } extern "C" { pub fn fz_read_int16_le ( ctx : * mut fz_context , stm : * mut fz_stream ) -> i16 ; } extern "C" { pub fn fz_read_int32_le ( ctx : * mut fz_context , stm : * mut fz_stream ) -> i32 ; } extern "C" { pub fn fz_read_int64_le ( ctx : * mut fz_context , stm : * mut fz_stream ) -> i64 ; } extern "C" { pub fn fz_read_string ( ctx : * mut fz_context , stm : * mut fz_stream , buffer : * mut :: std :: os :: raw :: c_char , len : :: std :: os :: raw :: c_int ) ; } pub type fz_stream_next_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , stm : * mut fz_stream , max : usize ) -> :: std :: os :: raw :: c_int > ; pub type fz_stream_drop_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , state : * mut :: std :: os :: raw :: c_void ) > ; pub type fz_stream_seek_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , stm : * mut fz_stream , offset : i64 , whence : :: std :: os :: raw :: c_int ) > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_stream_s { pub refs : :: std :: os :: raw :: c_int , pub error : :: std :: os :: raw :: c_int , pub eof : :: std :: os :: raw :: c_int , pub progressive : :: std :: os :: raw :: c_int , pub pos : i64 , pub avail : :: std :: os :: raw :: c_int , pub bits : :: std :: os :: raw :: c_int , pub rp : * mut :: std :: os :: raw :: c_uchar , pub wp : * mut :: std :: os :: raw :: c_uchar , pub state : * mut :: std :: os :: raw :: c_void , pub next : fz_stream_next_fn , pub drop : fz_stream_drop_fn , pub seek : fz_stream_seek_fn , } # [ test ] fn bindgen_test_layout_fz_stream_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_stream_s > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fz_stream_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_stream_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_stream_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . error as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . eof as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( eof ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . progressive as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( progressive ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . pos as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . avail as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( avail ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . bits as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( bits ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . rp as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( rp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . wp as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( wp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . state as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . next as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . drop as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( drop ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stream_s > ( ) ) ) . seek as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fz_stream_s ) , "::" , stringify ! ( seek ) ) ) ; } extern "C" { pub fn fz_new_stream ( ctx : * mut fz_context , state : * mut :: std :: os :: raw :: c_void , next : fz_stream_next_fn , drop : fz_stream_drop_fn ) -> * mut fz_stream ; } extern "C" { pub fn fz_keep_stream ( ctx : * mut fz_context , stm : * mut fz_stream ) -> * mut fz_stream ; } extern "C" { pub fn fz_read_best ( ctx : * mut fz_context , stm : * mut fz_stream , initial : usize , truncated : * mut :: std :: os :: raw :: c_int ) -> * mut fz_buffer ; } extern "C" { pub fn fz_read_line ( ctx : * mut fz_context , stm : * mut fz_stream , buf : * mut :: std :: os :: raw :: c_char , max : usize ) -> * mut :: std :: os :: raw :: c_char ; } pub type fz_output = fz_output_s ; pub type fz_output_write_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , state : * mut :: std :: os :: raw :: c_void , data : * const :: std :: os :: raw :: c_void , n : usize ) > ; pub type fz_output_seek_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , state : * mut :: std :: os :: raw :: c_void , offset : i64 , whence : :: std :: os :: raw :: c_int ) > ; pub type fz_output_tell_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , state : * mut :: std :: os :: raw :: c_void ) -> i64 > ; pub type fz_output_close_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , state : * mut :: std :: os :: raw :: c_void ) > ; pub type fz_output_drop_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , state : * mut :: std :: os :: raw :: c_void ) > ; pub type fz_stream_from_output_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , state : * mut :: std :: os :: raw :: c_void ) -> * mut fz_stream > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_output_s { pub state : * mut :: std :: os :: raw :: c_void , pub write : fz_output_write_fn , pub seek : fz_output_seek_fn , pub tell : fz_output_tell_fn , pub close : fz_output_close_fn , pub drop : fz_output_drop_fn , pub as_stream : fz_stream_from_output_fn , pub bp : * mut :: std :: os :: raw :: c_char , pub wp : * mut :: std :: os :: raw :: c_char , pub ep : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_fz_output_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_output_s > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fz_output_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_output_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_output_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_output_s > ( ) ) ) . state as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_output_s ) , "::" , stringify ! ( state ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_output_s > ( ) ) ) . write as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_output_s ) , "::" , stringify ! ( write ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_output_s > ( ) ) ) . seek as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_output_s ) , "::" , stringify ! ( seek ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_output_s > ( ) ) ) . tell as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_output_s ) , "::" , stringify ! ( tell ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_output_s > ( ) ) ) . close as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_output_s ) , "::" , stringify ! ( close ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_output_s > ( ) ) ) . drop as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_output_s ) , "::" , stringify ! ( drop ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_output_s > ( ) ) ) . as_stream as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_output_s ) , "::" , stringify ! ( as_stream ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_output_s > ( ) ) ) . bp as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_output_s ) , "::" , stringify ! ( bp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_output_s > ( ) ) ) . wp as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_output_s ) , "::" , stringify ! ( wp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_output_s > ( ) ) ) . ep as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fz_output_s ) , "::" , stringify ! ( ep ) ) ) ; } extern "C" { pub fn fz_new_output ( ctx : * mut fz_context , bufsiz : :: std :: os :: raw :: c_int , state : * mut :: std :: os :: raw :: c_void , write : fz_output_write_fn , close : fz_output_close_fn , drop : fz_output_drop_fn ) -> * mut fz_output ; } extern "C" { pub fn fz_new_output_with_path ( arg1 : * mut fz_context , filename : * const :: std :: os :: raw :: c_char , append : :: std :: os :: raw :: c_int ) -> * mut fz_output ; } extern "C" { pub fn fz_new_output_with_buffer ( ctx : * mut fz_context , buf : * mut fz_buffer ) -> * mut fz_output ; } extern "C" { pub fn fz_stdout ( ctx : * mut fz_context ) -> * mut fz_output ; } extern "C" { pub fn fz_stderr ( ctx : * mut fz_context ) -> * mut fz_output ; } extern "C" { pub fn fz_set_stdout ( ctx : * mut fz_context , out : * mut fz_output ) ; } extern "C" { pub fn fz_set_stderr ( ctx : * mut fz_context , err : * mut fz_output ) ; } extern "C" { pub fn fz_write_printf ( ctx : * mut fz_context , out : * mut fz_output , fmt : * const :: std :: os :: raw :: c_char , ... ) ; } extern "C" { pub fn fz_write_vprintf ( ctx : * mut fz_context , out : * mut fz_output , fmt : * const :: std :: os :: raw :: c_char , ap : * mut __va_list_tag ) ; } extern "C" { pub fn fz_seek_output ( ctx : * mut fz_context , out : * mut fz_output , off : i64 , whence : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_tell_output ( ctx : * mut fz_context , out : * mut fz_output ) -> i64 ; } extern "C" { pub fn fz_flush_output ( ctx : * mut fz_context , out : * mut fz_output ) ; } extern "C" { pub fn fz_close_output ( arg1 : * mut fz_context , arg2 : * mut fz_output ) ; } extern "C" { pub fn fz_drop_output ( arg1 : * mut fz_context , arg2 : * mut fz_output ) ; } extern "C" { pub fn fz_stream_from_output ( arg1 : * mut fz_context , arg2 : * mut fz_output ) -> * mut fz_stream ; } extern "C" { pub fn fz_write_data ( ctx : * mut fz_context , out : * mut fz_output , data : * const :: std :: os :: raw :: c_void , size : usize ) ; } extern "C" { pub fn fz_write_string ( ctx : * mut fz_context , out : * mut fz_output , s : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_write_int32_be ( ctx : * mut fz_context , out : * mut fz_output , x : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_write_int32_le ( ctx : * mut fz_context , out : * mut fz_output , x : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_write_int16_be ( ctx : * mut fz_context , out : * mut fz_output , x : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_write_int16_le ( ctx : * mut fz_context , out : * mut fz_output , x : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_write_byte ( ctx : * mut fz_context , out : * mut fz_output , x : :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn fz_write_rune ( ctx : * mut fz_context , out : * mut fz_output , rune : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_write_base64 ( ctx : * mut fz_context , out : * mut fz_output , data : * const :: std :: os :: raw :: c_uchar , size : :: std :: os :: raw :: c_int , newline : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_write_base64_buffer ( ctx : * mut fz_context , out : * mut fz_output , data : * mut fz_buffer , newline : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_format_string ( ctx : * mut fz_context , user : * mut :: std :: os :: raw :: c_void , emit : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , user : * mut :: std :: os :: raw :: c_void , c : :: std :: os :: raw :: c_int ) > , fmt : * const :: std :: os :: raw :: c_char , args : * mut __va_list_tag ) ; } extern "C" { pub fn fz_vsnprintf ( buffer : * mut :: std :: os :: raw :: c_char , space : usize , fmt : * const :: std :: os :: raw :: c_char , args : * mut __va_list_tag ) -> usize ; } extern "C" { pub fn fz_snprintf ( buffer : * mut :: std :: os :: raw :: c_char , space : usize , fmt : * const :: std :: os :: raw :: c_char , ... ) -> usize ; } extern "C" { pub fn fz_asprintf ( ctx : * mut fz_context , fmt : * const :: std :: os :: raw :: c_char , ... ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_save_buffer ( ctx : * mut fz_context , buf : * mut fz_buffer , filename : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_new_asciihex_output ( ctx : * mut fz_context , chain : * mut fz_output ) -> * mut fz_output ; } extern "C" { pub fn fz_new_ascii85_output ( ctx : * mut fz_context , chain : * mut fz_output ) -> * mut fz_output ; } extern "C" { pub fn fz_new_rle_output ( ctx : * mut fz_context , chain : * mut fz_output ) -> * mut fz_output ; } extern "C" { pub fn fz_new_arc4_output ( ctx : * mut fz_context , chain : * mut fz_output , key : * mut :: std :: os :: raw :: c_uchar , keylen : usize ) -> * mut fz_output ; } extern "C" { pub fn fz_new_deflate_output ( ctx : * mut fz_context , chain : * mut fz_output , effort : :: std :: os :: raw :: c_int , raw : :: std :: os :: raw :: c_int ) -> * mut fz_output ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_hash_table_s { _unused : [ u8 ; 0 ] , } pub type fz_hash_table = fz_hash_table_s ; pub type fz_hash_table_drop_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , val : * mut :: std :: os :: raw :: c_void ) > ; pub type fz_hash_table_for_each_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , state : * mut :: std :: os :: raw :: c_void , key : * mut :: std :: os :: raw :: c_void , keylen : :: std :: os :: raw :: c_int , val : * mut :: std :: os :: raw :: c_void ) > ; extern "C" { pub fn fz_new_hash_table ( ctx : * mut fz_context , initialsize : :: std :: os :: raw :: c_int , keylen : :: std :: os :: raw :: c_int , lock : :: std :: os :: raw :: c_int , drop_val : fz_hash_table_drop_fn ) -> * mut fz_hash_table ; } extern "C" { pub fn fz_drop_hash_table ( ctx : * mut fz_context , table : * mut fz_hash_table ) ; } extern "C" { pub fn fz_hash_find ( ctx : * mut fz_context , table : * mut fz_hash_table , key : * const :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_hash_insert ( ctx : * mut fz_context , table : * mut fz_hash_table , key : * const :: std :: os :: raw :: c_void , val : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_hash_remove ( ctx : * mut fz_context , table : * mut fz_hash_table , key : * const :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn fz_hash_for_each ( ctx : * mut fz_context , table : * mut fz_hash_table , state : * mut :: std :: os :: raw :: c_void , callback : fz_hash_table_for_each_fn ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_pool_s { _unused : [ u8 ; 0 ] , } pub type fz_pool = fz_pool_s ; extern "C" { pub fn fz_new_pool ( ctx : * mut fz_context ) -> * mut fz_pool ; } extern "C" { pub fn fz_pool_alloc ( ctx : * mut fz_context , pool : * mut fz_pool , size : usize ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_pool_strdup ( ctx : * mut fz_context , pool : * mut fz_pool , s : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_drop_pool ( ctx : * mut fz_context , pool : * mut fz_pool ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_tree_s { _unused : [ u8 ; 0 ] , } pub type fz_tree = fz_tree_s ; extern "C" { pub fn fz_tree_lookup ( ctx : * mut fz_context , node : * mut fz_tree , key : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_tree_insert ( ctx : * mut fz_context , root : * mut fz_tree , key : * const :: std :: os :: raw :: c_char , value : * mut :: std :: os :: raw :: c_void ) -> * mut fz_tree ; } extern "C" { pub fn fz_drop_tree ( ctx : * mut fz_context , node : * mut fz_tree , dropfunc : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , value : * mut :: std :: os :: raw :: c_void ) > ) ; } pub const fz_bidi_direction_e_FZ_BIDI_LTR : fz_bidi_direction_e = 0 ; pub const fz_bidi_direction_e_FZ_BIDI_RTL : fz_bidi_direction_e = 1 ; pub const fz_bidi_direction_e_FZ_BIDI_NEUTRAL : fz_bidi_direction_e = 2 ; pub type fz_bidi_direction_e = u32 ; pub use self :: fz_bidi_direction_e as fz_bidi_direction ; pub const fz_bidi_flags_e_FZ_BIDI_CLASSIFY_WHITE_SPACE : fz_bidi_flags_e = 1 ; pub const fz_bidi_flags_e_FZ_BIDI_REPLACE_TAB : fz_bidi_flags_e = 2 ; pub type fz_bidi_flags_e = u32 ; pub use self :: fz_bidi_flags_e as fz_bidi_flags ; pub type fz_bidi_fragment_fn = :: std :: option :: Option < unsafe extern "C" fn ( fragment : * const u32 , fragmentLen : usize , bidiLevel : :: std :: os :: raw :: c_int , script : :: std :: os :: raw :: c_int , arg : * mut :: std :: os :: raw :: c_void ) > ; extern "C" { pub fn fz_bidi_fragment_text ( ctx : * mut fz_context , text : * const u32 , textlen : usize , baseDir : * mut fz_bidi_direction , callback : fz_bidi_fragment_fn , arg : * mut :: std :: os :: raw :: c_void , flags : :: std :: os :: raw :: c_int ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_xml_doc_s { _unused : [ u8 ; 0 ] , } pub type fz_xml_doc = fz_xml_doc_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_xml_s { _unused : [ u8 ; 0 ] , } pub type fz_xml = fz_xml_s ; extern "C" { pub fn fz_parse_xml ( ctx : * mut fz_context , buf : * mut fz_buffer , preserve_white : :: std :: os :: raw :: c_int ) -> * mut fz_xml_doc ; } extern "C" { pub fn fz_drop_xml ( ctx : * mut fz_context , xml : * mut fz_xml_doc ) ; } extern "C" { pub fn fz_detach_xml ( ctx : * mut fz_context , xml : * mut fz_xml_doc , node : * mut fz_xml ) ; } extern "C" { pub fn fz_xml_root ( xml : * mut fz_xml_doc ) -> * mut fz_xml ; } extern "C" { pub fn fz_xml_prev ( item : * mut fz_xml ) -> * mut fz_xml ; } extern "C" { pub fn fz_xml_next ( item : * mut fz_xml ) -> * mut fz_xml ; } extern "C" { pub fn fz_xml_up ( item : * mut fz_xml ) -> * mut fz_xml ; } extern "C" { pub fn fz_xml_down ( item : * mut fz_xml ) -> * mut fz_xml ; } extern "C" { pub fn fz_xml_is_tag ( item : * mut fz_xml , name : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_xml_tag ( item : * mut fz_xml ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_xml_att ( item : * mut fz_xml , att : * const :: std :: os :: raw :: c_char ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_xml_text ( item : * mut fz_xml ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_debug_xml ( item : * mut fz_xml , level : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_xml_find ( item : * mut fz_xml , tag : * const :: std :: os :: raw :: c_char ) -> * mut fz_xml ; } extern "C" { pub fn fz_xml_find_next ( item : * mut fz_xml , tag : * const :: std :: os :: raw :: c_char ) -> * mut fz_xml ; } extern "C" { pub fn fz_xml_find_down ( item : * mut fz_xml , tag : * const :: std :: os :: raw :: c_char ) -> * mut fz_xml ; } pub const fz_deflate_level_FZ_DEFLATE_NONE : fz_deflate_level = 0 ; pub const fz_deflate_level_FZ_DEFLATE_BEST_SPEED : fz_deflate_level = 1 ; pub const fz_deflate_level_FZ_DEFLATE_BEST : fz_deflate_level = 9 ; pub const fz_deflate_level_FZ_DEFLATE_DEFAULT : fz_deflate_level = -1 ; pub type fz_deflate_level = i32 ; extern "C" { pub fn fz_deflate_bound ( ctx : * mut fz_context , size : usize ) -> usize ; } extern "C" { pub fn fz_deflate ( ctx : * mut fz_context , dest : * mut :: std :: os :: raw :: c_uchar , compressed_length : * mut usize , source : * const :: std :: os :: raw :: c_uchar , source_length : usize , level : fz_deflate_level ) ; } extern "C" { pub fn fz_new_deflated_data ( ctx : * mut fz_context , compressed_length : * mut usize , source : * const :: std :: os :: raw :: c_uchar , source_length : usize , level : fz_deflate_level ) -> * mut :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_new_deflated_data_from_buffer ( ctx : * mut fz_context , compressed_length : * mut usize , buffer : * mut fz_buffer , level : fz_deflate_level ) -> * mut :: std :: os :: raw :: c_uchar ; } pub type fz_storable = fz_storable_s ; pub type fz_key_storable = fz_key_storable_s ; pub type fz_store_drop_fn = :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_storable ) > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_storable_s { pub refs : :: std :: os :: raw :: c_int , pub drop : fz_store_drop_fn , } # [ test ] fn bindgen_test_layout_fz_storable_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_storable_s > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( fz_storable_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_storable_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_storable_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_storable_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_storable_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_storable_s > ( ) ) ) . drop as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_storable_s ) , "::" , stringify ! ( drop ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_key_storable_s { pub storable : fz_storable , pub store_key_refs : :: std :: os :: raw :: c_short , } # [ test ] fn bindgen_test_layout_fz_key_storable_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_key_storable_s > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( fz_key_storable_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_key_storable_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_key_storable_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_key_storable_s > ( ) ) ) . storable as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_key_storable_s ) , "::" , stringify ! ( storable ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_key_storable_s > ( ) ) ) . store_key_refs as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_key_storable_s ) , "::" , stringify ! ( store_key_refs ) ) ) ; } extern "C" { pub fn fz_keep_storable ( arg1 : * mut fz_context , arg2 : * const fz_storable ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_drop_storable ( arg1 : * mut fz_context , arg2 : * const fz_storable ) ; } extern "C" { pub fn fz_keep_key_storable ( arg1 : * mut fz_context , arg2 : * const fz_key_storable ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_drop_key_storable ( arg1 : * mut fz_context , arg2 : * const fz_key_storable ) ; } extern "C" { pub fn fz_keep_key_storable_key ( arg1 : * mut fz_context , arg2 : * const fz_key_storable ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_drop_key_storable_key ( arg1 : * mut fz_context , arg2 : * const fz_key_storable ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_store_hash_s { pub drop : fz_store_drop_fn , pub u : fz_store_hash_s__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union fz_store_hash_s__bindgen_ty_1 { pub pi : fz_store_hash_s__bindgen_ty_1__bindgen_ty_1 , pub pir : fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 , pub im : fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 , pub link : fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 , _bindgen_union_align : [ u64 ; 5usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_store_hash_s__bindgen_ty_1__bindgen_ty_1 { pub ptr : * const :: std :: os :: raw :: c_void , pub i : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_store_hash_s__bindgen_ty_1__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . ptr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( ptr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . i as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( i ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 { pub ptr : * const :: std :: os :: raw :: c_void , pub i : :: std :: os :: raw :: c_int , pub r : fz_irect , } # [ test ] fn bindgen_test_layout_fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . ptr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( ptr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . i as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( i ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . r as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( r ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 { pub id : :: std :: os :: raw :: c_int , pub has_shape : :: std :: os :: raw :: c_char , pub has_group_alpha : :: std :: os :: raw :: c_char , pub m : [ f32 ; 4usize ] , pub ptr : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . id as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . has_shape as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( has_shape ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . has_group_alpha as * const _ as usize } , 5usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( has_group_alpha ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . m as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( m ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . ptr as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( ptr ) ) ) ; } # [ repr ( C ) ] # [ repr ( align ( 4 ) ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 { pub src_md5 : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub dst_md5 : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 3usize ] , u8 > , pub __bindgen_padding_0 : u8 , } # [ test ] fn bindgen_test_layout_fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 > ( ) , 36usize , concat ! ( "Size of: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 > ( ) ) ) . src_md5 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 ) , "::" , stringify ! ( src_md5 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 > ( ) ) ) . dst_md5 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 ) , "::" , stringify ! ( dst_md5 ) ) ) ; } impl fz_store_hash_s__bindgen_ty_1__bindgen_ty_4 { # [ inline ] pub fn ri ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 0usize , 2u8 ) as u32 ) } } # [ inline ] pub fn set_ri ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 0usize , 2u8 , val as u64 ) } } # [ inline ] pub fn bp ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 2usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_bp ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 2usize , 1u8 , val as u64 ) } } # [ inline ] pub fn format ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 3usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_format ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 3usize , 1u8 , val as u64 ) } } # [ inline ] pub fn proof ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 4usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_proof ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 4usize , 1u8 , val as u64 ) } } # [ inline ] pub fn src_extras ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 5usize , 5u8 ) as u32 ) } } # [ inline ] pub fn set_src_extras ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 5usize , 5u8 , val as u64 ) } } # [ inline ] pub fn dst_extras ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 10usize , 5u8 ) as u32 ) } } # [ inline ] pub fn set_dst_extras ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 10usize , 5u8 , val as u64 ) } } # [ inline ] pub fn copy_spots ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 15usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_copy_spots ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 15usize , 1u8 , val as u64 ) } } # [ inline ] pub fn bgr ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 16usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_bgr ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 16usize , 1u8 , val as u64 ) } } # [ inline ] pub fn new_bitfield_1 ( ri : :: std :: os :: raw :: c_uint , bp : :: std :: os :: raw :: c_uint , format : :: std :: os :: raw :: c_uint , proof : :: std :: os :: raw :: c_uint , src_extras : :: std :: os :: raw :: c_uint , dst_extras : :: std :: os :: raw :: c_uint , copy_spots : :: std :: os :: raw :: c_uint , bgr : :: std :: os :: raw :: c_uint ) -> __BindgenBitfieldUnit < [ u8 ; 3usize ] , u8 > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [ u8 ; 3usize ] , u8 > = Default :: default ( ) ; __bindgen_bitfield_unit . set ( 0usize , 2u8 , { let ri : u32 = unsafe { :: std :: mem :: transmute ( ri ) } ; ri as u64 } ) ; __bindgen_bitfield_unit . set ( 2usize , 1u8 , { let bp : u32 = unsafe { :: std :: mem :: transmute ( bp ) } ; bp as u64 } ) ; __bindgen_bitfield_unit . set ( 3usize , 1u8 , { let format : u32 = unsafe { :: std :: mem :: transmute ( format ) } ; format as u64 } ) ; __bindgen_bitfield_unit . set ( 4usize , 1u8 , { let proof : u32 = unsafe { :: std :: mem :: transmute ( proof ) } ; proof as u64 } ) ; __bindgen_bitfield_unit . set ( 5usize , 5u8 , { let src_extras : u32 = unsafe { :: std :: mem :: transmute ( src_extras ) } ; src_extras as u64 } ) ; __bindgen_bitfield_unit . set ( 10usize , 5u8 , { let dst_extras : u32 = unsafe { :: std :: mem :: transmute ( dst_extras ) } ; dst_extras as u64 } ) ; __bindgen_bitfield_unit . set ( 15usize , 1u8 , { let copy_spots : u32 = unsafe { :: std :: mem :: transmute ( copy_spots ) } ; copy_spots as u64 } ) ; __bindgen_bitfield_unit . set ( 16usize , 1u8 , { let bgr : u32 = unsafe { :: std :: mem :: transmute ( bgr ) } ; bgr as u64 } ) ; __bindgen_bitfield_unit } } # [ test ] fn bindgen_test_layout_fz_store_hash_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_store_hash_s__bindgen_ty_1 > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( fz_store_hash_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_store_hash_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_store_hash_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1 > ( ) ) ) . pi as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1 ) , "::" , stringify ! ( pi ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1 > ( ) ) ) . pir as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1 ) , "::" , stringify ! ( pir ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1 > ( ) ) ) . im as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1 ) , "::" , stringify ! ( im ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s__bindgen_ty_1 > ( ) ) ) . link as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s__bindgen_ty_1 ) , "::" , stringify ! ( link ) ) ) ; } # [ test ] fn bindgen_test_layout_fz_store_hash_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_store_hash_s > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( fz_store_hash_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_store_hash_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_store_hash_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s > ( ) ) ) . drop as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s ) , "::" , stringify ! ( drop ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_hash_s > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_hash_s ) , "::" , stringify ! ( u ) ) ) ; } pub type fz_store_hash = fz_store_hash_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_store_type_s { pub make_hash_key : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , hash : * mut fz_store_hash , key : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > , pub keep_key : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , key : * mut :: std :: os :: raw :: c_void ) -> * mut :: std :: os :: raw :: c_void > , pub drop_key : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , key : * mut :: std :: os :: raw :: c_void ) > , pub cmp_key : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , a : * mut :: std :: os :: raw :: c_void , b : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > , pub format_key : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , buf : * mut :: std :: os :: raw :: c_char , size : :: std :: os :: raw :: c_int , key : * mut :: std :: os :: raw :: c_void ) > , pub needs_reap : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , key : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > , } # [ test ] fn bindgen_test_layout_fz_store_type_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_store_type_s > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( fz_store_type_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_store_type_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_store_type_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_type_s > ( ) ) ) . make_hash_key as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_type_s ) , "::" , stringify ! ( make_hash_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_type_s > ( ) ) ) . keep_key as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_type_s ) , "::" , stringify ! ( keep_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_type_s > ( ) ) ) . drop_key as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_type_s ) , "::" , stringify ! ( drop_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_type_s > ( ) ) ) . cmp_key as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_type_s ) , "::" , stringify ! ( cmp_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_type_s > ( ) ) ) . format_key as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_type_s ) , "::" , stringify ! ( format_key ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_store_type_s > ( ) ) ) . needs_reap as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_store_type_s ) , "::" , stringify ! ( needs_reap ) ) ) ; } pub type fz_store_type = fz_store_type_s ; extern "C" { pub fn fz_new_store_context ( ctx : * mut fz_context , max : usize ) ; } extern "C" { pub fn fz_drop_store_context ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_keep_store_context ( ctx : * mut fz_context ) -> * mut fz_store ; } extern "C" { pub fn fz_store_item ( ctx : * mut fz_context , key : * mut :: std :: os :: raw :: c_void , val : * mut :: std :: os :: raw :: c_void , itemsize : usize , type_ : * const fz_store_type ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_find_item ( ctx : * mut fz_context , drop : fz_store_drop_fn , key : * mut :: std :: os :: raw :: c_void , type_ : * const fz_store_type ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_remove_item ( ctx : * mut fz_context , drop : fz_store_drop_fn , key : * mut :: std :: os :: raw :: c_void , type_ : * const fz_store_type ) ; } extern "C" { pub fn fz_empty_store ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_store_scavenge ( ctx : * mut fz_context , size : usize , phase : * mut :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_store_scavenge_external ( ctx : * mut fz_context , size : usize , phase : * mut :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_shrink_store ( ctx : * mut fz_context , percent : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } pub type fz_store_filter_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg : * mut :: std :: os :: raw :: c_void , key : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn fz_filter_store ( ctx : * mut fz_context , fn_ : fz_store_filter_fn , arg : * mut :: std :: os :: raw :: c_void , type_ : * const fz_store_type ) ; } extern "C" { pub fn fz_debug_store ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_defer_reap_start ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_defer_reap_end ( ctx : * mut fz_context ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_jbig2_globals_s { _unused : [ u8 ; 0 ] , } pub type fz_jbig2_globals = fz_jbig2_globals_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_range { pub offset : i64 , pub length : usize , } # [ test ] fn bindgen_test_layout_fz_range ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_range > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( fz_range ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_range > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_range ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_range > ( ) ) ) . offset as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_range ) , "::" , stringify ! ( offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_range > ( ) ) ) . length as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_range ) , "::" , stringify ! ( length ) ) ) ; } extern "C" { pub fn fz_open_null_filter ( ctx : * mut fz_context , chain : * mut fz_stream , len : :: std :: os :: raw :: c_int , offset : i64 ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_range_filter ( ctx : * mut fz_context , chain : * mut fz_stream , ranges : * mut fz_range , nranges : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_endstream_filter ( ctx : * mut fz_context , chain : * mut fz_stream , len : :: std :: os :: raw :: c_int , offset : i64 ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_concat ( ctx : * mut fz_context , max : :: std :: os :: raw :: c_int , pad : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn fz_concat_push_drop ( ctx : * mut fz_context , concat : * mut fz_stream , chain : * mut fz_stream ) ; } extern "C" { pub fn fz_open_arc4 ( ctx : * mut fz_context , chain : * mut fz_stream , key : * mut :: std :: os :: raw :: c_uchar , keylen : :: std :: os :: raw :: c_uint ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_aesd ( ctx : * mut fz_context , chain : * mut fz_stream , key : * mut :: std :: os :: raw :: c_uchar , keylen : :: std :: os :: raw :: c_uint ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_a85d ( ctx : * mut fz_context , chain : * mut fz_stream ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_ahxd ( ctx : * mut fz_context , chain : * mut fz_stream ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_rld ( ctx : * mut fz_context , chain : * mut fz_stream ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_dctd ( ctx : * mut fz_context , chain : * mut fz_stream , color_transform : :: std :: os :: raw :: c_int , l2factor : :: std :: os :: raw :: c_int , jpegtables : * mut fz_stream ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_faxd ( ctx : * mut fz_context , chain : * mut fz_stream , k : :: std :: os :: raw :: c_int , end_of_line : :: std :: os :: raw :: c_int , encoded_byte_align : :: std :: os :: raw :: c_int , columns : :: std :: os :: raw :: c_int , rows : :: std :: os :: raw :: c_int , end_of_block : :: std :: os :: raw :: c_int , black_is_1 : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_flated ( ctx : * mut fz_context , chain : * mut fz_stream , window_bits : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_lzwd ( ctx : * mut fz_context , chain : * mut fz_stream , early_change : :: std :: os :: raw :: c_int , min_bits : :: std :: os :: raw :: c_int , reverse_bits : :: std :: os :: raw :: c_int , old_tiff : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_predict ( ctx : * mut fz_context , chain : * mut fz_stream , predictor : :: std :: os :: raw :: c_int , columns : :: std :: os :: raw :: c_int , colors : :: std :: os :: raw :: c_int , bpc : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_jbig2d ( ctx : * mut fz_context , chain : * mut fz_stream , globals : * mut fz_jbig2_globals ) -> * mut fz_stream ; } extern "C" { pub fn fz_load_jbig2_globals ( ctx : * mut fz_context , buf : * mut fz_buffer ) -> * mut fz_jbig2_globals ; } extern "C" { pub fn fz_keep_jbig2_globals ( ctx : * mut fz_context , globals : * mut fz_jbig2_globals ) -> * mut fz_jbig2_globals ; } extern "C" { pub fn fz_drop_jbig2_globals ( ctx : * mut fz_context , globals : * mut fz_jbig2_globals ) ; } extern "C" { pub fn fz_drop_jbig2_globals_imp ( ctx : * mut fz_context , globals : * mut fz_storable ) ; } extern "C" { pub fn fz_open_sgilog16 ( ctx : * mut fz_context , chain : * mut fz_stream , w : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_sgilog24 ( ctx : * mut fz_context , chain : * mut fz_stream , w : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_sgilog32 ( ctx : * mut fz_context , chain : * mut fz_stream , w : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_thunder ( ctx : * mut fz_context , chain : * mut fz_stream , w : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } pub type fz_compression_params = fz_compression_params_s ; pub type fz_compressed_buffer = fz_compressed_buffer_s ; extern "C" { pub fn fz_compressed_buffer_size ( buffer : * mut fz_compressed_buffer ) -> usize ; } extern "C" { pub fn fz_open_compressed_buffer ( ctx : * mut fz_context , arg1 : * mut fz_compressed_buffer ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_image_decomp_stream_from_buffer ( ctx : * mut fz_context , arg1 : * mut fz_compressed_buffer , l2factor : * mut :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn fz_open_image_decomp_stream ( ctx : * mut fz_context , arg1 : * mut fz_stream , arg2 : * mut fz_compression_params , l2factor : * mut :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn fz_recognize_image_format ( ctx : * mut fz_context , p : * mut :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_int ; } pub const FZ_IMAGE_UNKNOWN : _bindgen_ty_5 = 0 ; pub const FZ_IMAGE_RAW : _bindgen_ty_5 = 1 ; pub const FZ_IMAGE_FAX : _bindgen_ty_5 = 2 ; pub const FZ_IMAGE_FLATE : _bindgen_ty_5 = 3 ; pub const FZ_IMAGE_LZW : _bindgen_ty_5 = 4 ; pub const FZ_IMAGE_RLD : _bindgen_ty_5 = 5 ; pub const FZ_IMAGE_BMP : _bindgen_ty_5 = 6 ; pub const FZ_IMAGE_GIF : _bindgen_ty_5 = 7 ; pub const FZ_IMAGE_JBIG2 : _bindgen_ty_5 = 8 ; pub const FZ_IMAGE_JPEG : _bindgen_ty_5 = 9 ; pub const FZ_IMAGE_JPX : _bindgen_ty_5 = 10 ; pub const FZ_IMAGE_JXR : _bindgen_ty_5 = 11 ; pub const FZ_IMAGE_PNG : _bindgen_ty_5 = 12 ; pub const FZ_IMAGE_PNM : _bindgen_ty_5 = 13 ; pub const FZ_IMAGE_TIFF : _bindgen_ty_5 = 14 ; pub type _bindgen_ty_5 = u32 ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_compression_params_s { pub type_ : :: std :: os :: raw :: c_int , pub u : fz_compression_params_s__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union fz_compression_params_s__bindgen_ty_1 { pub jpeg : fz_compression_params_s__bindgen_ty_1__bindgen_ty_1 , pub jpx : fz_compression_params_s__bindgen_ty_1__bindgen_ty_2 , pub jbig2 : fz_compression_params_s__bindgen_ty_1__bindgen_ty_3 , pub fax : fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 , pub flate : fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 , pub lzw : fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 , _bindgen_union_align : [ u64 ; 4usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_compression_params_s__bindgen_ty_1__bindgen_ty_1 { pub color_transform : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_compression_params_s__bindgen_ty_1__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . color_transform as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( color_transform ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_compression_params_s__bindgen_ty_1__bindgen_ty_2 { pub smask_in_data : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_compression_params_s__bindgen_ty_1__bindgen_ty_2 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_2 > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_2 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . smask_in_data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( smask_in_data ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_compression_params_s__bindgen_ty_1__bindgen_ty_3 { pub globals : * mut fz_jbig2_globals , } # [ test ] fn bindgen_test_layout_fz_compression_params_s__bindgen_ty_1__bindgen_ty_3 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_3 > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_3 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_3 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . globals as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( globals ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 { pub columns : :: std :: os :: raw :: c_int , pub rows : :: std :: os :: raw :: c_int , pub k : :: std :: os :: raw :: c_int , pub end_of_line : :: std :: os :: raw :: c_int , pub encoded_byte_align : :: std :: os :: raw :: c_int , pub end_of_block : :: std :: os :: raw :: c_int , pub black_is_1 : :: std :: os :: raw :: c_int , pub damaged_rows_before_error : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 > ( ) ) ) . columns as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 ) , "::" , stringify ! ( columns ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 > ( ) ) ) . rows as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 ) , "::" , stringify ! ( rows ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 > ( ) ) ) . k as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 ) , "::" , stringify ! ( k ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 > ( ) ) ) . end_of_line as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 ) , "::" , stringify ! ( end_of_line ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 > ( ) ) ) . encoded_byte_align as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 ) , "::" , stringify ! ( encoded_byte_align ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 > ( ) ) ) . end_of_block as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 ) , "::" , stringify ! ( end_of_block ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 > ( ) ) ) . black_is_1 as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 ) , "::" , stringify ! ( black_is_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 > ( ) ) ) . damaged_rows_before_error as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_4 ) , "::" , stringify ! ( damaged_rows_before_error ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 { pub columns : :: std :: os :: raw :: c_int , pub colors : :: std :: os :: raw :: c_int , pub predictor : :: std :: os :: raw :: c_int , pub bpc : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 > ( ) ) ) . columns as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 ) , "::" , stringify ! ( columns ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 > ( ) ) ) . colors as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 ) , "::" , stringify ! ( colors ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 > ( ) ) ) . predictor as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 ) , "::" , stringify ! ( predictor ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 > ( ) ) ) . bpc as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_5 ) , "::" , stringify ! ( bpc ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 { pub columns : :: std :: os :: raw :: c_int , pub colors : :: std :: os :: raw :: c_int , pub predictor : :: std :: os :: raw :: c_int , pub bpc : :: std :: os :: raw :: c_int , pub early_change : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 > ( ) , 20usize , concat ! ( "Size of: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 > ( ) ) ) . columns as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 ) , "::" , stringify ! ( columns ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 > ( ) ) ) . colors as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 ) , "::" , stringify ! ( colors ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 > ( ) ) ) . predictor as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 ) , "::" , stringify ! ( predictor ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 > ( ) ) ) . bpc as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 ) , "::" , stringify ! ( bpc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 > ( ) ) ) . early_change as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1__bindgen_ty_6 ) , "::" , stringify ! ( early_change ) ) ) ; } # [ test ] fn bindgen_test_layout_fz_compression_params_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_compression_params_s__bindgen_ty_1 > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( fz_compression_params_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_compression_params_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_compression_params_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1 > ( ) ) ) . jpeg as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1 ) , "::" , stringify ! ( jpeg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1 > ( ) ) ) . jpx as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1 ) , "::" , stringify ! ( jpx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1 > ( ) ) ) . jbig2 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1 ) , "::" , stringify ! ( jbig2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1 > ( ) ) ) . fax as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1 ) , "::" , stringify ! ( fax ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1 > ( ) ) ) . flate as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1 ) , "::" , stringify ! ( flate ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s__bindgen_ty_1 > ( ) ) ) . lzw as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s__bindgen_ty_1 ) , "::" , stringify ! ( lzw ) ) ) ; } # [ test ] fn bindgen_test_layout_fz_compression_params_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_compression_params_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( fz_compression_params_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_compression_params_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_compression_params_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compression_params_s > ( ) ) ) . u as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_compression_params_s ) , "::" , stringify ! ( u ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_compressed_buffer_s { pub params : fz_compression_params , pub buffer : * mut fz_buffer , } # [ test ] fn bindgen_test_layout_fz_compressed_buffer_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_compressed_buffer_s > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( fz_compressed_buffer_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_compressed_buffer_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_compressed_buffer_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compressed_buffer_s > ( ) ) ) . params as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_compressed_buffer_s ) , "::" , stringify ! ( params ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_compressed_buffer_s > ( ) ) ) . buffer as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_compressed_buffer_s ) , "::" , stringify ! ( buffer ) ) ) ; } extern "C" { pub fn fz_drop_compressed_buffer ( ctx : * mut fz_context , buf : * mut fz_compressed_buffer ) ; } pub type fz_archive = fz_archive_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_archive_s { pub file : * mut fz_stream , pub format : * const :: std :: os :: raw :: c_char , pub drop_archive : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arch : * mut fz_archive ) > , pub count_entries : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arch : * mut fz_archive ) -> :: std :: os :: raw :: c_int > , pub list_entry : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arch : * mut fz_archive , idx : :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_char > , pub has_entry : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arch : * mut fz_archive , name : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int > , pub read_entry : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arch : * mut fz_archive , name : * const :: std :: os :: raw :: c_char ) -> * mut fz_buffer > , pub open_entry : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arch : * mut fz_archive , name : * const :: std :: os :: raw :: c_char ) -> * mut fz_stream > , } # [ test ] fn bindgen_test_layout_fz_archive_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_archive_s > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( fz_archive_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_archive_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_archive_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_archive_s > ( ) ) ) . file as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_archive_s ) , "::" , stringify ! ( file ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_archive_s > ( ) ) ) . format as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_archive_s ) , "::" , stringify ! ( format ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_archive_s > ( ) ) ) . drop_archive as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_archive_s ) , "::" , stringify ! ( drop_archive ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_archive_s > ( ) ) ) . count_entries as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_archive_s ) , "::" , stringify ! ( count_entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_archive_s > ( ) ) ) . list_entry as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_archive_s ) , "::" , stringify ! ( list_entry ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_archive_s > ( ) ) ) . has_entry as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_archive_s ) , "::" , stringify ! ( has_entry ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_archive_s > ( ) ) ) . read_entry as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_archive_s ) , "::" , stringify ! ( read_entry ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_archive_s > ( ) ) ) . open_entry as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_archive_s ) , "::" , stringify ! ( open_entry ) ) ) ; } extern "C" { pub fn fz_new_archive_of_size ( ctx : * mut fz_context , file : * mut fz_stream , size : :: std :: os :: raw :: c_int ) -> * mut fz_archive ; } extern "C" { pub fn fz_open_archive ( ctx : * mut fz_context , filename : * const :: std :: os :: raw :: c_char ) -> * mut fz_archive ; } extern "C" { pub fn fz_open_archive_with_stream ( ctx : * mut fz_context , file : * mut fz_stream ) -> * mut fz_archive ; } extern "C" { pub fn fz_open_directory ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char ) -> * mut fz_archive ; } extern "C" { pub fn fz_is_directory ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_drop_archive ( ctx : * mut fz_context , arch : * mut fz_archive ) ; } extern "C" { pub fn fz_archive_format ( ctx : * mut fz_context , arch : * mut fz_archive ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_count_archive_entries ( ctx : * mut fz_context , arch : * mut fz_archive ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_list_archive_entry ( ctx : * mut fz_context , arch : * mut fz_archive , idx : :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_has_archive_entry ( ctx : * mut fz_context , arch : * mut fz_archive , name : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_open_archive_entry ( ctx : * mut fz_context , arch : * mut fz_archive , name : * const :: std :: os :: raw :: c_char ) -> * mut fz_stream ; } extern "C" { pub fn fz_read_archive_entry ( ctx : * mut fz_context , arch : * mut fz_archive , name : * const :: std :: os :: raw :: c_char ) -> * mut fz_buffer ; } extern "C" { pub fn fz_is_tar_archive ( ctx : * mut fz_context , file : * mut fz_stream ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_open_tar_archive ( ctx : * mut fz_context , filename : * const :: std :: os :: raw :: c_char ) -> * mut fz_archive ; } extern "C" { pub fn fz_open_tar_archive_with_stream ( ctx : * mut fz_context , file : * mut fz_stream ) -> * mut fz_archive ; } extern "C" { pub fn fz_is_zip_archive ( ctx : * mut fz_context , file : * mut fz_stream ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_open_zip_archive ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char ) -> * mut fz_archive ; } extern "C" { pub fn fz_open_zip_archive_with_stream ( ctx : * mut fz_context , file : * mut fz_stream ) -> * mut fz_archive ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_zip_writer_s { _unused : [ u8 ; 0 ] , } pub type fz_zip_writer = fz_zip_writer_s ; extern "C" { pub fn fz_new_zip_writer ( ctx : * mut fz_context , filename : * const :: std :: os :: raw :: c_char ) -> * mut fz_zip_writer ; } extern "C" { pub fn fz_write_zip_entry ( ctx : * mut fz_context , zip : * mut fz_zip_writer , name : * const :: std :: os :: raw :: c_char , buf : * mut fz_buffer , compress : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_close_zip_writer ( ctx : * mut fz_context , zip : * mut fz_zip_writer ) ; } extern "C" { pub fn fz_drop_zip_writer ( ctx : * mut fz_context , zip : * mut fz_zip_writer ) ; } pub type fz_colorspace = fz_colorspace_s ; pub type fz_pixmap = fz_pixmap_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_icc_instance_s { _unused : [ u8 ; 0 ] , } pub type fz_icc_instance = fz_icc_instance_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_icc_profile_s { _unused : [ u8 ; 0 ] , } pub type fz_icc_profile = fz_icc_profile_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_icc_link_s { _unused : [ u8 ; 0 ] , } pub type fz_icc_link = fz_icc_link_s ; pub const FZ_RI_PERCEPTUAL : _bindgen_ty_6 = 0 ; pub const FZ_RI_RELATIVE_COLORIMETRIC : _bindgen_ty_6 = 1 ; pub const FZ_RI_SATURATION : _bindgen_ty_6 = 2 ; pub const FZ_RI_ABSOLUTE_COLORIMETRIC : _bindgen_ty_6 = 3 ; pub type _bindgen_ty_6 = u32 ; pub type fz_color_params = fz_color_params_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_color_params_s { pub ri : u8 , pub bp : u8 , pub op : u8 , pub opm : u8 , } # [ test ] fn bindgen_test_layout_fz_color_params_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_color_params_s > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( fz_color_params_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_color_params_s > ( ) , 1usize , concat ! ( "Alignment of " , stringify ! ( fz_color_params_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_color_params_s > ( ) ) ) . ri as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_color_params_s ) , "::" , stringify ! ( ri ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_color_params_s > ( ) ) ) . bp as * const _ as usize } , 1usize , concat ! ( "Offset of field: " , stringify ! ( fz_color_params_s ) , "::" , stringify ! ( bp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_color_params_s > ( ) ) ) . op as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( fz_color_params_s ) , "::" , stringify ! ( op ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_color_params_s > ( ) ) ) . opm as * const _ as usize } , 3usize , concat ! ( "Offset of field: " , stringify ! ( fz_color_params_s ) , "::" , stringify ! ( opm ) ) ) ; } extern "C" { pub static fz_default_color_params : fz_color_params ; } extern "C" { pub fn fz_lookup_rendering_intent ( name : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_rendering_intent_name ( ri : :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_char ; } pub const FZ_MAX_COLORS : _bindgen_ty_7 = 32 ; pub type _bindgen_ty_7 = u32 ; pub const fz_colorspace_type_FZ_COLORSPACE_NONE : fz_colorspace_type = 0 ; pub const fz_colorspace_type_FZ_COLORSPACE_GRAY : fz_colorspace_type = 1 ; pub const fz_colorspace_type_FZ_COLORSPACE_RGB : fz_colorspace_type = 2 ; pub const fz_colorspace_type_FZ_COLORSPACE_BGR : fz_colorspace_type = 3 ; pub const fz_colorspace_type_FZ_COLORSPACE_CMYK : fz_colorspace_type = 4 ; pub const fz_colorspace_type_FZ_COLORSPACE_LAB : fz_colorspace_type = 5 ; pub const fz_colorspace_type_FZ_COLORSPACE_INDEXED : fz_colorspace_type = 6 ; pub const fz_colorspace_type_FZ_COLORSPACE_SEPARATION : fz_colorspace_type = 7 ; pub type fz_colorspace_type = u32 ; pub const FZ_COLORSPACE_IS_DEVICE : _bindgen_ty_8 = 1 ; pub const FZ_COLORSPACE_IS_ICC : _bindgen_ty_8 = 2 ; pub const FZ_COLORSPACE_HAS_CMYK : _bindgen_ty_8 = 4 ; pub const FZ_COLORSPACE_HAS_SPOTS : _bindgen_ty_8 = 8 ; pub const FZ_COLORSPACE_HAS_CMYK_AND_SPOTS : _bindgen_ty_8 = 12 ; pub type _bindgen_ty_8 = u32 ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_colorspace_s { pub key_storable : fz_key_storable , pub type_ : fz_colorspace_type , pub flags : :: std :: os :: raw :: c_int , pub n : :: std :: os :: raw :: c_int , pub name : * mut :: std :: os :: raw :: c_char , pub u : fz_colorspace_s__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union fz_colorspace_s__bindgen_ty_1 { pub icc : fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 , pub indexed : fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 , pub separation : fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 , _bindgen_union_align : [ u64 ; 36usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 { pub buffer : * mut fz_buffer , pub md5 : [ :: std :: os :: raw :: c_uchar ; 16usize ] , pub profile : * mut fz_icc_profile , } # [ test ] fn bindgen_test_layout_fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . buffer as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( buffer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . md5 as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( md5 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . profile as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( profile ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 { pub base : * mut fz_colorspace , pub high : :: std :: os :: raw :: c_int , pub lookup : * mut :: std :: os :: raw :: c_uchar , } # [ test ] fn bindgen_test_layout_fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . base as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . high as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( high ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . lookup as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( lookup ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 { pub base : * mut fz_colorspace , pub eval : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , tint : * mut :: std :: os :: raw :: c_void , s : * const f32 , sn : :: std :: os :: raw :: c_int , d : * mut f32 , dn : :: std :: os :: raw :: c_int ) > , pub drop : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , tint : * mut :: std :: os :: raw :: c_void ) > , pub tint : * mut :: std :: os :: raw :: c_void , pub colorant : [ * mut :: std :: os :: raw :: c_char ; 32usize ] , } # [ test ] fn bindgen_test_layout_fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 > ( ) , 288usize , concat ! ( "Size of: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . base as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . eval as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( eval ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . drop as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( drop ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . tint as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( tint ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . colorant as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( colorant ) ) ) ; } # [ test ] fn bindgen_test_layout_fz_colorspace_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_colorspace_s__bindgen_ty_1 > ( ) , 288usize , concat ! ( "Size of: " , stringify ! ( fz_colorspace_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_colorspace_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_colorspace_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1 > ( ) ) ) . icc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1 ) , "::" , stringify ! ( icc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1 > ( ) ) ) . indexed as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1 ) , "::" , stringify ! ( indexed ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s__bindgen_ty_1 > ( ) ) ) . separation as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s__bindgen_ty_1 ) , "::" , stringify ! ( separation ) ) ) ; } # [ test ] fn bindgen_test_layout_fz_colorspace_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_colorspace_s > ( ) , 336usize , concat ! ( "Size of: " , stringify ! ( fz_colorspace_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_colorspace_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_colorspace_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s > ( ) ) ) . key_storable as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s ) , "::" , stringify ! ( key_storable ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s > ( ) ) ) . type_ as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s > ( ) ) ) . flags as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s ) , "::" , stringify ! ( flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s > ( ) ) ) . n as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s ) , "::" , stringify ! ( n ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s > ( ) ) ) . name as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_s > ( ) ) ) . u as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_s ) , "::" , stringify ! ( u ) ) ) ; } extern "C" { pub fn fz_new_colorspace ( ctx : * mut fz_context , type_ : fz_colorspace_type , flags : :: std :: os :: raw :: c_int , n : :: std :: os :: raw :: c_int , name : * const :: std :: os :: raw :: c_char ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_keep_colorspace ( ctx : * mut fz_context , colorspace : * mut fz_colorspace ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_drop_colorspace ( ctx : * mut fz_context , colorspace : * mut fz_colorspace ) ; } extern "C" { pub fn fz_drop_colorspace_imp ( ctx : * mut fz_context , cs_ : * mut fz_storable ) ; } extern "C" { pub fn fz_drop_colorspace_store_key ( ctx : * mut fz_context , cs : * mut fz_colorspace ) ; } extern "C" { pub fn fz_keep_colorspace_store_key ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_new_indexed_colorspace ( ctx : * mut fz_context , base : * mut fz_colorspace , high : :: std :: os :: raw :: c_int , lookup : * mut :: std :: os :: raw :: c_uchar ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_new_icc_colorspace ( ctx : * mut fz_context , type_ : fz_colorspace_type , flags : :: std :: os :: raw :: c_int , name : * const :: std :: os :: raw :: c_char , buf : * mut fz_buffer ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_new_cal_gray_colorspace ( ctx : * mut fz_context , wp : * mut f32 , bp : * mut f32 , gamma : f32 ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_new_cal_rgb_colorspace ( ctx : * mut fz_context , wp : * mut f32 , bp : * mut f32 , gamma : * mut f32 , matrix : * mut f32 ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_new_icc_data_from_cal ( ctx : * mut fz_context , wp : * mut f32 , bp : * mut f32 , gamma : * mut f32 , matrix : * mut f32 , n : :: std :: os :: raw :: c_int ) -> * mut fz_buffer ; } extern "C" { pub fn fz_colorspace_type ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> fz_colorspace_type ; } extern "C" { pub fn fz_colorspace_name ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_colorspace_n ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_is_subtractive ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_device_n_has_only_cmyk ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_device_n_has_cmyk ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_is_gray ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_is_rgb ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_is_cmyk ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_is_lab ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_is_indexed ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_is_device_n ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_is_device ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_is_device_gray ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_is_device_cmyk ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_colorspace_is_lab_icc ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_is_valid_blend_colorspace ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_device_gray ( ctx : * mut fz_context ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_device_rgb ( ctx : * mut fz_context ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_device_bgr ( ctx : * mut fz_context ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_device_cmyk ( ctx : * mut fz_context ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_device_lab ( ctx : * mut fz_context ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_colorspace_name_process_colorants ( ctx : * mut fz_context , cs : * mut fz_colorspace ) ; } extern "C" { pub fn fz_colorspace_name_colorant ( ctx : * mut fz_context , cs : * mut fz_colorspace , n : :: std :: os :: raw :: c_int , name : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_colorspace_colorant ( ctx : * mut fz_context , cs : * mut fz_colorspace , n : :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_char ; } pub type fz_color_converter = fz_color_converter_s ; pub type fz_color_convert_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , cc : * mut fz_color_converter , src : * const f32 , dst : * mut f32 ) > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_color_converter_s { pub convert : fz_color_convert_fn , pub convert_via : fz_color_convert_fn , pub ds : * mut fz_colorspace , pub ss : * mut fz_colorspace , pub ss_via : * mut fz_colorspace , pub opaque : * mut :: std :: os :: raw :: c_void , pub link : * mut fz_icc_link , } # [ test ] fn bindgen_test_layout_fz_color_converter_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_color_converter_s > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( fz_color_converter_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_color_converter_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_color_converter_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_color_converter_s > ( ) ) ) . convert as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_color_converter_s ) , "::" , stringify ! ( convert ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_color_converter_s > ( ) ) ) . convert_via as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_color_converter_s ) , "::" , stringify ! ( convert_via ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_color_converter_s > ( ) ) ) . ds as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_color_converter_s ) , "::" , stringify ! ( ds ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_color_converter_s > ( ) ) ) . ss as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_color_converter_s ) , "::" , stringify ! ( ss ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_color_converter_s > ( ) ) ) . ss_via as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_color_converter_s ) , "::" , stringify ! ( ss_via ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_color_converter_s > ( ) ) ) . opaque as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_color_converter_s ) , "::" , stringify ! ( opaque ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_color_converter_s > ( ) ) ) . link as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_color_converter_s ) , "::" , stringify ! ( link ) ) ) ; } extern "C" { pub fn fz_lookup_fast_color_converter ( ctx : * mut fz_context , ss : * mut fz_colorspace , ds : * mut fz_colorspace ) -> fz_color_convert_fn ; } extern "C" { pub fn fz_find_color_converter ( ctx : * mut fz_context , cc : * mut fz_color_converter , ss : * mut fz_colorspace , ds : * mut fz_colorspace , is : * mut fz_colorspace , params : fz_color_params ) ; } extern "C" { pub fn fz_drop_color_converter ( ctx : * mut fz_context , cc : * mut fz_color_converter ) ; } extern "C" { pub fn fz_init_cached_color_converter ( ctx : * mut fz_context , cc : * mut fz_color_converter , ss : * mut fz_colorspace , ds : * mut fz_colorspace , is : * mut fz_colorspace , params : fz_color_params ) ; } extern "C" { pub fn fz_fin_cached_color_converter ( ctx : * mut fz_context , cc : * mut fz_color_converter ) ; } extern "C" { pub fn fz_clamp_color ( ctx : * mut fz_context , cs : * mut fz_colorspace , in_ : * const f32 , out : * mut f32 ) ; } extern "C" { pub fn fz_convert_color ( ctx : * mut fz_context , ss : * mut fz_colorspace , sv : * const f32 , ds : * mut fz_colorspace , dv : * mut f32 , is : * mut fz_colorspace , params : fz_color_params ) ; } pub type fz_default_colorspaces = fz_default_colorspaces_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_default_colorspaces_s { pub refs : :: std :: os :: raw :: c_int , pub gray : * mut fz_colorspace , pub rgb : * mut fz_colorspace , pub cmyk : * mut fz_colorspace , pub oi : * mut fz_colorspace , } # [ test ] fn bindgen_test_layout_fz_default_colorspaces_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_default_colorspaces_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( fz_default_colorspaces_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_default_colorspaces_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_default_colorspaces_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_default_colorspaces_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_default_colorspaces_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_default_colorspaces_s > ( ) ) ) . gray as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_default_colorspaces_s ) , "::" , stringify ! ( gray ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_default_colorspaces_s > ( ) ) ) . rgb as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_default_colorspaces_s ) , "::" , stringify ! ( rgb ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_default_colorspaces_s > ( ) ) ) . cmyk as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_default_colorspaces_s ) , "::" , stringify ! ( cmyk ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_default_colorspaces_s > ( ) ) ) . oi as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_default_colorspaces_s ) , "::" , stringify ! ( oi ) ) ) ; } extern "C" { pub fn fz_new_default_colorspaces ( ctx : * mut fz_context ) -> * mut fz_default_colorspaces ; } extern "C" { pub fn fz_keep_default_colorspaces ( ctx : * mut fz_context , default_cs : * mut fz_default_colorspaces ) -> * mut fz_default_colorspaces ; } extern "C" { pub fn fz_drop_default_colorspaces ( ctx : * mut fz_context , default_cs : * mut fz_default_colorspaces ) ; } extern "C" { pub fn fz_clone_default_colorspaces ( ctx : * mut fz_context , base : * mut fz_default_colorspaces ) -> * mut fz_default_colorspaces ; } extern "C" { pub fn fz_default_gray ( ctx : * mut fz_context , default_cs : * const fz_default_colorspaces ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_default_rgb ( ctx : * mut fz_context , default_cs : * const fz_default_colorspaces ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_default_cmyk ( ctx : * mut fz_context , default_cs : * const fz_default_colorspaces ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_default_output_intent ( ctx : * mut fz_context , default_cs : * const fz_default_colorspaces ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_set_default_gray ( ctx : * mut fz_context , default_cs : * mut fz_default_colorspaces , cs : * mut fz_colorspace ) ; } extern "C" { pub fn fz_set_default_rgb ( ctx : * mut fz_context , default_cs : * mut fz_default_colorspaces , cs : * mut fz_colorspace ) ; } extern "C" { pub fn fz_set_default_cmyk ( ctx : * mut fz_context , default_cs : * mut fz_default_colorspaces , cs : * mut fz_colorspace ) ; } extern "C" { pub fn fz_set_default_output_intent ( ctx : * mut fz_context , default_cs : * mut fz_default_colorspaces , cs : * mut fz_colorspace ) ; } extern "C" { pub fn fz_convert_pixmap_samples ( ctx : * mut fz_context , src : * mut fz_pixmap , dst : * mut fz_pixmap , prf : * mut fz_colorspace , default_cs : * const fz_default_colorspaces , color_params : fz_color_params , copy_spots : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_fast_any_to_alpha ( ctx : * mut fz_context , src : * mut fz_pixmap , dst : * mut fz_pixmap , copy_spots : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_convert_fast_pixmap_samples ( ctx : * mut fz_context , src : * mut fz_pixmap , dst : * mut fz_pixmap , copy_spots : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_convert_slow_pixmap_samples ( ctx : * mut fz_context , src : * mut fz_pixmap , dst : * mut fz_pixmap , prf : * mut fz_colorspace , params : fz_color_params , copy_spots : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_new_icc_context ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_drop_icc_context ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_new_icc_profile ( ctx : * mut fz_context , data : * mut :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_icc_profile ; } extern "C" { pub fn fz_drop_icc_profile ( ctx : * mut fz_context , profile : * mut fz_icc_profile ) ; } extern "C" { pub fn fz_icc_profile_name ( ctx : * mut fz_context , profile : * mut fz_icc_profile , name : * mut :: std :: os :: raw :: c_char , size : usize ) ; } extern "C" { pub fn fz_icc_profile_components ( ctx : * mut fz_context , profile : * mut fz_icc_profile ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_icc_profile_is_lab ( ctx : * mut fz_context , profile : * mut fz_icc_profile ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_new_icc_link ( ctx : * mut fz_context , src : * mut fz_colorspace , src_extras : :: std :: os :: raw :: c_int , dst : * mut fz_colorspace , dst_extras : :: std :: os :: raw :: c_int , prf : * mut fz_colorspace , color_params : fz_color_params , format : :: std :: os :: raw :: c_int , copy_spots : :: std :: os :: raw :: c_int ) -> * mut fz_icc_link ; } extern "C" { pub fn fz_drop_icc_link_imp ( ctx : * mut fz_context , link : * mut fz_storable ) ; } extern "C" { pub fn fz_drop_icc_link ( ctx : * mut fz_context , link : * mut fz_icc_link ) ; } extern "C" { pub fn fz_find_icc_link ( ctx : * mut fz_context , src : * mut fz_colorspace , src_extras : :: std :: os :: raw :: c_int , dst : * mut fz_colorspace , dst_extras : :: std :: os :: raw :: c_int , prf : * mut fz_colorspace , color_params : fz_color_params , format : :: std :: os :: raw :: c_int , copy_spots : :: std :: os :: raw :: c_int ) -> * mut fz_icc_link ; } extern "C" { pub fn fz_icc_transform_color ( ctx : * mut fz_context , cc : * mut fz_color_converter , src : * const f32 , dst : * mut f32 ) ; } extern "C" { pub fn fz_icc_transform_pixmap ( ctx : * mut fz_context , link : * mut fz_icc_link , src : * mut fz_pixmap , dst : * mut fz_pixmap , copy_spots : :: std :: os :: raw :: c_int ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_colorspace_context_s { pub ctx_refs : :: std :: os :: raw :: c_int , pub gray : * mut fz_colorspace , pub rgb : * mut fz_colorspace , pub bgr : * mut fz_colorspace , pub cmyk : * mut fz_colorspace , pub lab : * mut fz_colorspace , pub icc_instance : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_fz_colorspace_context_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_colorspace_context_s > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( fz_colorspace_context_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_colorspace_context_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_colorspace_context_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_context_s > ( ) ) ) . ctx_refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_context_s ) , "::" , stringify ! ( ctx_refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_context_s > ( ) ) ) . gray as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_context_s ) , "::" , stringify ! ( gray ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_context_s > ( ) ) ) . rgb as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_context_s ) , "::" , stringify ! ( rgb ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_context_s > ( ) ) ) . bgr as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_context_s ) , "::" , stringify ! ( bgr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_context_s > ( ) ) ) . cmyk as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_context_s ) , "::" , stringify ! ( cmyk ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_context_s > ( ) ) ) . lab as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_context_s ) , "::" , stringify ! ( lab ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_colorspace_context_s > ( ) ) ) . icc_instance as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_colorspace_context_s ) , "::" , stringify ! ( icc_instance ) ) ) ; } pub const FZ_MAX_SEPARATIONS : _bindgen_ty_9 = 64 ; pub type _bindgen_ty_9 = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_separations_s { _unused : [ u8 ; 0 ] , } pub type fz_separations = fz_separations_s ; pub const fz_separation_behavior_FZ_SEPARATION_COMPOSITE : fz_separation_behavior = 0 ; pub const fz_separation_behavior_FZ_SEPARATION_SPOT : fz_separation_behavior = 1 ; pub const fz_separation_behavior_FZ_SEPARATION_DISABLED : fz_separation_behavior = 2 ; pub type fz_separation_behavior = u32 ; extern "C" { pub fn fz_new_separations ( ctx : * mut fz_context , controllable : :: std :: os :: raw :: c_int ) -> * mut fz_separations ; } extern "C" { pub fn fz_keep_separations ( ctx : * mut fz_context , sep : * mut fz_separations ) -> * mut fz_separations ; } extern "C" { pub fn fz_drop_separations ( ctx : * mut fz_context , sep : * mut fz_separations ) ; } extern "C" { pub fn fz_add_separation ( ctx : * mut fz_context , sep : * mut fz_separations , name : * const :: std :: os :: raw :: c_char , cs : * mut fz_colorspace , cs_channel : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_add_separation_equivalents ( ctx : * mut fz_context , sep : * mut fz_separations , rgba : u32 , cmyk : u32 , name : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_set_separation_behavior ( ctx : * mut fz_context , sep : * mut fz_separations , separation : :: std :: os :: raw :: c_int , behavior : fz_separation_behavior ) ; } extern "C" { pub fn fz_separation_current_behavior ( ctx : * mut fz_context , sep : * const fz_separations , separation : :: std :: os :: raw :: c_int ) -> fz_separation_behavior ; } extern "C" { pub fn fz_separation_name ( ctx : * mut fz_context , sep : * const fz_separations , separation : :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_count_separations ( ctx : * mut fz_context , sep : * const fz_separations ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_count_active_separations ( ctx : * mut fz_context , seps : * const fz_separations ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_clone_separations_for_overprint ( ctx : * mut fz_context , seps : * mut fz_separations ) -> * mut fz_separations ; } extern "C" { pub fn fz_convert_separation_colors ( ctx : * mut fz_context , src_cs : * mut fz_colorspace , src_color : * const f32 , dst_seps : * mut fz_separations , dst_cs : * mut fz_colorspace , dst_color : * mut f32 , color_params : fz_color_params ) ; } extern "C" { pub fn fz_separation_equivalent ( ctx : * mut fz_context , seps : * const fz_separations , idx : :: std :: os :: raw :: c_int , dst_cs : * mut fz_colorspace , dst_color : * mut f32 , prf : * mut fz_colorspace , color_params : fz_color_params ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_overprint_s { _unused : [ u8 ; 0 ] , } pub type fz_overprint = fz_overprint_s ; extern "C" { pub fn fz_pixmap_bbox ( ctx : * mut fz_context , pix : * const fz_pixmap ) -> fz_irect ; } extern "C" { pub fn fz_pixmap_width ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_pixmap_height ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_pixmap_x ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_pixmap_y ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_new_pixmap ( ctx : * mut fz_context , cs : * mut fz_colorspace , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , seps : * mut fz_separations , alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_with_bbox ( ctx : * mut fz_context , colorspace : * mut fz_colorspace , bbox : fz_irect , seps : * mut fz_separations , alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_with_data ( ctx : * mut fz_context , colorspace : * mut fz_colorspace , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , seps : * mut fz_separations , alpha : :: std :: os :: raw :: c_int , stride : :: std :: os :: raw :: c_int , samples : * mut :: std :: os :: raw :: c_uchar ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_with_bbox_and_data ( ctx : * mut fz_context , colorspace : * mut fz_colorspace , rect : fz_irect , seps : * mut fz_separations , alpha : :: std :: os :: raw :: c_int , samples : * mut :: std :: os :: raw :: c_uchar ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_from_pixmap ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , rect : * const fz_irect ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_clone_pixmap ( ctx : * mut fz_context , old : * mut fz_pixmap ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_keep_pixmap ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_drop_pixmap ( ctx : * mut fz_context , pix : * mut fz_pixmap ) ; } extern "C" { pub fn fz_pixmap_colorspace ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_pixmap_components ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_pixmap_colorants ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_pixmap_spots ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_pixmap_alpha ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_pixmap_samples ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> * mut :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_pixmap_stride ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_set_pixmap_resolution ( ctx : * mut fz_context , pix : * mut fz_pixmap , xres : :: std :: os :: raw :: c_int , yres : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_clear_pixmap_with_value ( ctx : * mut fz_context , pix : * mut fz_pixmap , value : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_fill_pixmap_with_color ( ctx : * mut fz_context , pix : * mut fz_pixmap , colorspace : * mut fz_colorspace , color : * mut f32 , color_params : fz_color_params ) ; } extern "C" { pub fn fz_clear_pixmap_rect_with_value ( ctx : * mut fz_context , pix : * mut fz_pixmap , value : :: std :: os :: raw :: c_int , r : fz_irect ) ; } extern "C" { pub fn fz_clear_pixmap ( ctx : * mut fz_context , pix : * mut fz_pixmap ) ; } extern "C" { pub fn fz_invert_pixmap_luminance ( ctx : * mut fz_context , pix : * mut fz_pixmap ) ; } extern "C" { pub fn fz_invert_pixmap ( ctx : * mut fz_context , pix : * mut fz_pixmap ) ; } extern "C" { pub fn fz_tint_pixmap ( ctx : * mut fz_context , pix : * mut fz_pixmap , black : :: std :: os :: raw :: c_int , white : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_invert_pixmap_rect ( ctx : * mut fz_context , image : * mut fz_pixmap , rect : fz_irect ) ; } extern "C" { pub fn fz_gamma_pixmap ( ctx : * mut fz_context , pix : * mut fz_pixmap , gamma : f32 ) ; } extern "C" { pub fn fz_convert_pixmap ( ctx : * mut fz_context , pix : * mut fz_pixmap , cs_des : * mut fz_colorspace , prf : * mut fz_colorspace , default_cs : * mut fz_default_colorspaces , color_params : fz_color_params , keep_alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_pixmap_s { pub storable : fz_storable , pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub w : :: std :: os :: raw :: c_int , pub h : :: std :: os :: raw :: c_int , pub n : :: std :: os :: raw :: c_uchar , pub s : :: std :: os :: raw :: c_uchar , pub alpha : :: std :: os :: raw :: c_uchar , pub flags : :: std :: os :: raw :: c_uchar , pub stride : isize , pub seps : * mut fz_separations , pub xres : :: std :: os :: raw :: c_int , pub yres : :: std :: os :: raw :: c_int , pub colorspace : * mut fz_colorspace , pub samples : * mut :: std :: os :: raw :: c_uchar , pub underlying : * mut fz_pixmap , } # [ test ] fn bindgen_test_layout_fz_pixmap_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_pixmap_s > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( fz_pixmap_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_pixmap_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_pixmap_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . storable as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( storable ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . x as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . y as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( y ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . w as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( w ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . h as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( h ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . n as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( n ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . s as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . alpha as * const _ as usize } , 34usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( alpha ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . flags as * const _ as usize } , 35usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . stride as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( stride ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . seps as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( seps ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . xres as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( xres ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . yres as * const _ as usize } , 60usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( yres ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . colorspace as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( colorspace ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . samples as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( samples ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pixmap_s > ( ) ) ) . underlying as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( fz_pixmap_s ) , "::" , stringify ! ( underlying ) ) ) ; } pub const FZ_PIXMAP_FLAG_INTERPOLATE : _bindgen_ty_10 = 1 ; pub const FZ_PIXMAP_FLAG_FREE_SAMPLES : _bindgen_ty_10 = 2 ; pub type _bindgen_ty_10 = u32 ; extern "C" { pub fn fz_drop_pixmap_imp ( ctx : * mut fz_context , pix : * mut fz_storable ) ; } extern "C" { pub fn fz_copy_pixmap_rect ( ctx : * mut fz_context , dest : * mut fz_pixmap , src : * mut fz_pixmap , r : fz_irect , default_cs : * const fz_default_colorspaces ) ; } extern "C" { pub fn fz_premultiply_pixmap ( ctx : * mut fz_context , pix : * mut fz_pixmap ) ; } extern "C" { pub fn fz_alpha_from_gray ( ctx : * mut fz_context , gray : * mut fz_pixmap ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_pixmap_size ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> usize ; } extern "C" { pub fn fz_scale_pixmap ( ctx : * mut fz_context , src : * mut fz_pixmap , x : f32 , y : f32 , w : f32 , h : f32 , clip : * const fz_irect ) -> * mut fz_pixmap ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_scale_cache_s { _unused : [ u8 ; 0 ] , } pub type fz_scale_cache = fz_scale_cache_s ; extern "C" { pub fn fz_new_scale_cache ( ctx : * mut fz_context ) -> * mut fz_scale_cache ; } extern "C" { pub fn fz_drop_scale_cache ( ctx : * mut fz_context , cache : * mut fz_scale_cache ) ; } extern "C" { pub fn fz_scale_pixmap_cached ( ctx : * mut fz_context , src : * const fz_pixmap , x : f32 , y : f32 , w : f32 , h : f32 , clip : * const fz_irect , cache_x : * mut fz_scale_cache , cache_y : * mut fz_scale_cache ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_subsample_pixmap ( ctx : * mut fz_context , tile : * mut fz_pixmap , factor : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_pixmap_bbox_no_ctx ( src : * const fz_pixmap ) -> fz_irect ; } extern "C" { pub fn fz_decode_tile ( ctx : * mut fz_context , pix : * mut fz_pixmap , decode : * const f32 ) ; } extern "C" { pub fn fz_decode_indexed_tile ( ctx : * mut fz_context , pix : * mut fz_pixmap , decode : * const f32 , maxval : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_unpack_tile ( ctx : * mut fz_context , dst : * mut fz_pixmap , src : * mut :: std :: os :: raw :: c_uchar , n : :: std :: os :: raw :: c_int , depth : :: std :: os :: raw :: c_int , stride : usize , scale : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_md5_pixmap ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , digest : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn fz_new_pixmap_from_8bpp_data ( ctx : * mut fz_context , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , sp : * mut :: std :: os :: raw :: c_uchar , span : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_from_1bpp_data ( ctx : * mut fz_context , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , sp : * mut :: std :: os :: raw :: c_uchar , span : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_clone_pixmap_area_with_different_seps ( ctx : * mut fz_context , src : * mut fz_pixmap , bbox : * const fz_irect , dcs : * mut fz_colorspace , seps : * mut fz_separations , color_params : fz_color_params , default_cs : * mut fz_default_colorspaces ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_copy_pixmap_area_converting_seps ( ctx : * mut fz_context , src : * mut fz_pixmap , dst : * mut fz_pixmap , prf : * mut fz_colorspace , color_params : fz_color_params , default_cs : * mut fz_default_colorspaces ) -> * mut fz_pixmap ; } pub type fz_bitmap = fz_bitmap_s ; extern "C" { pub fn fz_keep_bitmap ( ctx : * mut fz_context , bit : * mut fz_bitmap ) -> * mut fz_bitmap ; } extern "C" { pub fn fz_drop_bitmap ( ctx : * mut fz_context , bit : * mut fz_bitmap ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_halftone_s { _unused : [ u8 ; 0 ] , } pub type fz_halftone = fz_halftone_s ; extern "C" { pub fn fz_new_bitmap_from_pixmap ( ctx : * mut fz_context , pix : * mut fz_pixmap , ht : * mut fz_halftone ) -> * mut fz_bitmap ; } extern "C" { pub fn fz_new_bitmap_from_pixmap_band ( ctx : * mut fz_context , pix : * mut fz_pixmap , ht : * mut fz_halftone , band_start : :: std :: os :: raw :: c_int ) -> * mut fz_bitmap ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_bitmap_s { pub refs : :: std :: os :: raw :: c_int , pub w : :: std :: os :: raw :: c_int , pub h : :: std :: os :: raw :: c_int , pub stride : :: std :: os :: raw :: c_int , pub n : :: std :: os :: raw :: c_int , pub xres : :: std :: os :: raw :: c_int , pub yres : :: std :: os :: raw :: c_int , pub samples : * mut :: std :: os :: raw :: c_uchar , } # [ test ] fn bindgen_test_layout_fz_bitmap_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_bitmap_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( fz_bitmap_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_bitmap_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_bitmap_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_bitmap_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_bitmap_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_bitmap_s > ( ) ) ) . w as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_bitmap_s ) , "::" , stringify ! ( w ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_bitmap_s > ( ) ) ) . h as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_bitmap_s ) , "::" , stringify ! ( h ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_bitmap_s > ( ) ) ) . stride as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_bitmap_s ) , "::" , stringify ! ( stride ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_bitmap_s > ( ) ) ) . n as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_bitmap_s ) , "::" , stringify ! ( n ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_bitmap_s > ( ) ) ) . xres as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( fz_bitmap_s ) , "::" , stringify ! ( xres ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_bitmap_s > ( ) ) ) . yres as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_bitmap_s ) , "::" , stringify ! ( yres ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_bitmap_s > ( ) ) ) . samples as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_bitmap_s ) , "::" , stringify ! ( samples ) ) ) ; } extern "C" { pub fn fz_new_bitmap ( ctx : * mut fz_context , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , n : :: std :: os :: raw :: c_int , xres : :: std :: os :: raw :: c_int , yres : :: std :: os :: raw :: c_int ) -> * mut fz_bitmap ; } extern "C" { pub fn fz_bitmap_details ( bitmap : * mut fz_bitmap , w : * mut :: std :: os :: raw :: c_int , h : * mut :: std :: os :: raw :: c_int , n : * mut :: std :: os :: raw :: c_int , stride : * mut :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_clear_bitmap ( ctx : * mut fz_context , bit : * mut fz_bitmap ) ; } extern "C" { pub fn fz_default_halftone ( ctx : * mut fz_context , num_comps : :: std :: os :: raw :: c_int ) -> * mut fz_halftone ; } extern "C" { pub fn fz_keep_halftone ( ctx : * mut fz_context , half : * mut fz_halftone ) -> * mut fz_halftone ; } extern "C" { pub fn fz_drop_halftone ( ctx : * mut fz_context , ht : * mut fz_halftone ) ; } pub type fz_image = fz_image_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_compressed_image_s { _unused : [ u8 ; 0 ] , } pub type fz_compressed_image = fz_compressed_image_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_pixmap_image_s { _unused : [ u8 ; 0 ] , } pub type fz_pixmap_image = fz_pixmap_image_s ; extern "C" { pub fn fz_get_pixmap_from_image ( ctx : * mut fz_context , image : * mut fz_image , subarea : * const fz_irect , ctm : * mut fz_matrix , w : * mut :: std :: os :: raw :: c_int , h : * mut :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_drop_image ( ctx : * mut fz_context , image : * mut fz_image ) ; } extern "C" { pub fn fz_keep_image ( ctx : * mut fz_context , image : * mut fz_image ) -> * mut fz_image ; } extern "C" { pub fn fz_keep_image_store_key ( ctx : * mut fz_context , image : * mut fz_image ) -> * mut fz_image ; } extern "C" { pub fn fz_drop_image_store_key ( ctx : * mut fz_context , image : * mut fz_image ) ; } pub type fz_drop_image_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , image : * mut fz_image ) > ; pub type fz_image_get_pixmap_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , im : * mut fz_image , subarea : * mut fz_irect , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , l2factor : * mut :: std :: os :: raw :: c_int ) -> * mut fz_pixmap > ; pub type fz_image_get_size_fn = :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_image ) -> usize > ; extern "C" { pub fn fz_new_image_of_size ( ctx : * mut fz_context , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , bpc : :: std :: os :: raw :: c_int , colorspace : * mut fz_colorspace , xres : :: std :: os :: raw :: c_int , yres : :: std :: os :: raw :: c_int , interpolate : :: std :: os :: raw :: c_int , imagemask : :: std :: os :: raw :: c_int , decode : * mut f32 , colorkey : * mut :: std :: os :: raw :: c_int , mask : * mut fz_image , size : :: std :: os :: raw :: c_int , get_pixmap : fz_image_get_pixmap_fn , get_size : fz_image_get_size_fn , drop : fz_drop_image_fn ) -> * mut fz_image ; } extern "C" { pub fn fz_new_image_from_compressed_buffer ( ctx : * mut fz_context , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , bpc : :: std :: os :: raw :: c_int , colorspace : * mut fz_colorspace , xres : :: std :: os :: raw :: c_int , yres : :: std :: os :: raw :: c_int , interpolate : :: std :: os :: raw :: c_int , imagemask : :: std :: os :: raw :: c_int , decode : * mut f32 , colorkey : * mut :: std :: os :: raw :: c_int , buffer : * mut fz_compressed_buffer , mask : * mut fz_image ) -> * mut fz_image ; } extern "C" { pub fn fz_new_image_from_pixmap ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , mask : * mut fz_image ) -> * mut fz_image ; } extern "C" { pub fn fz_new_image_from_buffer ( ctx : * mut fz_context , buffer : * mut fz_buffer ) -> * mut fz_image ; } extern "C" { pub fn fz_new_image_from_file ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char ) -> * mut fz_image ; } extern "C" { pub fn fz_drop_image_imp ( ctx : * mut fz_context , image : * mut fz_storable ) ; } extern "C" { pub fn fz_drop_image_base ( ctx : * mut fz_context , image : * mut fz_image ) ; } extern "C" { pub fn fz_decomp_image_from_stream ( ctx : * mut fz_context , stm : * mut fz_stream , image : * mut fz_compressed_image , subarea : * mut fz_irect , indexed : :: std :: os :: raw :: c_int , l2factor : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_convert_indexed_pixmap_to_base ( ctx : * mut fz_context , src : * const fz_pixmap ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_convert_separation_pixmap_to_base ( ctx : * mut fz_context , src : * const fz_pixmap ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_image_size ( ctx : * mut fz_context , im : * mut fz_image ) -> usize ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_image_s { pub key_storable : fz_key_storable , pub w : :: std :: os :: raw :: c_int , pub h : :: std :: os :: raw :: c_int , pub n : u8 , pub bpc : u8 , pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > , pub mask : * mut fz_image , pub xres : :: std :: os :: raw :: c_int , pub yres : :: std :: os :: raw :: c_int , pub colorspace : * mut fz_colorspace , pub drop_image : fz_drop_image_fn , pub get_pixmap : fz_image_get_pixmap_fn , pub get_size : fz_image_get_size_fn , pub colorkey : [ :: std :: os :: raw :: c_int ; 64usize ] , pub decode : [ f32 ; 64usize ] , } # [ test ] fn bindgen_test_layout_fz_image_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_image_s > ( ) , 600usize , concat ! ( "Size of: " , stringify ! ( fz_image_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_image_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_image_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . key_storable as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( key_storable ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . w as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( w ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . h as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( h ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . n as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( n ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . bpc as * const _ as usize } , 33usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( bpc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . mask as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( mask ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . xres as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( xres ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . yres as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( yres ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . colorspace as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( colorspace ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . drop_image as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( drop_image ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . get_pixmap as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( get_pixmap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . get_size as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( get_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . colorkey as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( colorkey ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_image_s > ( ) ) ) . decode as * const _ as usize } , 344usize , concat ! ( "Offset of field: " , stringify ! ( fz_image_s ) , "::" , stringify ! ( decode ) ) ) ; } impl fz_image_s { # [ inline ] pub fn imagemask ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 0usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_imagemask ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 0usize , 1u8 , val as u64 ) } } # [ inline ] pub fn interpolate ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 1usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_interpolate ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 1usize , 1u8 , val as u64 ) } } # [ inline ] pub fn use_colorkey ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 2usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_use_colorkey ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 2usize , 1u8 , val as u64 ) } } # [ inline ] pub fn use_decode ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 3usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_use_decode ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 3usize , 1u8 , val as u64 ) } } # [ inline ] pub fn invert_cmyk_jpeg ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 4usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_invert_cmyk_jpeg ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 4usize , 1u8 , val as u64 ) } } # [ inline ] pub fn decoded ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 5usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_decoded ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 5usize , 1u8 , val as u64 ) } } # [ inline ] pub fn scalable ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 6usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_scalable ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 6usize , 1u8 , val as u64 ) } } # [ inline ] pub fn new_bitfield_1 ( imagemask : :: std :: os :: raw :: c_uint , interpolate : :: std :: os :: raw :: c_uint , use_colorkey : :: std :: os :: raw :: c_uint , use_decode : :: std :: os :: raw :: c_uint , invert_cmyk_jpeg : :: std :: os :: raw :: c_uint , decoded : :: std :: os :: raw :: c_uint , scalable : :: std :: os :: raw :: c_uint ) -> __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [ u8 ; 1usize ] , u8 > = Default :: default ( ) ; __bindgen_bitfield_unit . set ( 0usize , 1u8 , { let imagemask : u32 = unsafe { :: std :: mem :: transmute ( imagemask ) } ; imagemask as u64 } ) ; __bindgen_bitfield_unit . set ( 1usize , 1u8 , { let interpolate : u32 = unsafe { :: std :: mem :: transmute ( interpolate ) } ; interpolate as u64 } ) ; __bindgen_bitfield_unit . set ( 2usize , 1u8 , { let use_colorkey : u32 = unsafe { :: std :: mem :: transmute ( use_colorkey ) } ; use_colorkey as u64 } ) ; __bindgen_bitfield_unit . set ( 3usize , 1u8 , { let use_decode : u32 = unsafe { :: std :: mem :: transmute ( use_decode ) } ; use_decode as u64 } ) ; __bindgen_bitfield_unit . set ( 4usize , 1u8 , { let invert_cmyk_jpeg : u32 = unsafe { :: std :: mem :: transmute ( invert_cmyk_jpeg ) } ; invert_cmyk_jpeg as u64 } ) ; __bindgen_bitfield_unit . set ( 5usize , 1u8 , { let decoded : u32 = unsafe { :: std :: mem :: transmute ( decoded ) } ; decoded as u64 } ) ; __bindgen_bitfield_unit . set ( 6usize , 1u8 , { let scalable : u32 = unsafe { :: std :: mem :: transmute ( scalable ) } ; scalable as u64 } ) ; __bindgen_bitfield_unit } } extern "C" { pub fn fz_load_jpeg ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_load_jpx ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize , cs : * mut fz_colorspace ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_load_png ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_load_tiff ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_load_jxr ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_load_gif ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_load_bmp ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_load_pnm ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_load_jbig2 ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_load_jpeg_info ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize , w : * mut :: std :: os :: raw :: c_int , h : * mut :: std :: os :: raw :: c_int , xres : * mut :: std :: os :: raw :: c_int , yres : * mut :: std :: os :: raw :: c_int , cspace : * mut * mut fz_colorspace ) ; } extern "C" { pub fn fz_load_jpx_info ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize , w : * mut :: std :: os :: raw :: c_int , h : * mut :: std :: os :: raw :: c_int , xres : * mut :: std :: os :: raw :: c_int , yres : * mut :: std :: os :: raw :: c_int , cspace : * mut * mut fz_colorspace ) ; } extern "C" { pub fn fz_load_png_info ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize , w : * mut :: std :: os :: raw :: c_int , h : * mut :: std :: os :: raw :: c_int , xres : * mut :: std :: os :: raw :: c_int , yres : * mut :: std :: os :: raw :: c_int , cspace : * mut * mut fz_colorspace ) ; } extern "C" { pub fn fz_load_tiff_info ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize , w : * mut :: std :: os :: raw :: c_int , h : * mut :: std :: os :: raw :: c_int , xres : * mut :: std :: os :: raw :: c_int , yres : * mut :: std :: os :: raw :: c_int , cspace : * mut * mut fz_colorspace ) ; } extern "C" { pub fn fz_load_jxr_info ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize , w : * mut :: std :: os :: raw :: c_int , h : * mut :: std :: os :: raw :: c_int , xres : * mut :: std :: os :: raw :: c_int , yres : * mut :: std :: os :: raw :: c_int , cspace : * mut * mut fz_colorspace ) ; } extern "C" { pub fn fz_load_gif_info ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize , w : * mut :: std :: os :: raw :: c_int , h : * mut :: std :: os :: raw :: c_int , xres : * mut :: std :: os :: raw :: c_int , yres : * mut :: std :: os :: raw :: c_int , cspace : * mut * mut fz_colorspace ) ; } extern "C" { pub fn fz_load_bmp_info ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize , w : * mut :: std :: os :: raw :: c_int , h : * mut :: std :: os :: raw :: c_int , xres : * mut :: std :: os :: raw :: c_int , yres : * mut :: std :: os :: raw :: c_int , cspace : * mut * mut fz_colorspace ) ; } extern "C" { pub fn fz_load_pnm_info ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize , w : * mut :: std :: os :: raw :: c_int , h : * mut :: std :: os :: raw :: c_int , xres : * mut :: std :: os :: raw :: c_int , yres : * mut :: std :: os :: raw :: c_int , cspace : * mut * mut fz_colorspace ) ; } extern "C" { pub fn fz_load_jbig2_info ( ctx : * mut fz_context , data : * const :: std :: os :: raw :: c_uchar , size : usize , w : * mut :: std :: os :: raw :: c_int , h : * mut :: std :: os :: raw :: c_int , xres : * mut :: std :: os :: raw :: c_int , yres : * mut :: std :: os :: raw :: c_int , cspace : * mut * mut fz_colorspace ) ; } extern "C" { pub fn fz_load_tiff_subimage_count ( ctx : * mut fz_context , buf : * const :: std :: os :: raw :: c_uchar , len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_load_tiff_subimage ( ctx : * mut fz_context , buf : * const :: std :: os :: raw :: c_uchar , len : usize , subimage : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_load_pnm_subimage_count ( ctx : * mut fz_context , buf : * const :: std :: os :: raw :: c_uchar , len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_load_pnm_subimage ( ctx : * mut fz_context , buf : * const :: std :: os :: raw :: c_uchar , len : usize , subimage : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_load_jbig2_subimage_count ( ctx : * mut fz_context , buf : * const :: std :: os :: raw :: c_uchar , len : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_load_jbig2_subimage ( ctx : * mut fz_context , buf : * const :: std :: os :: raw :: c_uchar , len : usize , subimage : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_image_resolution ( image : * mut fz_image , xres : * mut :: std :: os :: raw :: c_int , yres : * mut :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_compressed_image_tile ( ctx : * mut fz_context , cimg : * mut fz_compressed_image ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_set_compressed_image_tile ( ctx : * mut fz_context , cimg : * mut fz_compressed_image , pix : * mut fz_pixmap ) ; } extern "C" { pub fn fz_compressed_image_buffer ( ctx : * mut fz_context , image : * mut fz_image ) -> * mut fz_compressed_buffer ; } extern "C" { pub fn fz_set_compressed_image_buffer ( ctx : * mut fz_context , cimg : * mut fz_compressed_image , buf : * mut fz_compressed_buffer ) ; } extern "C" { pub fn fz_pixmap_image_tile ( ctx : * mut fz_context , cimg : * mut fz_pixmap_image ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_set_pixmap_image_tile ( ctx : * mut fz_context , cimg : * mut fz_pixmap_image , pix : * mut fz_pixmap ) ; } pub const FZ_FUNCTION_BASED : _bindgen_ty_11 = 1 ; pub const FZ_LINEAR : _bindgen_ty_11 = 2 ; pub const FZ_RADIAL : _bindgen_ty_11 = 3 ; pub const FZ_MESH_TYPE4 : _bindgen_ty_11 = 4 ; pub const FZ_MESH_TYPE5 : _bindgen_ty_11 = 5 ; pub const FZ_MESH_TYPE6 : _bindgen_ty_11 = 6 ; pub const FZ_MESH_TYPE7 : _bindgen_ty_11 = 7 ; pub type _bindgen_ty_11 = u32 ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_shade_s { pub storable : fz_storable , pub bbox : fz_rect , pub colorspace : * mut fz_colorspace , pub matrix : fz_matrix , pub use_background : :: std :: os :: raw :: c_int , pub background : [ f32 ; 32usize ] , pub use_function : :: std :: os :: raw :: c_int , pub function : [ [ f32 ; 33usize ] ; 256usize ] , pub type_ : :: std :: os :: raw :: c_int , pub u : fz_shade_s__bindgen_ty_1 , pub buffer : * mut fz_compressed_buffer , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union fz_shade_s__bindgen_ty_1 { pub l_or_r : fz_shade_s__bindgen_ty_1__bindgen_ty_1 , pub m : fz_shade_s__bindgen_ty_1__bindgen_ty_2 , pub f : fz_shade_s__bindgen_ty_1__bindgen_ty_3 , _bindgen_union_align : [ u64 ; 36usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_shade_s__bindgen_ty_1__bindgen_ty_1 { pub extend : [ :: std :: os :: raw :: c_int ; 2usize ] , pub coords : [ [ f32 ; 3usize ] ; 2usize ] , } # [ test ] fn bindgen_test_layout_fz_shade_s__bindgen_ty_1__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_shade_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_shade_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . extend as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( extend ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . coords as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( coords ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_shade_s__bindgen_ty_1__bindgen_ty_2 { pub vprow : :: std :: os :: raw :: c_int , pub bpflag : :: std :: os :: raw :: c_int , pub bpcoord : :: std :: os :: raw :: c_int , pub bpcomp : :: std :: os :: raw :: c_int , pub x0 : f32 , pub x1 : f32 , pub y0 : f32 , pub y1 : f32 , pub c0 : [ f32 ; 32usize ] , pub c1 : [ f32 ; 32usize ] , } # [ test ] fn bindgen_test_layout_fz_shade_s__bindgen_ty_1__bindgen_ty_2 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) , 288usize , concat ! ( "Size of: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . vprow as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( vprow ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . bpflag as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( bpflag ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . bpcoord as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( bpcoord ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . bpcomp as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( bpcomp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . x0 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( x0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . x1 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( x1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . y0 as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( y0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . y1 as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( y1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . c0 as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( c0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . c1 as * const _ as usize } , 160usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( c1 ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_shade_s__bindgen_ty_1__bindgen_ty_3 { pub matrix : fz_matrix , pub xdivs : :: std :: os :: raw :: c_int , pub ydivs : :: std :: os :: raw :: c_int , pub domain : [ [ f32 ; 2usize ] ; 2usize ] , pub fn_vals : * mut f32 , } # [ test ] fn bindgen_test_layout_fz_shade_s__bindgen_ty_1__bindgen_ty_3 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_shade_s__bindgen_ty_1__bindgen_ty_3 > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_3 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_shade_s__bindgen_ty_1__bindgen_ty_3 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . matrix as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( matrix ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . xdivs as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( xdivs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . ydivs as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( ydivs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . domain as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( domain ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . fn_vals as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( fn_vals ) ) ) ; } # [ test ] fn bindgen_test_layout_fz_shade_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_shade_s__bindgen_ty_1 > ( ) , 288usize , concat ! ( "Size of: " , stringify ! ( fz_shade_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_shade_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_shade_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1 > ( ) ) ) . l_or_r as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1 ) , "::" , stringify ! ( l_or_r ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1 > ( ) ) ) . m as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1 ) , "::" , stringify ! ( m ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s__bindgen_ty_1 > ( ) ) ) . f as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s__bindgen_ty_1 ) , "::" , stringify ! ( f ) ) ) ; } # [ test ] fn bindgen_test_layout_fz_shade_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_shade_s > ( ) , 34296usize , concat ! ( "Size of: " , stringify ! ( fz_shade_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_shade_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_shade_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s > ( ) ) ) . storable as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s ) , "::" , stringify ! ( storable ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s > ( ) ) ) . bbox as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s ) , "::" , stringify ! ( bbox ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s > ( ) ) ) . colorspace as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s ) , "::" , stringify ! ( colorspace ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s > ( ) ) ) . matrix as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s ) , "::" , stringify ! ( matrix ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s > ( ) ) ) . use_background as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s ) , "::" , stringify ! ( use_background ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s > ( ) ) ) . background as * const _ as usize } , 68usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s ) , "::" , stringify ! ( background ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s > ( ) ) ) . use_function as * const _ as usize } , 196usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s ) , "::" , stringify ! ( use_function ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s > ( ) ) ) . function as * const _ as usize } , 200usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s ) , "::" , stringify ! ( function ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s > ( ) ) ) . type_ as * const _ as usize } , 33992usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s > ( ) ) ) . u as * const _ as usize } , 34000usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s ) , "::" , stringify ! ( u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shade_s > ( ) ) ) . buffer as * const _ as usize } , 34288usize , concat ! ( "Offset of field: " , stringify ! ( fz_shade_s ) , "::" , stringify ! ( buffer ) ) ) ; } pub type fz_shade = fz_shade_s ; extern "C" { pub fn fz_keep_shade ( ctx : * mut fz_context , shade : * mut fz_shade ) -> * mut fz_shade ; } extern "C" { pub fn fz_drop_shade ( ctx : * mut fz_context , shade : * mut fz_shade ) ; } extern "C" { pub fn fz_drop_shade_imp ( ctx : * mut fz_context , shade : * mut fz_storable ) ; } extern "C" { pub fn fz_bound_shade ( ctx : * mut fz_context , shade : * mut fz_shade , ctm : fz_matrix ) -> fz_rect ; } extern "C" { pub fn fz_paint_shade ( ctx : * mut fz_context , shade : * mut fz_shade , override_cs : * mut fz_colorspace , ctm : fz_matrix , dest : * mut fz_pixmap , color_params : fz_color_params , bbox : fz_irect , eop : * const fz_overprint ) ; } pub type fz_vertex = fz_vertex_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_vertex_s { pub p : fz_point , pub c : [ f32 ; 32usize ] , } # [ test ] fn bindgen_test_layout_fz_vertex_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_vertex_s > ( ) , 136usize , concat ! ( "Size of: " , stringify ! ( fz_vertex_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_vertex_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_vertex_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_vertex_s > ( ) ) ) . p as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_vertex_s ) , "::" , stringify ! ( p ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_vertex_s > ( ) ) ) . c as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_vertex_s ) , "::" , stringify ! ( c ) ) ) ; } pub type fz_shade_prepare_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg : * mut :: std :: os :: raw :: c_void , v : * mut fz_vertex , c : * const f32 ) > ; pub type fz_shade_process_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg : * mut :: std :: os :: raw :: c_void , av : * mut fz_vertex , bv : * mut fz_vertex , cv : * mut fz_vertex ) > ; extern "C" { pub fn fz_process_shade ( ctx : * mut fz_context , shade : * mut fz_shade , ctm : fz_matrix , scissor : fz_rect , prepare : fz_shade_prepare_fn , process : fz_shade_process_fn , process_arg : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub static mut fz_glyph_name_from_adobe_standard : [ * const :: std :: os :: raw :: c_char ; 256usize ] ; } extern "C" { pub static mut fz_glyph_name_from_iso8859_1 : [ * const :: std :: os :: raw :: c_char ; 256usize ] ; } extern "C" { pub static mut fz_glyph_name_from_iso8859_7 : [ * const :: std :: os :: raw :: c_char ; 256usize ] ; } extern "C" { pub static mut fz_glyph_name_from_koi8u : [ * const :: std :: os :: raw :: c_char ; 256usize ] ; } extern "C" { pub static mut fz_glyph_name_from_mac_expert : [ * const :: std :: os :: raw :: c_char ; 256usize ] ; } extern "C" { pub static mut fz_glyph_name_from_mac_roman : [ * const :: std :: os :: raw :: c_char ; 256usize ] ; } extern "C" { pub static mut fz_glyph_name_from_win_ansi : [ * const :: std :: os :: raw :: c_char ; 256usize ] ; } extern "C" { pub static mut fz_glyph_name_from_windows_1250 : [ * const :: std :: os :: raw :: c_char ; 256usize ] ; } extern "C" { pub static mut fz_glyph_name_from_windows_1251 : [ * const :: std :: os :: raw :: c_char ; 256usize ] ; } extern "C" { pub static mut fz_glyph_name_from_windows_1252 : [ * const :: std :: os :: raw :: c_char ; 256usize ] ; } extern "C" { pub static mut fz_unicode_from_iso8859_1 : [ :: std :: os :: raw :: c_ushort ; 256usize ] ; } extern "C" { pub static mut fz_unicode_from_iso8859_7 : [ :: std :: os :: raw :: c_ushort ; 256usize ] ; } extern "C" { pub static mut fz_unicode_from_koi8u : [ :: std :: os :: raw :: c_ushort ; 256usize ] ; } extern "C" { pub static mut fz_unicode_from_pdf_doc_encoding : [ :: std :: os :: raw :: c_ushort ; 256usize ] ; } extern "C" { pub static mut fz_unicode_from_windows_1250 : [ :: std :: os :: raw :: c_ushort ; 256usize ] ; } extern "C" { pub static mut fz_unicode_from_windows_1251 : [ :: std :: os :: raw :: c_ushort ; 256usize ] ; } extern "C" { pub static mut fz_unicode_from_windows_1252 : [ :: std :: os :: raw :: c_ushort ; 256usize ] ; } extern "C" { pub fn fz_iso8859_1_from_unicode ( u : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_iso8859_7_from_unicode ( u : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_koi8u_from_unicode ( u : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_windows_1250_from_unicode ( u : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_windows_1251_from_unicode ( u : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_windows_1252_from_unicode ( u : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_unicode_from_glyph_name ( name : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_unicode_from_glyph_name_strict ( name : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_duplicate_glyph_names_from_unicode ( unicode : :: std :: os :: raw :: c_int ) -> * mut * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_glyph_name_from_unicode_sc ( unicode : :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_char ; } pub type fz_font = fz_font_s ; extern "C" { pub fn fz_font_ft_face ( ctx : * mut fz_context , font : * mut fz_font ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_font_t3_procs ( ctx : * mut fz_context , font : * mut fz_font ) -> * mut * mut fz_buffer ; } pub const FZ_ADOBE_CNS : _bindgen_ty_12 = 0 ; pub const FZ_ADOBE_GB : _bindgen_ty_12 = 1 ; pub const FZ_ADOBE_JAPAN : _bindgen_ty_12 = 2 ; pub const FZ_ADOBE_KOREA : _bindgen_ty_12 = 3 ; pub type _bindgen_ty_12 = u32 ; # [ repr ( C ) ] # [ repr ( align ( 4 ) ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_font_flags_t { pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 2usize ] , u8 > , pub __bindgen_padding_0 : u16 , } # [ test ] fn bindgen_test_layout_fz_font_flags_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_font_flags_t > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( fz_font_flags_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_font_flags_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_font_flags_t ) ) ) ; } impl fz_font_flags_t { # [ inline ] pub fn is_mono ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 0usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_is_mono ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 0usize , 1u8 , val as u64 ) } } # [ inline ] pub fn is_serif ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 1usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_is_serif ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 1usize , 1u8 , val as u64 ) } } # [ inline ] pub fn is_bold ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 2usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_is_bold ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 2usize , 1u8 , val as u64 ) } } # [ inline ] pub fn is_italic ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 3usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_is_italic ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 3usize , 1u8 , val as u64 ) } } # [ inline ] pub fn ft_substitute ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 4usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_ft_substitute ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 4usize , 1u8 , val as u64 ) } } # [ inline ] pub fn ft_stretch ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 5usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_ft_stretch ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 5usize , 1u8 , val as u64 ) } } # [ inline ] pub fn fake_bold ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 6usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_fake_bold ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 6usize , 1u8 , val as u64 ) } } # [ inline ] pub fn fake_italic ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 7usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_fake_italic ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 7usize , 1u8 , val as u64 ) } } # [ inline ] pub fn has_opentype ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 8usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_has_opentype ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 8usize , 1u8 , val as u64 ) } } # [ inline ] pub fn invalid_bbox ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 9usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_invalid_bbox ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 9usize , 1u8 , val as u64 ) } } # [ inline ] pub fn new_bitfield_1 ( is_mono : :: std :: os :: raw :: c_uint , is_serif : :: std :: os :: raw :: c_uint , is_bold : :: std :: os :: raw :: c_uint , is_italic : :: std :: os :: raw :: c_uint , ft_substitute : :: std :: os :: raw :: c_uint , ft_stretch : :: std :: os :: raw :: c_uint , fake_bold : :: std :: os :: raw :: c_uint , fake_italic : :: std :: os :: raw :: c_uint , has_opentype : :: std :: os :: raw :: c_uint , invalid_bbox : :: std :: os :: raw :: c_uint ) -> __BindgenBitfieldUnit < [ u8 ; 2usize ] , u8 > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [ u8 ; 2usize ] , u8 > = Default :: default ( ) ; __bindgen_bitfield_unit . set ( 0usize , 1u8 , { let is_mono : u32 = unsafe { :: std :: mem :: transmute ( is_mono ) } ; is_mono as u64 } ) ; __bindgen_bitfield_unit . set ( 1usize , 1u8 , { let is_serif : u32 = unsafe { :: std :: mem :: transmute ( is_serif ) } ; is_serif as u64 } ) ; __bindgen_bitfield_unit . set ( 2usize , 1u8 , { let is_bold : u32 = unsafe { :: std :: mem :: transmute ( is_bold ) } ; is_bold as u64 } ) ; __bindgen_bitfield_unit . set ( 3usize , 1u8 , { let is_italic : u32 = unsafe { :: std :: mem :: transmute ( is_italic ) } ; is_italic as u64 } ) ; __bindgen_bitfield_unit . set ( 4usize , 1u8 , { let ft_substitute : u32 = unsafe { :: std :: mem :: transmute ( ft_substitute ) } ; ft_substitute as u64 } ) ; __bindgen_bitfield_unit . set ( 5usize , 1u8 , { let ft_stretch : u32 = unsafe { :: std :: mem :: transmute ( ft_stretch ) } ; ft_stretch as u64 } ) ; __bindgen_bitfield_unit . set ( 6usize , 1u8 , { let fake_bold : u32 = unsafe { :: std :: mem :: transmute ( fake_bold ) } ; fake_bold as u64 } ) ; __bindgen_bitfield_unit . set ( 7usize , 1u8 , { let fake_italic : u32 = unsafe { :: std :: mem :: transmute ( fake_italic ) } ; fake_italic as u64 } ) ; __bindgen_bitfield_unit . set ( 8usize , 1u8 , { let has_opentype : u32 = unsafe { :: std :: mem :: transmute ( has_opentype ) } ; has_opentype as u64 } ) ; __bindgen_bitfield_unit . set ( 9usize , 1u8 , { let invalid_bbox : u32 = unsafe { :: std :: mem :: transmute ( invalid_bbox ) } ; invalid_bbox as u64 } ) ; __bindgen_bitfield_unit } } extern "C" { pub fn fz_font_flags ( font : * mut fz_font ) -> * mut fz_font_flags_t ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_shaper_data_t { pub shaper_handle : * mut :: std :: os :: raw :: c_void , pub destroy : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg1 : * mut :: std :: os :: raw :: c_void ) > , } # [ test ] fn bindgen_test_layout_fz_shaper_data_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_shaper_data_t > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( fz_shaper_data_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_shaper_data_t > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_shaper_data_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shaper_data_t > ( ) ) ) . shaper_handle as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_shaper_data_t ) , "::" , stringify ! ( shaper_handle ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_shaper_data_t > ( ) ) ) . destroy as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_shaper_data_t ) , "::" , stringify ! ( destroy ) ) ) ; } extern "C" { pub fn fz_font_shaper_data ( ctx : * mut fz_context , font : * mut fz_font ) -> * mut fz_shaper_data_t ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_font_s { pub refs : :: std :: os :: raw :: c_int , pub name : [ :: std :: os :: raw :: c_char ; 32usize ] , pub buffer : * mut fz_buffer , pub flags : fz_font_flags_t , pub ft_face : * mut :: std :: os :: raw :: c_void , pub shaper_data : fz_shaper_data_t , pub t3matrix : fz_matrix , pub t3resources : * mut :: std :: os :: raw :: c_void , pub t3procs : * mut * mut fz_buffer , pub t3lists : * mut * mut fz_display_list_s , pub t3widths : * mut f32 , pub t3flags : * mut :: std :: os :: raw :: c_ushort , pub t3doc : * mut :: std :: os :: raw :: c_void , pub t3run : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut :: std :: os :: raw :: c_void , resources : * mut :: std :: os :: raw :: c_void , contents : * mut fz_buffer , dev : * mut fz_device_s , ctm : fz_matrix , gstate : * mut :: std :: os :: raw :: c_void , default_cs : * mut fz_default_colorspaces ) > , pub t3freeres : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut :: std :: os :: raw :: c_void , resources : * mut :: std :: os :: raw :: c_void ) > , pub bbox : fz_rect , pub glyph_count : :: std :: os :: raw :: c_int , pub bbox_table : * mut fz_rect , pub width_count : :: std :: os :: raw :: c_int , pub width_default : :: std :: os :: raw :: c_short , pub width_table : * mut :: std :: os :: raw :: c_short , pub advance_cache : * mut f32 , pub encoding_cache : [ * mut u16 ; 256usize ] , pub has_digest : :: std :: os :: raw :: c_int , pub digest : [ :: std :: os :: raw :: c_uchar ; 16usize ] , } # [ test ] fn bindgen_test_layout_fz_font_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_font_s > ( ) , 2296usize , concat ! ( "Size of: " , stringify ! ( fz_font_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_font_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_font_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . name as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . buffer as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( buffer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . flags as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . ft_face as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( ft_face ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . shaper_data as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( shaper_data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . t3matrix as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( t3matrix ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . t3resources as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( t3resources ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . t3procs as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( t3procs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . t3lists as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( t3lists ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . t3widths as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( t3widths ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . t3flags as * const _ as usize } , 136usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( t3flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . t3doc as * const _ as usize } , 144usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( t3doc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . t3run as * const _ as usize } , 152usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( t3run ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . t3freeres as * const _ as usize } , 160usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( t3freeres ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . bbox as * const _ as usize } , 168usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( bbox ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . glyph_count as * const _ as usize } , 184usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( glyph_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . bbox_table as * const _ as usize } , 192usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( bbox_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . width_count as * const _ as usize } , 200usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( width_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . width_default as * const _ as usize } , 204usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( width_default ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . width_table as * const _ as usize } , 208usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( width_table ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . advance_cache as * const _ as usize } , 216usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( advance_cache ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . encoding_cache as * const _ as usize } , 224usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( encoding_cache ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . has_digest as * const _ as usize } , 2272usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( has_digest ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_font_s > ( ) ) ) . digest as * const _ as usize } , 2276usize , concat ! ( "Offset of field: " , stringify ! ( fz_font_s ) , "::" , stringify ! ( digest ) ) ) ; } extern "C" { pub fn fz_font_name ( ctx : * mut fz_context , font : * mut fz_font ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_font_is_bold ( ctx : * mut fz_context , font : * mut fz_font ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_font_is_italic ( ctx : * mut fz_context , font : * mut fz_font ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_font_is_serif ( ctx : * mut fz_context , font : * mut fz_font ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_font_is_monospaced ( ctx : * mut fz_context , font : * mut fz_font ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_font_bbox ( ctx : * mut fz_context , font : * mut fz_font ) -> fz_rect ; } pub type fz_load_system_font_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , bold : :: std :: os :: raw :: c_int , italic : :: std :: os :: raw :: c_int , needs_exact_metrics : :: std :: os :: raw :: c_int ) -> * mut fz_font > ; pub type fz_load_system_cjk_font_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , ordering : :: std :: os :: raw :: c_int , serif : :: std :: os :: raw :: c_int ) -> * mut fz_font > ; pub type fz_load_system_fallback_font_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , script : :: std :: os :: raw :: c_int , language : :: std :: os :: raw :: c_int , serif : :: std :: os :: raw :: c_int , bold : :: std :: os :: raw :: c_int , italic : :: std :: os :: raw :: c_int ) -> * mut fz_font > ; extern "C" { pub fn fz_install_load_system_font_funcs ( ctx : * mut fz_context , f : fz_load_system_font_fn , f_cjk : fz_load_system_cjk_font_fn , f_fallback : fz_load_system_fallback_font_fn ) ; } extern "C" { pub fn fz_load_system_font ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , bold : :: std :: os :: raw :: c_int , italic : :: std :: os :: raw :: c_int , needs_exact_metrics : :: std :: os :: raw :: c_int ) -> * mut fz_font ; } extern "C" { pub fn fz_load_system_cjk_font ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , ordering : :: std :: os :: raw :: c_int , serif : :: std :: os :: raw :: c_int ) -> * mut fz_font ; } extern "C" { pub fn fz_lookup_builtin_font ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , bold : :: std :: os :: raw :: c_int , italic : :: std :: os :: raw :: c_int , len : * mut :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_lookup_base14_font ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , len : * mut :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_lookup_cjk_font ( ctx : * mut fz_context , ordering : :: std :: os :: raw :: c_int , len : * mut :: std :: os :: raw :: c_int , index : * mut :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_lookup_cjk_font_by_language ( ctx : * mut fz_context , lang : * const :: std :: os :: raw :: c_char , size : * mut :: std :: os :: raw :: c_int , subfont : * mut :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_lookup_cjk_ordering_by_language ( name : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_lookup_noto_font ( ctx : * mut fz_context , script : :: std :: os :: raw :: c_int , lang : :: std :: os :: raw :: c_int , len : * mut :: std :: os :: raw :: c_int , subfont : * mut :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_lookup_noto_math_font ( ctx : * mut fz_context , len : * mut :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_lookup_noto_music_font ( ctx : * mut fz_context , len : * mut :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_lookup_noto_symbol1_font ( ctx : * mut fz_context , len : * mut :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_lookup_noto_symbol2_font ( ctx : * mut fz_context , len : * mut :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_lookup_noto_emoji_font ( ctx : * mut fz_context , len : * mut :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn fz_load_fallback_font ( ctx : * mut fz_context , script : :: std :: os :: raw :: c_int , language : :: std :: os :: raw :: c_int , serif : :: std :: os :: raw :: c_int , bold : :: std :: os :: raw :: c_int , italic : :: std :: os :: raw :: c_int ) -> * mut fz_font ; } extern "C" { pub fn fz_new_type3_font ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , matrix : fz_matrix ) -> * mut fz_font ; } extern "C" { pub fn fz_new_font_from_memory ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , data : * const :: std :: os :: raw :: c_uchar , len : :: std :: os :: raw :: c_int , index : :: std :: os :: raw :: c_int , use_glyph_bbox : :: std :: os :: raw :: c_int ) -> * mut fz_font ; } extern "C" { pub fn fz_new_font_from_buffer ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , buffer : * mut fz_buffer , index : :: std :: os :: raw :: c_int , use_glyph_bbox : :: std :: os :: raw :: c_int ) -> * mut fz_font ; } extern "C" { pub fn fz_new_font_from_file ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , path : * const :: std :: os :: raw :: c_char , index : :: std :: os :: raw :: c_int , use_glyph_bbox : :: std :: os :: raw :: c_int ) -> * mut fz_font ; } extern "C" { pub fn fz_new_base14_font ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char ) -> * mut fz_font ; } extern "C" { pub fn fz_new_cjk_font ( ctx : * mut fz_context , ordering : :: std :: os :: raw :: c_int ) -> * mut fz_font ; } extern "C" { pub fn fz_new_builtin_font ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , is_bold : :: std :: os :: raw :: c_int , is_italic : :: std :: os :: raw :: c_int ) -> * mut fz_font ; } extern "C" { pub fn fz_keep_font ( ctx : * mut fz_context , font : * mut fz_font ) -> * mut fz_font ; } extern "C" { pub fn fz_drop_font ( ctx : * mut fz_context , font : * mut fz_font ) ; } extern "C" { pub fn fz_set_font_bbox ( ctx : * mut fz_context , font : * mut fz_font , xmin : f32 , ymin : f32 , xmax : f32 , ymax : f32 ) ; } extern "C" { pub fn fz_bound_glyph ( ctx : * mut fz_context , font : * mut fz_font , gid : :: std :: os :: raw :: c_int , trm : fz_matrix ) -> fz_rect ; } extern "C" { pub fn fz_glyph_cacheable ( ctx : * mut fz_context , font : * mut fz_font , gid : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_run_t3_glyph ( ctx : * mut fz_context , font : * mut fz_font , gid : :: std :: os :: raw :: c_int , trm : fz_matrix , dev : * mut fz_device_s ) ; } extern "C" { pub fn fz_decouple_type3_font ( ctx : * mut fz_context , font : * mut fz_font , t3doc : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn fz_advance_glyph ( ctx : * mut fz_context , font : * mut fz_font , glyph : :: std :: os :: raw :: c_int , wmode : :: std :: os :: raw :: c_int ) -> f32 ; } extern "C" { pub fn fz_encode_character ( ctx : * mut fz_context , font : * mut fz_font , unicode : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_encode_character_sc ( ctx : * mut fz_context , font : * mut fz_font , unicode : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_encode_character_by_glyph_name ( ctx : * mut fz_context , font : * mut fz_font , glyphname : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_encode_character_with_fallback ( ctx : * mut fz_context , font : * mut fz_font , unicode : :: std :: os :: raw :: c_int , script : :: std :: os :: raw :: c_int , language : :: std :: os :: raw :: c_int , out_font : * mut * mut fz_font ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_get_glyph_name ( ctx : * mut fz_context , font : * mut fz_font , glyph : :: std :: os :: raw :: c_int , buf : * mut :: std :: os :: raw :: c_char , size : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_font_ascender ( ctx : * mut fz_context , font : * mut fz_font ) -> f32 ; } extern "C" { pub fn fz_font_descender ( ctx : * mut fz_context , font : * mut fz_font ) -> f32 ; } extern "C" { pub fn fz_font_digest ( ctx : * mut fz_context , font : * mut fz_font , digest : * mut :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn fz_hb_lock ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_hb_unlock ( ctx : * mut fz_context ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_path_s { _unused : [ u8 ; 0 ] , } pub type fz_path = fz_path_s ; pub type fz_stroke_state = fz_stroke_state_s ; pub const fz_linecap_e_FZ_LINECAP_BUTT : fz_linecap_e = 0 ; pub const fz_linecap_e_FZ_LINECAP_ROUND : fz_linecap_e = 1 ; pub const fz_linecap_e_FZ_LINECAP_SQUARE : fz_linecap_e = 2 ; pub const fz_linecap_e_FZ_LINECAP_TRIANGLE : fz_linecap_e = 3 ; pub type fz_linecap_e = u32 ; pub use self :: fz_linecap_e as fz_linecap ; pub const fz_linejoin_e_FZ_LINEJOIN_MITER : fz_linejoin_e = 0 ; pub const fz_linejoin_e_FZ_LINEJOIN_ROUND : fz_linejoin_e = 1 ; pub const fz_linejoin_e_FZ_LINEJOIN_BEVEL : fz_linejoin_e = 2 ; pub const fz_linejoin_e_FZ_LINEJOIN_MITER_XPS : fz_linejoin_e = 3 ; pub type fz_linejoin_e = u32 ; pub use self :: fz_linejoin_e as fz_linejoin ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_stroke_state_s { pub refs : :: std :: os :: raw :: c_int , pub start_cap : fz_linecap , pub dash_cap : fz_linecap , pub end_cap : fz_linecap , pub linejoin : fz_linejoin , pub linewidth : f32 , pub miterlimit : f32 , pub dash_phase : f32 , pub dash_len : :: std :: os :: raw :: c_int , pub dash_list : [ f32 ; 32usize ] , } # [ test ] fn bindgen_test_layout_fz_stroke_state_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_stroke_state_s > ( ) , 164usize , concat ! ( "Size of: " , stringify ! ( fz_stroke_state_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_stroke_state_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_stroke_state_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stroke_state_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_stroke_state_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stroke_state_s > ( ) ) ) . start_cap as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_stroke_state_s ) , "::" , stringify ! ( start_cap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stroke_state_s > ( ) ) ) . dash_cap as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_stroke_state_s ) , "::" , stringify ! ( dash_cap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stroke_state_s > ( ) ) ) . end_cap as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_stroke_state_s ) , "::" , stringify ! ( end_cap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stroke_state_s > ( ) ) ) . linejoin as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_stroke_state_s ) , "::" , stringify ! ( linejoin ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stroke_state_s > ( ) ) ) . linewidth as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( fz_stroke_state_s ) , "::" , stringify ! ( linewidth ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stroke_state_s > ( ) ) ) . miterlimit as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_stroke_state_s ) , "::" , stringify ! ( miterlimit ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stroke_state_s > ( ) ) ) . dash_phase as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( fz_stroke_state_s ) , "::" , stringify ! ( dash_phase ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stroke_state_s > ( ) ) ) . dash_len as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_stroke_state_s ) , "::" , stringify ! ( dash_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stroke_state_s > ( ) ) ) . dash_list as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( fz_stroke_state_s ) , "::" , stringify ! ( dash_list ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_path_walker { pub moveto : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg : * mut :: std :: os :: raw :: c_void , x : f32 , y : f32 ) > , pub lineto : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg : * mut :: std :: os :: raw :: c_void , x : f32 , y : f32 ) > , pub curveto : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg : * mut :: std :: os :: raw :: c_void , x1 : f32 , y1 : f32 , x2 : f32 , y2 : f32 , x3 : f32 , y3 : f32 ) > , pub closepath : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg : * mut :: std :: os :: raw :: c_void ) > , pub quadto : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg : * mut :: std :: os :: raw :: c_void , x1 : f32 , y1 : f32 , x2 : f32 , y2 : f32 ) > , pub curvetov : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg : * mut :: std :: os :: raw :: c_void , x2 : f32 , y2 : f32 , x3 : f32 , y3 : f32 ) > , pub curvetoy : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg : * mut :: std :: os :: raw :: c_void , x1 : f32 , y1 : f32 , x3 : f32 , y3 : f32 ) > , pub rectto : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , arg : * mut :: std :: os :: raw :: c_void , x1 : f32 , y1 : f32 , x2 : f32 , y2 : f32 ) > , } # [ test ] fn bindgen_test_layout_fz_path_walker ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_path_walker > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( fz_path_walker ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_path_walker > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_path_walker ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_path_walker > ( ) ) ) . moveto as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_path_walker ) , "::" , stringify ! ( moveto ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_path_walker > ( ) ) ) . lineto as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_path_walker ) , "::" , stringify ! ( lineto ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_path_walker > ( ) ) ) . curveto as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_path_walker ) , "::" , stringify ! ( curveto ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_path_walker > ( ) ) ) . closepath as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_path_walker ) , "::" , stringify ! ( closepath ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_path_walker > ( ) ) ) . quadto as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_path_walker ) , "::" , stringify ! ( quadto ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_path_walker > ( ) ) ) . curvetov as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_path_walker ) , "::" , stringify ! ( curvetov ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_path_walker > ( ) ) ) . curvetoy as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_path_walker ) , "::" , stringify ! ( curvetoy ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_path_walker > ( ) ) ) . rectto as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_path_walker ) , "::" , stringify ! ( rectto ) ) ) ; } extern "C" { pub fn fz_walk_path ( ctx : * mut fz_context , path : * const fz_path , walker : * const fz_path_walker , arg : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn fz_new_path ( ctx : * mut fz_context ) -> * mut fz_path ; } extern "C" { pub fn fz_keep_path ( ctx : * mut fz_context , path : * const fz_path ) -> * mut fz_path ; } extern "C" { pub fn fz_drop_path ( ctx : * mut fz_context , path : * const fz_path ) ; } extern "C" { pub fn fz_trim_path ( ctx : * mut fz_context , path : * mut fz_path ) ; } extern "C" { pub fn fz_packed_path_size ( path : * const fz_path ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_pack_path ( ctx : * mut fz_context , pack : * mut u8 , max : :: std :: os :: raw :: c_int , path : * const fz_path ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_clone_path ( ctx : * mut fz_context , path : * mut fz_path ) -> * mut fz_path ; } extern "C" { pub fn fz_currentpoint ( ctx : * mut fz_context , path : * mut fz_path ) -> fz_point ; } extern "C" { pub fn fz_moveto ( ctx : * mut fz_context , path : * mut fz_path , x : f32 , y : f32 ) ; } extern "C" { pub fn fz_lineto ( ctx : * mut fz_context , path : * mut fz_path , x : f32 , y : f32 ) ; } extern "C" { pub fn fz_rectto ( ctx : * mut fz_context , path : * mut fz_path , x0 : f32 , y0 : f32 , x1 : f32 , y1 : f32 ) ; } extern "C" { pub fn fz_quadto ( ctx : * mut fz_context , path : * mut fz_path , x0 : f32 , y0 : f32 , x1 : f32 , y1 : f32 ) ; } extern "C" { pub fn fz_curveto ( ctx : * mut fz_context , path : * mut fz_path , x0 : f32 , y0 : f32 , x1 : f32 , y1 : f32 , x2 : f32 , y2 : f32 ) ; } extern "C" { pub fn fz_curvetov ( ctx : * mut fz_context , path : * mut fz_path , x1 : f32 , y1 : f32 , x2 : f32 , y2 : f32 ) ; } extern "C" { pub fn fz_curvetoy ( ctx : * mut fz_context , path : * mut fz_path , x0 : f32 , y0 : f32 , x2 : f32 , y2 : f32 ) ; } extern "C" { pub fn fz_closepath ( ctx : * mut fz_context , path : * mut fz_path ) ; } extern "C" { pub fn fz_transform_path ( ctx : * mut fz_context , path : * mut fz_path , transform : fz_matrix ) ; } extern "C" { pub fn fz_bound_path ( ctx : * mut fz_context , path : * const fz_path , stroke : * const fz_stroke_state , ctm : fz_matrix ) -> fz_rect ; } extern "C" { pub fn fz_adjust_rect_for_stroke ( ctx : * mut fz_context , rect : fz_rect , stroke : * const fz_stroke_state , ctm : fz_matrix ) -> fz_rect ; } extern "C" { pub static fz_default_stroke_state : fz_stroke_state ; } extern "C" { pub fn fz_new_stroke_state ( ctx : * mut fz_context ) -> * mut fz_stroke_state ; } extern "C" { pub fn fz_new_stroke_state_with_dash_len ( ctx : * mut fz_context , len : :: std :: os :: raw :: c_int ) -> * mut fz_stroke_state ; } extern "C" { pub fn fz_keep_stroke_state ( ctx : * mut fz_context , stroke : * const fz_stroke_state ) -> * mut fz_stroke_state ; } extern "C" { pub fn fz_drop_stroke_state ( ctx : * mut fz_context , stroke : * const fz_stroke_state ) ; } extern "C" { pub fn fz_unshare_stroke_state ( ctx : * mut fz_context , shared : * mut fz_stroke_state ) -> * mut fz_stroke_state ; } extern "C" { pub fn fz_unshare_stroke_state_with_dash_len ( ctx : * mut fz_context , shared : * mut fz_stroke_state , len : :: std :: os :: raw :: c_int ) -> * mut fz_stroke_state ; } extern "C" { pub fn fz_clone_stroke_state ( ctx : * mut fz_context , stroke : * mut fz_stroke_state ) -> * mut fz_stroke_state ; } pub type fz_text = fz_text_s ; pub type fz_text_span = fz_text_span_s ; pub type fz_text_item = fz_text_item_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_text_item_s { pub x : f32 , pub y : f32 , pub gid : :: std :: os :: raw :: c_int , pub ucs : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_text_item_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_text_item_s > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( fz_text_item_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_text_item_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_text_item_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_item_s > ( ) ) ) . x as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_item_s ) , "::" , stringify ! ( x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_item_s > ( ) ) ) . y as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_item_s ) , "::" , stringify ! ( y ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_item_s > ( ) ) ) . gid as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_item_s ) , "::" , stringify ! ( gid ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_item_s > ( ) ) ) . ucs as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_item_s ) , "::" , stringify ! ( ucs ) ) ) ; } pub const fz_text_language_e_FZ_LANG_UNSET : fz_text_language_e = 0 ; pub const fz_text_language_e_FZ_LANG_ur : fz_text_language_e = 507 ; pub const fz_text_language_e_FZ_LANG_urd : fz_text_language_e = 3423 ; pub const fz_text_language_e_FZ_LANG_ko : fz_text_language_e = 416 ; pub const fz_text_language_e_FZ_LANG_ja : fz_text_language_e = 37 ; pub const fz_text_language_e_FZ_LANG_zh : fz_text_language_e = 242 ; pub const fz_text_language_e_FZ_LANG_zh_Hans : fz_text_language_e = 14093 ; pub const fz_text_language_e_FZ_LANG_zh_Hant : fz_text_language_e = 14822 ; pub type fz_text_language_e = u32 ; pub use self :: fz_text_language_e as fz_text_language ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_text_span_s { pub font : * mut fz_font , pub trm : fz_matrix , pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 4usize ] , u16 > , pub len : :: std :: os :: raw :: c_int , pub cap : :: std :: os :: raw :: c_int , pub items : * mut fz_text_item , pub next : * mut fz_text_span , } # [ test ] fn bindgen_test_layout_fz_text_span_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_text_span_s > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( fz_text_span_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_text_span_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_text_span_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_span_s > ( ) ) ) . font as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_span_s ) , "::" , stringify ! ( font ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_span_s > ( ) ) ) . trm as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_span_s ) , "::" , stringify ! ( trm ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_span_s > ( ) ) ) . len as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_span_s ) , "::" , stringify ! ( len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_span_s > ( ) ) ) . cap as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_span_s ) , "::" , stringify ! ( cap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_span_s > ( ) ) ) . items as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_span_s ) , "::" , stringify ! ( items ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_span_s > ( ) ) ) . next as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_span_s ) , "::" , stringify ! ( next ) ) ) ; } impl fz_text_span_s { # [ inline ] pub fn wmode ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 0usize , 1u8 ) as u32 ) } } # [ inline ] pub fn set_wmode ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 0usize , 1u8 , val as u64 ) } } # [ inline ] pub fn bidi_level ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 1usize , 7u8 ) as u32 ) } } # [ inline ] pub fn set_bidi_level ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 1usize , 7u8 , val as u64 ) } } # [ inline ] pub fn markup_dir ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 8usize , 2u8 ) as u32 ) } } # [ inline ] pub fn set_markup_dir ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 8usize , 2u8 , val as u64 ) } } # [ inline ] pub fn language ( & self ) -> :: std :: os :: raw :: c_uint { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 10usize , 15u8 ) as u32 ) } } # [ inline ] pub fn set_language ( & mut self , val : :: std :: os :: raw :: c_uint ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 10usize , 15u8 , val as u64 ) } } # [ inline ] pub fn new_bitfield_1 ( wmode : :: std :: os :: raw :: c_uint , bidi_level : :: std :: os :: raw :: c_uint , markup_dir : :: std :: os :: raw :: c_uint , language : :: std :: os :: raw :: c_uint ) -> __BindgenBitfieldUnit < [ u8 ; 4usize ] , u16 > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [ u8 ; 4usize ] , u16 > = Default :: default ( ) ; __bindgen_bitfield_unit . set ( 0usize , 1u8 , { let wmode : u32 = unsafe { :: std :: mem :: transmute ( wmode ) } ; wmode as u64 } ) ; __bindgen_bitfield_unit . set ( 1usize , 7u8 , { let bidi_level : u32 = unsafe { :: std :: mem :: transmute ( bidi_level ) } ; bidi_level as u64 } ) ; __bindgen_bitfield_unit . set ( 8usize , 2u8 , { let markup_dir : u32 = unsafe { :: std :: mem :: transmute ( markup_dir ) } ; markup_dir as u64 } ) ; __bindgen_bitfield_unit . set ( 10usize , 15u8 , { let language : u32 = unsafe { :: std :: mem :: transmute ( language ) } ; language as u64 } ) ; __bindgen_bitfield_unit } } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_text_s { pub refs : :: std :: os :: raw :: c_int , pub head : * mut fz_text_span , pub tail : * mut fz_text_span , } # [ test ] fn bindgen_test_layout_fz_text_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_text_s > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( fz_text_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_text_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_text_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_s > ( ) ) ) . head as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_s ) , "::" , stringify ! ( head ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_text_s > ( ) ) ) . tail as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_text_s ) , "::" , stringify ! ( tail ) ) ) ; } extern "C" { pub fn fz_new_text ( ctx : * mut fz_context ) -> * mut fz_text ; } extern "C" { pub fn fz_keep_text ( ctx : * mut fz_context , text : * const fz_text ) -> * mut fz_text ; } extern "C" { pub fn fz_drop_text ( ctx : * mut fz_context , text : * const fz_text ) ; } extern "C" { pub fn fz_show_glyph ( ctx : * mut fz_context , text : * mut fz_text , font : * mut fz_font , trm : fz_matrix , glyph : :: std :: os :: raw :: c_int , unicode : :: std :: os :: raw :: c_int , wmode : :: std :: os :: raw :: c_int , bidi_level : :: std :: os :: raw :: c_int , markup_dir : fz_bidi_direction , language : fz_text_language ) ; } extern "C" { pub fn fz_show_string ( ctx : * mut fz_context , text : * mut fz_text , font : * mut fz_font , trm : fz_matrix , s : * const :: std :: os :: raw :: c_char , wmode : :: std :: os :: raw :: c_int , bidi_level : :: std :: os :: raw :: c_int , markup_dir : fz_bidi_direction , language : fz_text_language ) -> fz_matrix ; } extern "C" { pub fn fz_bound_text ( ctx : * mut fz_context , text : * const fz_text , stroke : * const fz_stroke_state , ctm : fz_matrix ) -> fz_rect ; } extern "C" { pub fn fz_text_language_from_string ( str : * const :: std :: os :: raw :: c_char ) -> fz_text_language ; } extern "C" { pub fn fz_string_from_text_language ( str : * mut :: std :: os :: raw :: c_char , lang : fz_text_language ) -> * mut :: std :: os :: raw :: c_char ; } pub type fz_glyph = fz_glyph_s ; extern "C" { pub fn fz_glyph_bbox ( ctx : * mut fz_context , glyph : * mut fz_glyph ) -> fz_irect ; } extern "C" { pub fn fz_glyph_width ( ctx : * mut fz_context , glyph : * mut fz_glyph ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_glyph_height ( ctx : * mut fz_context , glyph : * mut fz_glyph ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_new_glyph_from_pixmap ( ctx : * mut fz_context , pix : * mut fz_pixmap ) -> * mut fz_glyph ; } extern "C" { pub fn fz_new_glyph_from_8bpp_data ( ctx : * mut fz_context , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , sp : * mut :: std :: os :: raw :: c_uchar , span : :: std :: os :: raw :: c_int ) -> * mut fz_glyph ; } extern "C" { pub fn fz_new_glyph_from_1bpp_data ( ctx : * mut fz_context , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , sp : * mut :: std :: os :: raw :: c_uchar , span : :: std :: os :: raw :: c_int ) -> * mut fz_glyph ; } extern "C" { pub fn fz_keep_glyph ( ctx : * mut fz_context , pix : * mut fz_glyph ) -> * mut fz_glyph ; } extern "C" { pub fn fz_drop_glyph ( ctx : * mut fz_context , pix : * mut fz_glyph ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_glyph_s { pub storable : fz_storable , pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , pub w : :: std :: os :: raw :: c_int , pub h : :: std :: os :: raw :: c_int , pub pixmap : * mut fz_pixmap , pub size : usize , pub data : [ :: std :: os :: raw :: c_uchar ; 1usize ] , } # [ test ] fn bindgen_test_layout_fz_glyph_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_glyph_s > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( fz_glyph_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_glyph_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_glyph_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_glyph_s > ( ) ) ) . storable as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_glyph_s ) , "::" , stringify ! ( storable ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_glyph_s > ( ) ) ) . x as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_glyph_s ) , "::" , stringify ! ( x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_glyph_s > ( ) ) ) . y as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( fz_glyph_s ) , "::" , stringify ! ( y ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_glyph_s > ( ) ) ) . w as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_glyph_s ) , "::" , stringify ! ( w ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_glyph_s > ( ) ) ) . h as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( fz_glyph_s ) , "::" , stringify ! ( h ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_glyph_s > ( ) ) ) . pixmap as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_glyph_s ) , "::" , stringify ! ( pixmap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_glyph_s > ( ) ) ) . size as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_glyph_s ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_glyph_s > ( ) ) ) . data as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_glyph_s ) , "::" , stringify ! ( data ) ) ) ; } extern "C" { pub fn fz_glyph_bbox_no_ctx ( src : * mut fz_glyph ) -> fz_irect ; } extern "C" { pub fn fz_outline_glyph ( ctx : * mut fz_context , font : * mut fz_font , gid : :: std :: os :: raw :: c_int , ctm : fz_matrix ) -> * mut fz_path ; } extern "C" { pub fn fz_outline_ft_glyph ( ctx : * mut fz_context , font : * mut fz_font , gid : :: std :: os :: raw :: c_int , trm : fz_matrix ) -> * mut fz_path ; } extern "C" { pub fn fz_render_ft_glyph ( ctx : * mut fz_context , font : * mut fz_font , cid : :: std :: os :: raw :: c_int , trm : fz_matrix , aa : :: std :: os :: raw :: c_int ) -> * mut fz_glyph ; } extern "C" { pub fn fz_render_ft_glyph_pixmap ( ctx : * mut fz_context , font : * mut fz_font , cid : :: std :: os :: raw :: c_int , trm : fz_matrix , aa : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_render_t3_glyph ( ctx : * mut fz_context , font : * mut fz_font , cid : :: std :: os :: raw :: c_int , trm : fz_matrix , model : * mut fz_colorspace , scissor : * const fz_irect , aa : :: std :: os :: raw :: c_int ) -> * mut fz_glyph ; } extern "C" { pub fn fz_render_t3_glyph_pixmap ( ctx : * mut fz_context , font : * mut fz_font , cid : :: std :: os :: raw :: c_int , trm : fz_matrix , model : * mut fz_colorspace , scissor : * const fz_irect , aa : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_render_ft_stroked_glyph ( ctx : * mut fz_context , font : * mut fz_font , gid : :: std :: os :: raw :: c_int , trm : fz_matrix , ctm : fz_matrix , state : * const fz_stroke_state , aa : :: std :: os :: raw :: c_int ) -> * mut fz_glyph ; } extern "C" { pub fn fz_render_ft_stroked_glyph_pixmap ( ctx : * mut fz_context , font : * mut fz_font , gid : :: std :: os :: raw :: c_int , trm : fz_matrix , ctm : fz_matrix , state : * const fz_stroke_state , aa : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_render_glyph ( ctx : * mut fz_context , arg1 : * mut fz_font , gid : :: std :: os :: raw :: c_int , arg2 : * mut fz_matrix , model : * mut fz_colorspace , scissor : * const fz_irect , alpha : :: std :: os :: raw :: c_int , aa : :: std :: os :: raw :: c_int ) -> * mut fz_glyph ; } extern "C" { pub fn fz_render_stroked_glyph ( ctx : * mut fz_context , arg1 : * mut fz_font , arg2 : :: std :: os :: raw :: c_int , arg3 : * mut fz_matrix , arg4 : fz_matrix , stroke : * const fz_stroke_state , scissor : * const fz_irect , aa : :: std :: os :: raw :: c_int ) -> * mut fz_glyph ; } extern "C" { pub fn fz_render_stroked_glyph_pixmap ( ctx : * mut fz_context , arg1 : * mut fz_font , arg2 : :: std :: os :: raw :: c_int , arg3 : * mut fz_matrix , arg4 : fz_matrix , stroke : * const fz_stroke_state , scissor : * const fz_irect , aa : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } pub type fz_device = fz_device_s ; pub const FZ_DEVFLAG_MASK : _bindgen_ty_13 = 1 ; pub const FZ_DEVFLAG_COLOR : _bindgen_ty_13 = 2 ; pub const FZ_DEVFLAG_UNCACHEABLE : _bindgen_ty_13 = 4 ; pub const FZ_DEVFLAG_FILLCOLOR_UNDEFINED : _bindgen_ty_13 = 8 ; pub const FZ_DEVFLAG_STROKECOLOR_UNDEFINED : _bindgen_ty_13 = 16 ; pub const FZ_DEVFLAG_STARTCAP_UNDEFINED : _bindgen_ty_13 = 32 ; pub const FZ_DEVFLAG_DASHCAP_UNDEFINED : _bindgen_ty_13 = 64 ; pub const FZ_DEVFLAG_ENDCAP_UNDEFINED : _bindgen_ty_13 = 128 ; pub const FZ_DEVFLAG_LINEJOIN_UNDEFINED : _bindgen_ty_13 = 256 ; pub const FZ_DEVFLAG_MITERLIMIT_UNDEFINED : _bindgen_ty_13 = 512 ; pub const FZ_DEVFLAG_LINEWIDTH_UNDEFINED : _bindgen_ty_13 = 1024 ; pub const FZ_DEVFLAG_BBOX_DEFINED : _bindgen_ty_13 = 2048 ; pub const FZ_DEVFLAG_GRIDFIT_AS_TILED : _bindgen_ty_13 = 4096 ; pub type _bindgen_ty_13 = u32 ; pub const FZ_BLEND_NORMAL : _bindgen_ty_14 = 0 ; pub const FZ_BLEND_MULTIPLY : _bindgen_ty_14 = 1 ; pub const FZ_BLEND_SCREEN : _bindgen_ty_14 = 2 ; pub const FZ_BLEND_OVERLAY : _bindgen_ty_14 = 3 ; pub const FZ_BLEND_DARKEN : _bindgen_ty_14 = 4 ; pub const FZ_BLEND_LIGHTEN : _bindgen_ty_14 = 5 ; pub const FZ_BLEND_COLOR_DODGE : _bindgen_ty_14 = 6 ; pub const FZ_BLEND_COLOR_BURN : _bindgen_ty_14 = 7 ; pub const FZ_BLEND_HARD_LIGHT : _bindgen_ty_14 = 8 ; pub const FZ_BLEND_SOFT_LIGHT : _bindgen_ty_14 = 9 ; pub const FZ_BLEND_DIFFERENCE : _bindgen_ty_14 = 10 ; pub const FZ_BLEND_EXCLUSION : _bindgen_ty_14 = 11 ; pub const FZ_BLEND_HUE : _bindgen_ty_14 = 12 ; pub const FZ_BLEND_SATURATION : _bindgen_ty_14 = 13 ; pub const FZ_BLEND_COLOR : _bindgen_ty_14 = 14 ; pub const FZ_BLEND_LUMINOSITY : _bindgen_ty_14 = 15 ; pub const FZ_BLEND_MODEMASK : _bindgen_ty_14 = 15 ; pub const FZ_BLEND_ISOLATED : _bindgen_ty_14 = 16 ; pub const FZ_BLEND_KNOCKOUT : _bindgen_ty_14 = 32 ; pub type _bindgen_ty_14 = u32 ; extern "C" { pub fn fz_lookup_blendmode ( name : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_blendmode_name ( blendmode : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_char ; } pub type fz_device_container_stack = fz_device_container_stack_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_device_container_stack_s { pub scissor : fz_rect , pub type_ : :: std :: os :: raw :: c_int , pub user : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_device_container_stack_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_device_container_stack_s > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( fz_device_container_stack_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_device_container_stack_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_device_container_stack_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_container_stack_s > ( ) ) ) . scissor as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_container_stack_s ) , "::" , stringify ! ( scissor ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_container_stack_s > ( ) ) ) . type_ as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_container_stack_s ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_container_stack_s > ( ) ) ) . user as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_container_stack_s ) , "::" , stringify ! ( user ) ) ) ; } pub const fz_device_container_stack_is_clip : _bindgen_ty_15 = 0 ; pub const fz_device_container_stack_is_mask : _bindgen_ty_15 = 1 ; pub const fz_device_container_stack_is_group : _bindgen_ty_15 = 2 ; pub const fz_device_container_stack_is_tile : _bindgen_ty_15 = 3 ; pub type _bindgen_ty_15 = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_device_s { pub refs : :: std :: os :: raw :: c_int , pub hints : :: std :: os :: raw :: c_int , pub flags : :: std :: os :: raw :: c_int , pub close_device : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device ) > , pub drop_device : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device ) > , pub fill_path : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , arg3 : * const fz_path , even_odd : :: std :: os :: raw :: c_int , arg4 : fz_matrix , arg5 : * mut fz_colorspace , color : * const f32 , alpha : f32 , arg6 : fz_color_params ) > , pub stroke_path : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , arg3 : * const fz_path , arg4 : * const fz_stroke_state , arg5 : fz_matrix , arg6 : * mut fz_colorspace , color : * const f32 , alpha : f32 , arg7 : fz_color_params ) > , pub clip_path : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , arg3 : * const fz_path , even_odd : :: std :: os :: raw :: c_int , arg4 : fz_matrix , scissor : fz_rect ) > , pub clip_stroke_path : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , arg3 : * const fz_path , arg4 : * const fz_stroke_state , arg5 : fz_matrix , scissor : fz_rect ) > , pub fill_text : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , arg3 : * const fz_text , arg4 : fz_matrix , arg5 : * mut fz_colorspace , color : * const f32 , alpha : f32 , arg6 : fz_color_params ) > , pub stroke_text : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , arg3 : * const fz_text , arg4 : * const fz_stroke_state , arg5 : fz_matrix , arg6 : * mut fz_colorspace , color : * const f32 , alpha : f32 , arg7 : fz_color_params ) > , pub clip_text : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , arg3 : * const fz_text , arg4 : fz_matrix , scissor : fz_rect ) > , pub clip_stroke_text : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , arg3 : * const fz_text , arg4 : * const fz_stroke_state , arg5 : fz_matrix , scissor : fz_rect ) > , pub ignore_text : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , arg3 : * const fz_text , arg4 : fz_matrix ) > , pub fill_shade : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , shd : * mut fz_shade , ctm : fz_matrix , alpha : f32 , color_params : fz_color_params ) > , pub fill_image : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , img : * mut fz_image , ctm : fz_matrix , alpha : f32 , color_params : fz_color_params ) > , pub fill_image_mask : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , img : * mut fz_image , ctm : fz_matrix , arg3 : * mut fz_colorspace , color : * const f32 , alpha : f32 , color_params : fz_color_params ) > , pub clip_image_mask : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , img : * mut fz_image , ctm : fz_matrix , scissor : fz_rect ) > , pub pop_clip : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device ) > , pub begin_mask : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , area : fz_rect , luminosity : :: std :: os :: raw :: c_int , arg3 : * mut fz_colorspace , bc : * const f32 , arg4 : fz_color_params ) > , pub end_mask : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device ) > , pub begin_group : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , area : fz_rect , cs : * mut fz_colorspace , isolated : :: std :: os :: raw :: c_int , knockout : :: std :: os :: raw :: c_int , blendmode : :: std :: os :: raw :: c_int , alpha : f32 ) > , pub end_group : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device ) > , pub begin_tile : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , area : fz_rect , view : fz_rect , xstep : f32 , ystep : f32 , ctm : fz_matrix , id : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int > , pub end_tile : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device ) > , pub render_flags : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , set : :: std :: os :: raw :: c_int , clear : :: std :: os :: raw :: c_int ) > , pub set_default_colorspaces : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , arg3 : * mut fz_default_colorspaces ) > , pub begin_layer : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device , layer_name : * const :: std :: os :: raw :: c_char ) > , pub end_layer : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut fz_device ) > , pub d1_rect : fz_rect , pub container_len : :: std :: os :: raw :: c_int , pub container_cap : :: std :: os :: raw :: c_int , pub container : * mut fz_device_container_stack , } # [ test ] fn bindgen_test_layout_fz_device_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_device_s > ( ) , 256usize , concat ! ( "Size of: " , stringify ! ( fz_device_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_device_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_device_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . hints as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( hints ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . flags as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . close_device as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( close_device ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . drop_device as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( drop_device ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . fill_path as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( fill_path ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . stroke_path as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( stroke_path ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . clip_path as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( clip_path ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . clip_stroke_path as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( clip_stroke_path ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . fill_text as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( fill_text ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . stroke_text as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( stroke_text ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . clip_text as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( clip_text ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . clip_stroke_text as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( clip_stroke_text ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . ignore_text as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( ignore_text ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . fill_shade as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( fill_shade ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . fill_image as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( fill_image ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . fill_image_mask as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( fill_image_mask ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . clip_image_mask as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( clip_image_mask ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . pop_clip as * const _ as usize } , 136usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( pop_clip ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . begin_mask as * const _ as usize } , 144usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( begin_mask ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . end_mask as * const _ as usize } , 152usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( end_mask ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . begin_group as * const _ as usize } , 160usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( begin_group ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . end_group as * const _ as usize } , 168usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( end_group ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . begin_tile as * const _ as usize } , 176usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( begin_tile ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . end_tile as * const _ as usize } , 184usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( end_tile ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . render_flags as * const _ as usize } , 192usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( render_flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . set_default_colorspaces as * const _ as usize } , 200usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( set_default_colorspaces ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . begin_layer as * const _ as usize } , 208usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( begin_layer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . end_layer as * const _ as usize } , 216usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( end_layer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . d1_rect as * const _ as usize } , 224usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( d1_rect ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . container_len as * const _ as usize } , 240usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( container_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . container_cap as * const _ as usize } , 244usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( container_cap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_device_s > ( ) ) ) . container as * const _ as usize } , 248usize , concat ! ( "Offset of field: " , stringify ! ( fz_device_s ) , "::" , stringify ! ( container ) ) ) ; } extern "C" { pub fn fz_fill_path ( ctx : * mut fz_context , dev : * mut fz_device , path : * const fz_path , even_odd : :: std :: os :: raw :: c_int , ctm : fz_matrix , colorspace : * mut fz_colorspace , color : * const f32 , alpha : f32 , color_params : fz_color_params ) ; } extern "C" { pub fn fz_stroke_path ( ctx : * mut fz_context , dev : * mut fz_device , path : * const fz_path , stroke : * const fz_stroke_state , ctm : fz_matrix , colorspace : * mut fz_colorspace , color : * const f32 , alpha : f32 , color_params : fz_color_params ) ; } extern "C" { pub fn fz_clip_path ( ctx : * mut fz_context , dev : * mut fz_device , path : * const fz_path , even_odd : :: std :: os :: raw :: c_int , ctm : fz_matrix , scissor : fz_rect ) ; } extern "C" { pub fn fz_clip_stroke_path ( ctx : * mut fz_context , dev : * mut fz_device , path : * const fz_path , stroke : * const fz_stroke_state , ctm : fz_matrix , scissor : fz_rect ) ; } extern "C" { pub fn fz_fill_text ( ctx : * mut fz_context , dev : * mut fz_device , text : * const fz_text , ctm : fz_matrix , colorspace : * mut fz_colorspace , color : * const f32 , alpha : f32 , color_params : fz_color_params ) ; } extern "C" { pub fn fz_stroke_text ( ctx : * mut fz_context , dev : * mut fz_device , text : * const fz_text , stroke : * const fz_stroke_state , ctm : fz_matrix , colorspace : * mut fz_colorspace , color : * const f32 , alpha : f32 , color_params : fz_color_params ) ; } extern "C" { pub fn fz_clip_text ( ctx : * mut fz_context , dev : * mut fz_device , text : * const fz_text , ctm : fz_matrix , scissor : fz_rect ) ; } extern "C" { pub fn fz_clip_stroke_text ( ctx : * mut fz_context , dev : * mut fz_device , text : * const fz_text , stroke : * const fz_stroke_state , ctm : fz_matrix , scissor : fz_rect ) ; } extern "C" { pub fn fz_ignore_text ( ctx : * mut fz_context , dev : * mut fz_device , text : * const fz_text , ctm : fz_matrix ) ; } extern "C" { pub fn fz_pop_clip ( ctx : * mut fz_context , dev : * mut fz_device ) ; } extern "C" { pub fn fz_fill_shade ( ctx : * mut fz_context , dev : * mut fz_device , shade : * mut fz_shade , ctm : fz_matrix , alpha : f32 , color_params : fz_color_params ) ; } extern "C" { pub fn fz_fill_image ( ctx : * mut fz_context , dev : * mut fz_device , image : * mut fz_image , ctm : fz_matrix , alpha : f32 , color_params : fz_color_params ) ; } extern "C" { pub fn fz_fill_image_mask ( ctx : * mut fz_context , dev : * mut fz_device , image : * mut fz_image , ctm : fz_matrix , colorspace : * mut fz_colorspace , color : * const f32 , alpha : f32 , color_params : fz_color_params ) ; } extern "C" { pub fn fz_clip_image_mask ( ctx : * mut fz_context , dev : * mut fz_device , image : * mut fz_image , ctm : fz_matrix , scissor : fz_rect ) ; } extern "C" { pub fn fz_begin_mask ( ctx : * mut fz_context , dev : * mut fz_device , area : fz_rect , luminosity : :: std :: os :: raw :: c_int , colorspace : * mut fz_colorspace , bc : * const f32 , color_params : fz_color_params ) ; } extern "C" { pub fn fz_end_mask ( ctx : * mut fz_context , dev : * mut fz_device ) ; } extern "C" { pub fn fz_begin_group ( ctx : * mut fz_context , dev : * mut fz_device , area : fz_rect , cs : * mut fz_colorspace , isolated : :: std :: os :: raw :: c_int , knockout : :: std :: os :: raw :: c_int , blendmode : :: std :: os :: raw :: c_int , alpha : f32 ) ; } extern "C" { pub fn fz_end_group ( ctx : * mut fz_context , dev : * mut fz_device ) ; } extern "C" { pub fn fz_begin_tile ( ctx : * mut fz_context , dev : * mut fz_device , area : fz_rect , view : fz_rect , xstep : f32 , ystep : f32 , ctm : fz_matrix ) ; } extern "C" { pub fn fz_begin_tile_id ( ctx : * mut fz_context , dev : * mut fz_device , area : fz_rect , view : fz_rect , xstep : f32 , ystep : f32 , ctm : fz_matrix , id : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_end_tile ( ctx : * mut fz_context , dev : * mut fz_device ) ; } extern "C" { pub fn fz_render_flags ( ctx : * mut fz_context , dev : * mut fz_device , set : :: std :: os :: raw :: c_int , clear : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_set_default_colorspaces ( ctx : * mut fz_context , dev : * mut fz_device , default_cs : * mut fz_default_colorspaces ) ; } extern "C" { pub fn fz_begin_layer ( ctx : * mut fz_context , dev : * mut fz_device , layer_name : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_end_layer ( ctx : * mut fz_context , dev : * mut fz_device ) ; } extern "C" { pub fn fz_new_device_of_size ( ctx : * mut fz_context , size : :: std :: os :: raw :: c_int ) -> * mut fz_device ; } extern "C" { pub fn fz_close_device ( ctx : * mut fz_context , dev : * mut fz_device ) ; } extern "C" { pub fn fz_drop_device ( ctx : * mut fz_context , dev : * mut fz_device ) ; } extern "C" { pub fn fz_keep_device ( ctx : * mut fz_context , dev : * mut fz_device ) -> * mut fz_device ; } extern "C" { pub fn fz_enable_device_hints ( ctx : * mut fz_context , dev : * mut fz_device , hints : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_disable_device_hints ( ctx : * mut fz_context , dev : * mut fz_device , hints : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_device_current_scissor ( ctx : * mut fz_context , dev : * mut fz_device ) -> fz_rect ; } pub const FZ_DONT_INTERPOLATE_IMAGES : _bindgen_ty_16 = 1 ; pub const FZ_NO_CACHE : _bindgen_ty_16 = 2 ; pub type _bindgen_ty_16 = u32 ; pub type fz_cookie = fz_cookie_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_cookie_s { pub abort : :: std :: os :: raw :: c_int , pub progress : :: std :: os :: raw :: c_int , pub progress_max : :: std :: os :: raw :: c_int , pub errors : :: std :: os :: raw :: c_int , pub incomplete : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_cookie_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_cookie_s > ( ) , 20usize , concat ! ( "Size of: " , stringify ! ( fz_cookie_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_cookie_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_cookie_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_cookie_s > ( ) ) ) . abort as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_cookie_s ) , "::" , stringify ! ( abort ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_cookie_s > ( ) ) ) . progress as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_cookie_s ) , "::" , stringify ! ( progress ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_cookie_s > ( ) ) ) . progress_max as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_cookie_s ) , "::" , stringify ! ( progress_max ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_cookie_s > ( ) ) ) . errors as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_cookie_s ) , "::" , stringify ! ( errors ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_cookie_s > ( ) ) ) . incomplete as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_cookie_s ) , "::" , stringify ! ( incomplete ) ) ) ; } extern "C" { pub fn fz_new_trace_device ( ctx : * mut fz_context , out : * mut fz_output ) -> * mut fz_device ; } extern "C" { pub fn fz_new_bbox_device ( ctx : * mut fz_context , rectp : * mut fz_rect ) -> * mut fz_device ; } extern "C" { pub fn fz_new_test_device ( ctx : * mut fz_context , is_color : * mut :: std :: os :: raw :: c_int , threshold : f32 , options : :: std :: os :: raw :: c_int , passthrough : * mut fz_device ) -> * mut fz_device ; } pub const FZ_TEST_OPT_IMAGES : _bindgen_ty_17 = 1 ; pub const FZ_TEST_OPT_SHADINGS : _bindgen_ty_17 = 2 ; pub type _bindgen_ty_17 = u32 ; extern "C" { pub fn fz_new_draw_device ( ctx : * mut fz_context , transform : fz_matrix , dest : * mut fz_pixmap ) -> * mut fz_device ; } extern "C" { pub fn fz_new_draw_device_with_bbox ( ctx : * mut fz_context , transform : fz_matrix , dest : * mut fz_pixmap , clip : * const fz_irect ) -> * mut fz_device ; } extern "C" { pub fn fz_new_draw_device_with_proof ( ctx : * mut fz_context , transform : fz_matrix , dest : * mut fz_pixmap , proof_cs : * mut fz_colorspace ) -> * mut fz_device ; } extern "C" { pub fn fz_new_draw_device_with_bbox_proof ( ctx : * mut fz_context , transform : fz_matrix , dest : * mut fz_pixmap , clip : * const fz_irect , cs : * mut fz_colorspace ) -> * mut fz_device ; } extern "C" { pub fn fz_new_draw_device_type3 ( ctx : * mut fz_context , transform : fz_matrix , dest : * mut fz_pixmap ) -> * mut fz_device ; } pub type fz_draw_options = fz_draw_options_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_draw_options_s { pub rotate : :: std :: os :: raw :: c_int , pub x_resolution : :: std :: os :: raw :: c_int , pub y_resolution : :: std :: os :: raw :: c_int , pub width : :: std :: os :: raw :: c_int , pub height : :: std :: os :: raw :: c_int , pub colorspace : * mut fz_colorspace , pub alpha : :: std :: os :: raw :: c_int , pub graphics : :: std :: os :: raw :: c_int , pub text : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_draw_options_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_draw_options_s > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( fz_draw_options_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_draw_options_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_draw_options_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_draw_options_s > ( ) ) ) . rotate as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_draw_options_s ) , "::" , stringify ! ( rotate ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_draw_options_s > ( ) ) ) . x_resolution as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_draw_options_s ) , "::" , stringify ! ( x_resolution ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_draw_options_s > ( ) ) ) . y_resolution as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_draw_options_s ) , "::" , stringify ! ( y_resolution ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_draw_options_s > ( ) ) ) . width as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_draw_options_s ) , "::" , stringify ! ( width ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_draw_options_s > ( ) ) ) . height as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_draw_options_s ) , "::" , stringify ! ( height ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_draw_options_s > ( ) ) ) . colorspace as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_draw_options_s ) , "::" , stringify ! ( colorspace ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_draw_options_s > ( ) ) ) . alpha as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_draw_options_s ) , "::" , stringify ! ( alpha ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_draw_options_s > ( ) ) ) . graphics as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( fz_draw_options_s ) , "::" , stringify ! ( graphics ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_draw_options_s > ( ) ) ) . text as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_draw_options_s ) , "::" , stringify ! ( text ) ) ) ; } extern "C" { pub static mut fz_draw_options_usage : * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_parse_draw_options ( ctx : * mut fz_context , options : * mut fz_draw_options , string : * const :: std :: os :: raw :: c_char ) -> * mut fz_draw_options ; } extern "C" { pub fn fz_new_draw_device_with_options ( ctx : * mut fz_context , options : * const fz_draw_options , mediabox : fz_rect , pixmap : * mut * mut fz_pixmap ) -> * mut fz_device ; } pub type fz_display_list = fz_display_list_s ; extern "C" { pub fn fz_new_display_list ( ctx : * mut fz_context , mediabox : fz_rect ) -> * mut fz_display_list ; } extern "C" { pub fn fz_new_list_device ( ctx : * mut fz_context , list : * mut fz_display_list ) -> * mut fz_device ; } extern "C" { pub fn fz_run_display_list ( ctx : * mut fz_context , list : * mut fz_display_list , dev : * mut fz_device , ctm : fz_matrix , scissor : fz_rect , cookie : * mut fz_cookie ) ; } extern "C" { pub fn fz_keep_display_list ( ctx : * mut fz_context , list : * mut fz_display_list ) -> * mut fz_display_list ; } extern "C" { pub fn fz_drop_display_list ( ctx : * mut fz_context , list : * mut fz_display_list ) ; } extern "C" { pub fn fz_bound_display_list ( ctx : * mut fz_context , list : * mut fz_display_list ) -> fz_rect ; } extern "C" { pub fn fz_new_image_from_display_list ( ctx : * mut fz_context , w : f32 , h : f32 , list : * mut fz_display_list ) -> * mut fz_image ; } extern "C" { pub fn fz_display_list_is_empty ( ctx : * mut fz_context , list : * const fz_display_list ) -> :: std :: os :: raw :: c_int ; } pub type fz_layout_char = fz_layout_char_s ; pub type fz_layout_line = fz_layout_line_s ; pub type fz_layout_block = fz_layout_block_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_layout_char_s { pub x : f32 , pub w : f32 , pub p : * const :: std :: os :: raw :: c_char , pub next : * mut fz_layout_char , } # [ test ] fn bindgen_test_layout_fz_layout_char_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_layout_char_s > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( fz_layout_char_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_layout_char_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_layout_char_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_char_s > ( ) ) ) . x as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_char_s ) , "::" , stringify ! ( x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_char_s > ( ) ) ) . w as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_char_s ) , "::" , stringify ! ( w ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_char_s > ( ) ) ) . p as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_char_s ) , "::" , stringify ! ( p ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_char_s > ( ) ) ) . next as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_char_s ) , "::" , stringify ! ( next ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_layout_line_s { pub x : f32 , pub y : f32 , pub h : f32 , pub p : * const :: std :: os :: raw :: c_char , pub text : * mut fz_layout_char , pub next : * mut fz_layout_line , } # [ test ] fn bindgen_test_layout_fz_layout_line_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_layout_line_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( fz_layout_line_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_layout_line_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_layout_line_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_line_s > ( ) ) ) . x as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_line_s ) , "::" , stringify ! ( x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_line_s > ( ) ) ) . y as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_line_s ) , "::" , stringify ! ( y ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_line_s > ( ) ) ) . h as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_line_s ) , "::" , stringify ! ( h ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_line_s > ( ) ) ) . p as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_line_s ) , "::" , stringify ! ( p ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_line_s > ( ) ) ) . text as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_line_s ) , "::" , stringify ! ( text ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_line_s > ( ) ) ) . next as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_line_s ) , "::" , stringify ! ( next ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_layout_block_s { pub pool : * mut fz_pool , pub matrix : fz_matrix , pub inv_matrix : fz_matrix , pub head : * mut fz_layout_line , pub tailp : * mut * mut fz_layout_line , pub text_tailp : * mut * mut fz_layout_char , } # [ test ] fn bindgen_test_layout_fz_layout_block_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_layout_block_s > ( ) , 80usize , concat ! ( "Size of: " , stringify ! ( fz_layout_block_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_layout_block_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_layout_block_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_block_s > ( ) ) ) . pool as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_block_s ) , "::" , stringify ! ( pool ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_block_s > ( ) ) ) . matrix as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_block_s ) , "::" , stringify ! ( matrix ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_block_s > ( ) ) ) . inv_matrix as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_block_s ) , "::" , stringify ! ( inv_matrix ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_block_s > ( ) ) ) . head as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_block_s ) , "::" , stringify ! ( head ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_block_s > ( ) ) ) . tailp as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_block_s ) , "::" , stringify ! ( tailp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_layout_block_s > ( ) ) ) . text_tailp as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fz_layout_block_s ) , "::" , stringify ! ( text_tailp ) ) ) ; } extern "C" { pub fn fz_new_layout ( ctx : * mut fz_context ) -> * mut fz_layout_block ; } extern "C" { pub fn fz_drop_layout ( ctx : * mut fz_context , block : * mut fz_layout_block ) ; } extern "C" { pub fn fz_add_layout_line ( ctx : * mut fz_context , block : * mut fz_layout_block , x : f32 , y : f32 , h : f32 , p : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_add_layout_char ( ctx : * mut fz_context , block : * mut fz_layout_block , x : f32 , w : f32 , p : * const :: std :: os :: raw :: c_char ) ; } pub type fz_stext_char = fz_stext_char_s ; pub type fz_stext_line = fz_stext_line_s ; pub type fz_stext_block = fz_stext_block_s ; pub type fz_stext_page = fz_stext_page_s ; pub const FZ_STEXT_PRESERVE_LIGATURES : _bindgen_ty_18 = 1 ; pub const FZ_STEXT_PRESERVE_WHITESPACE : _bindgen_ty_18 = 2 ; pub const FZ_STEXT_PRESERVE_IMAGES : _bindgen_ty_18 = 4 ; pub const FZ_STEXT_INHIBIT_SPACES : _bindgen_ty_18 = 8 ; pub type _bindgen_ty_18 = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_stext_page_s { pub pool : * mut fz_pool , pub mediabox : fz_rect , pub first_block : * mut fz_stext_block , pub last_block : * mut fz_stext_block , } # [ test ] fn bindgen_test_layout_fz_stext_page_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_stext_page_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( fz_stext_page_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_stext_page_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_stext_page_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_page_s > ( ) ) ) . pool as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_page_s ) , "::" , stringify ! ( pool ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_page_s > ( ) ) ) . mediabox as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_page_s ) , "::" , stringify ! ( mediabox ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_page_s > ( ) ) ) . first_block as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_page_s ) , "::" , stringify ! ( first_block ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_page_s > ( ) ) ) . last_block as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_page_s ) , "::" , stringify ! ( last_block ) ) ) ; } pub const FZ_STEXT_BLOCK_TEXT : _bindgen_ty_19 = 0 ; pub const FZ_STEXT_BLOCK_IMAGE : _bindgen_ty_19 = 1 ; pub type _bindgen_ty_19 = u32 ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_stext_block_s { pub type_ : :: std :: os :: raw :: c_int , pub bbox : fz_rect , pub u : fz_stext_block_s__bindgen_ty_1 , pub prev : * mut fz_stext_block , pub next : * mut fz_stext_block , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union fz_stext_block_s__bindgen_ty_1 { pub t : fz_stext_block_s__bindgen_ty_1__bindgen_ty_1 , pub i : fz_stext_block_s__bindgen_ty_1__bindgen_ty_2 , _bindgen_union_align : [ u64 ; 4usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_stext_block_s__bindgen_ty_1__bindgen_ty_1 { pub first_line : * mut fz_stext_line , pub last_line : * mut fz_stext_line , } # [ test ] fn bindgen_test_layout_fz_stext_block_s__bindgen_ty_1__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_stext_block_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( fz_stext_block_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_stext_block_s__bindgen_ty_1__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_stext_block_s__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_block_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . first_line as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_block_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( first_line ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_block_s__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . last_line as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_block_s__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( last_line ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_stext_block_s__bindgen_ty_1__bindgen_ty_2 { pub transform : fz_matrix , pub image : * mut fz_image , } # [ test ] fn bindgen_test_layout_fz_stext_block_s__bindgen_ty_1__bindgen_ty_2 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_stext_block_s__bindgen_ty_1__bindgen_ty_2 > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( fz_stext_block_s__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_stext_block_s__bindgen_ty_1__bindgen_ty_2 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_stext_block_s__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_block_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . transform as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_block_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( transform ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_block_s__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . image as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_block_s__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( image ) ) ) ; } # [ test ] fn bindgen_test_layout_fz_stext_block_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_stext_block_s__bindgen_ty_1 > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( fz_stext_block_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_stext_block_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_stext_block_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_block_s__bindgen_ty_1 > ( ) ) ) . t as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_block_s__bindgen_ty_1 ) , "::" , stringify ! ( t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_block_s__bindgen_ty_1 > ( ) ) ) . i as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_block_s__bindgen_ty_1 ) , "::" , stringify ! ( i ) ) ) ; } # [ test ] fn bindgen_test_layout_fz_stext_block_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_stext_block_s > ( ) , 72usize , concat ! ( "Size of: " , stringify ! ( fz_stext_block_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_stext_block_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_stext_block_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_block_s > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_block_s ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_block_s > ( ) ) ) . bbox as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_block_s ) , "::" , stringify ! ( bbox ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_block_s > ( ) ) ) . u as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_block_s ) , "::" , stringify ! ( u ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_block_s > ( ) ) ) . prev as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_block_s ) , "::" , stringify ! ( prev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_block_s > ( ) ) ) . next as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_block_s ) , "::" , stringify ! ( next ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_stext_line_s { pub wmode : :: std :: os :: raw :: c_int , pub dir : fz_point , pub bbox : fz_rect , pub first_char : * mut fz_stext_char , pub last_char : * mut fz_stext_char , pub prev : * mut fz_stext_line , pub next : * mut fz_stext_line , } # [ test ] fn bindgen_test_layout_fz_stext_line_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_stext_line_s > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( fz_stext_line_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_stext_line_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_stext_line_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_line_s > ( ) ) ) . wmode as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_line_s ) , "::" , stringify ! ( wmode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_line_s > ( ) ) ) . dir as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_line_s ) , "::" , stringify ! ( dir ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_line_s > ( ) ) ) . bbox as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_line_s ) , "::" , stringify ! ( bbox ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_line_s > ( ) ) ) . first_char as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_line_s ) , "::" , stringify ! ( first_char ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_line_s > ( ) ) ) . last_char as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_line_s ) , "::" , stringify ! ( last_char ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_line_s > ( ) ) ) . prev as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_line_s ) , "::" , stringify ! ( prev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_line_s > ( ) ) ) . next as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_line_s ) , "::" , stringify ! ( next ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_stext_char_s { pub c : :: std :: os :: raw :: c_int , pub color : :: std :: os :: raw :: c_int , pub origin : fz_point , pub quad : fz_quad , pub size : f32 , pub font : * mut fz_font , pub next : * mut fz_stext_char , } # [ test ] fn bindgen_test_layout_fz_stext_char_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_stext_char_s > ( ) , 72usize , concat ! ( "Size of: " , stringify ! ( fz_stext_char_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_stext_char_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_stext_char_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_char_s > ( ) ) ) . c as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_char_s ) , "::" , stringify ! ( c ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_char_s > ( ) ) ) . color as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_char_s ) , "::" , stringify ! ( color ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_char_s > ( ) ) ) . origin as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_char_s ) , "::" , stringify ! ( origin ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_char_s > ( ) ) ) . quad as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_char_s ) , "::" , stringify ! ( quad ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_char_s > ( ) ) ) . size as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_char_s ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_char_s > ( ) ) ) . font as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_char_s ) , "::" , stringify ! ( font ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_char_s > ( ) ) ) . next as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_char_s ) , "::" , stringify ! ( next ) ) ) ; } extern "C" { pub static mut fz_stext_options_usage : * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn fz_new_stext_page ( ctx : * mut fz_context , mediabox : fz_rect ) -> * mut fz_stext_page ; } extern "C" { pub fn fz_drop_stext_page ( ctx : * mut fz_context , page : * mut fz_stext_page ) ; } extern "C" { pub fn fz_print_stext_page_as_html ( ctx : * mut fz_context , out : * mut fz_output , page : * mut fz_stext_page , id : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_print_stext_header_as_html ( ctx : * mut fz_context , out : * mut fz_output ) ; } extern "C" { pub fn fz_print_stext_trailer_as_html ( ctx : * mut fz_context , out : * mut fz_output ) ; } extern "C" { pub fn fz_print_stext_page_as_xhtml ( ctx : * mut fz_context , out : * mut fz_output , page : * mut fz_stext_page , id : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_print_stext_header_as_xhtml ( ctx : * mut fz_context , out : * mut fz_output ) ; } extern "C" { pub fn fz_print_stext_trailer_as_xhtml ( ctx : * mut fz_context , out : * mut fz_output ) ; } extern "C" { pub fn fz_print_stext_page_as_xml ( ctx : * mut fz_context , out : * mut fz_output , page : * mut fz_stext_page , id : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_print_stext_page_as_text ( ctx : * mut fz_context , out : * mut fz_output , page : * mut fz_stext_page ) ; } extern "C" { pub fn fz_search_stext_page ( ctx : * mut fz_context , text : * mut fz_stext_page , needle : * const :: std :: os :: raw :: c_char , quads : * mut fz_quad , max_quads : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_highlight_selection ( ctx : * mut fz_context , page : * mut fz_stext_page , a : fz_point , b : fz_point , quads : * mut fz_quad , max_quads : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } pub const FZ_SELECT_CHARS : _bindgen_ty_20 = 0 ; pub const FZ_SELECT_WORDS : _bindgen_ty_20 = 1 ; pub const FZ_SELECT_LINES : _bindgen_ty_20 = 2 ; pub type _bindgen_ty_20 = u32 ; extern "C" { pub fn fz_snap_selection ( ctx : * mut fz_context , page : * mut fz_stext_page , ap : * mut fz_point , bp : * mut fz_point , mode : :: std :: os :: raw :: c_int ) -> fz_quad ; } extern "C" { pub fn fz_copy_selection ( ctx : * mut fz_context , page : * mut fz_stext_page , a : fz_point , b : fz_point , crlf : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_char ; } pub type fz_stext_options = fz_stext_options_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_stext_options_s { pub flags : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_stext_options_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_stext_options_s > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( fz_stext_options_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_stext_options_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_stext_options_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_stext_options_s > ( ) ) ) . flags as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_stext_options_s ) , "::" , stringify ! ( flags ) ) ) ; } extern "C" { pub fn fz_parse_stext_options ( ctx : * mut fz_context , opts : * mut fz_stext_options , string : * const :: std :: os :: raw :: c_char ) -> * mut fz_stext_options ; } extern "C" { pub fn fz_new_stext_device ( ctx : * mut fz_context , page : * mut fz_stext_page , options : * const fz_stext_options ) -> * mut fz_device ; } pub type fz_transition = fz_transition_s ; pub const FZ_TRANSITION_NONE : _bindgen_ty_21 = 0 ; pub const FZ_TRANSITION_SPLIT : _bindgen_ty_21 = 1 ; pub const FZ_TRANSITION_BLINDS : _bindgen_ty_21 = 2 ; pub const FZ_TRANSITION_BOX : _bindgen_ty_21 = 3 ; pub const FZ_TRANSITION_WIPE : _bindgen_ty_21 = 4 ; pub const FZ_TRANSITION_DISSOLVE : _bindgen_ty_21 = 5 ; pub const FZ_TRANSITION_GLITTER : _bindgen_ty_21 = 6 ; pub const FZ_TRANSITION_FLY : _bindgen_ty_21 = 7 ; pub const FZ_TRANSITION_PUSH : _bindgen_ty_21 = 8 ; pub const FZ_TRANSITION_COVER : _bindgen_ty_21 = 9 ; pub const FZ_TRANSITION_UNCOVER : _bindgen_ty_21 = 10 ; pub const FZ_TRANSITION_FADE : _bindgen_ty_21 = 11 ; pub type _bindgen_ty_21 = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_transition_s { pub type_ : :: std :: os :: raw :: c_int , pub duration : f32 , pub vertical : :: std :: os :: raw :: c_int , pub outwards : :: std :: os :: raw :: c_int , pub direction : :: std :: os :: raw :: c_int , pub state0 : :: std :: os :: raw :: c_int , pub state1 : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_transition_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_transition_s > ( ) , 28usize , concat ! ( "Size of: " , stringify ! ( fz_transition_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_transition_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_transition_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_transition_s > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_transition_s ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_transition_s > ( ) ) ) . duration as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_transition_s ) , "::" , stringify ! ( duration ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_transition_s > ( ) ) ) . vertical as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_transition_s ) , "::" , stringify ! ( vertical ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_transition_s > ( ) ) ) . outwards as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( fz_transition_s ) , "::" , stringify ! ( outwards ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_transition_s > ( ) ) ) . direction as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_transition_s ) , "::" , stringify ! ( direction ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_transition_s > ( ) ) ) . state0 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( fz_transition_s ) , "::" , stringify ! ( state0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_transition_s > ( ) ) ) . state1 as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_transition_s ) , "::" , stringify ! ( state1 ) ) ) ; } extern "C" { pub fn fz_generate_transition ( ctx : * mut fz_context , tpix : * mut fz_pixmap , opix : * mut fz_pixmap , npix : * mut fz_pixmap , time : :: std :: os :: raw :: c_int , trans : * mut fz_transition ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_purge_glyph_cache ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_render_glyph_pixmap ( ctx : * mut fz_context , arg1 : * mut fz_font , arg2 : :: std :: os :: raw :: c_int , arg3 : * mut fz_matrix , scissor : * const fz_irect , aa : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_render_t3_glyph_direct ( ctx : * mut fz_context , dev : * mut fz_device , font : * mut fz_font , gid : :: std :: os :: raw :: c_int , trm : fz_matrix , gstate : * mut :: std :: os :: raw :: c_void , def_cs : * mut fz_default_colorspaces ) ; } extern "C" { pub fn fz_prepare_t3_glyph ( ctx : * mut fz_context , font : * mut fz_font , gid : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_dump_glyph_cache_stats ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_subpixel_adjust ( ctx : * mut fz_context , ctm : * mut fz_matrix , subpix_ctm : * mut fz_matrix , qe : * mut :: std :: os :: raw :: c_uchar , qf : * mut :: std :: os :: raw :: c_uchar ) -> f32 ; } pub type fz_link = fz_link_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_link_s { pub refs : :: std :: os :: raw :: c_int , pub next : * mut fz_link , pub rect : fz_rect , pub doc : * mut :: std :: os :: raw :: c_void , pub uri : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_fz_link_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_link_s > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( fz_link_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_link_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_link_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_link_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_link_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_link_s > ( ) ) ) . next as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_link_s ) , "::" , stringify ! ( next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_link_s > ( ) ) ) . rect as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_link_s ) , "::" , stringify ! ( rect ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_link_s > ( ) ) ) . doc as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_link_s ) , "::" , stringify ! ( doc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_link_s > ( ) ) ) . uri as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_link_s ) , "::" , stringify ! ( uri ) ) ) ; } extern "C" { pub fn fz_new_link ( ctx : * mut fz_context , bbox : fz_rect , doc : * mut :: std :: os :: raw :: c_void , uri : * const :: std :: os :: raw :: c_char ) -> * mut fz_link ; } extern "C" { pub fn fz_keep_link ( ctx : * mut fz_context , link : * mut fz_link ) -> * mut fz_link ; } extern "C" { pub fn fz_is_external_link ( ctx : * mut fz_context , uri : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_drop_link ( ctx : * mut fz_context , link : * mut fz_link ) ; } pub type fz_outline = fz_outline_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_outline_s { pub refs : :: std :: os :: raw :: c_int , pub title : * mut :: std :: os :: raw :: c_char , pub uri : * mut :: std :: os :: raw :: c_char , pub page : :: std :: os :: raw :: c_int , pub x : f32 , pub y : f32 , pub next : * mut fz_outline , pub down : * mut fz_outline , pub is_open : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_outline_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_outline_s > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( fz_outline_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_outline_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_outline_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_outline_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_outline_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_outline_s > ( ) ) ) . title as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_outline_s ) , "::" , stringify ! ( title ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_outline_s > ( ) ) ) . uri as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_outline_s ) , "::" , stringify ! ( uri ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_outline_s > ( ) ) ) . page as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_outline_s ) , "::" , stringify ! ( page ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_outline_s > ( ) ) ) . x as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( fz_outline_s ) , "::" , stringify ! ( x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_outline_s > ( ) ) ) . y as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_outline_s ) , "::" , stringify ! ( y ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_outline_s > ( ) ) ) . next as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_outline_s ) , "::" , stringify ! ( next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_outline_s > ( ) ) ) . down as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_outline_s ) , "::" , stringify ! ( down ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_outline_s > ( ) ) ) . is_open as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_outline_s ) , "::" , stringify ! ( is_open ) ) ) ; } extern "C" { pub fn fz_new_outline ( ctx : * mut fz_context ) -> * mut fz_outline ; } extern "C" { pub fn fz_keep_outline ( ctx : * mut fz_context , outline : * mut fz_outline ) -> * mut fz_outline ; } extern "C" { pub fn fz_drop_outline ( ctx : * mut fz_context , outline : * mut fz_outline ) ; } pub type fz_document = fz_document_s ; pub type fz_document_handler = fz_document_handler_s ; pub type fz_page = fz_page_s ; pub type fz_bookmark = isize ; pub const FZ_LAYOUT_KINDLE_W : _bindgen_ty_22 = 260 ; pub const FZ_LAYOUT_KINDLE_H : _bindgen_ty_22 = 346 ; pub const FZ_LAYOUT_KINDLE_EM : _bindgen_ty_22 = 9 ; pub const FZ_LAYOUT_US_POCKET_W : _bindgen_ty_22 = 306 ; pub const FZ_LAYOUT_US_POCKET_H : _bindgen_ty_22 = 495 ; pub const FZ_LAYOUT_US_POCKET_EM : _bindgen_ty_22 = 10 ; pub const FZ_LAYOUT_US_TRADE_W : _bindgen_ty_22 = 396 ; pub const FZ_LAYOUT_US_TRADE_H : _bindgen_ty_22 = 612 ; pub const FZ_LAYOUT_US_TRADE_EM : _bindgen_ty_22 = 11 ; pub const FZ_LAYOUT_UK_A_FORMAT_W : _bindgen_ty_22 = 312 ; pub const FZ_LAYOUT_UK_A_FORMAT_H : _bindgen_ty_22 = 504 ; pub const FZ_LAYOUT_UK_A_FORMAT_EM : _bindgen_ty_22 = 10 ; pub const FZ_LAYOUT_UK_B_FORMAT_W : _bindgen_ty_22 = 366 ; pub const FZ_LAYOUT_UK_B_FORMAT_H : _bindgen_ty_22 = 561 ; pub const FZ_LAYOUT_UK_B_FORMAT_EM : _bindgen_ty_22 = 10 ; pub const FZ_LAYOUT_UK_C_FORMAT_W : _bindgen_ty_22 = 382 ; pub const FZ_LAYOUT_UK_C_FORMAT_H : _bindgen_ty_22 = 612 ; pub const FZ_LAYOUT_UK_C_FORMAT_EM : _bindgen_ty_22 = 11 ; pub const FZ_LAYOUT_A5_W : _bindgen_ty_22 = 420 ; pub const FZ_LAYOUT_A5_H : _bindgen_ty_22 = 595 ; pub const FZ_LAYOUT_A5_EM : _bindgen_ty_22 = 11 ; pub const FZ_DEFAULT_LAYOUT_W : _bindgen_ty_22 = 420 ; pub const FZ_DEFAULT_LAYOUT_H : _bindgen_ty_22 = 595 ; pub const FZ_DEFAULT_LAYOUT_EM : _bindgen_ty_22 = 11 ; pub type _bindgen_ty_22 = u32 ; pub const fz_permission_FZ_PERMISSION_PRINT : fz_permission = 112 ; pub const fz_permission_FZ_PERMISSION_COPY : fz_permission = 99 ; pub const fz_permission_FZ_PERMISSION_EDIT : fz_permission = 101 ; pub const fz_permission_FZ_PERMISSION_ANNOTATE : fz_permission = 110 ; pub type fz_permission = u32 ; pub type fz_document_drop_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document ) > ; pub type fz_document_needs_password_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document ) -> :: std :: os :: raw :: c_int > ; pub type fz_document_authenticate_password_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document , password : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int > ; pub type fz_document_has_permission_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document , permission : fz_permission ) -> :: std :: os :: raw :: c_int > ; pub type fz_document_load_outline_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document ) -> * mut fz_outline > ; pub type fz_document_layout_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document , w : f32 , h : f32 , em : f32 ) > ; pub type fz_document_resolve_link_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document , uri : * const :: std :: os :: raw :: c_char , xp : * mut f32 , yp : * mut f32 ) -> :: std :: os :: raw :: c_int > ; pub type fz_document_count_pages_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document ) -> :: std :: os :: raw :: c_int > ; pub type fz_document_load_page_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document , number : :: std :: os :: raw :: c_int ) -> * mut fz_page > ; pub type fz_document_lookup_metadata_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document , key : * const :: std :: os :: raw :: c_char , buf : * mut :: std :: os :: raw :: c_char , size : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int > ; pub type fz_document_output_intent_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document ) -> * mut fz_colorspace > ; pub type fz_document_make_bookmark_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document , page : :: std :: os :: raw :: c_int ) -> fz_bookmark > ; pub type fz_document_lookup_bookmark_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut fz_document , mark : fz_bookmark ) -> :: std :: os :: raw :: c_int > ; pub type fz_page_drop_page_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , page : * mut fz_page ) > ; pub type fz_page_bound_page_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , page : * mut fz_page ) -> fz_rect > ; pub type fz_page_run_page_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , page : * mut fz_page , dev : * mut fz_device , transform : fz_matrix , cookie : * mut fz_cookie ) > ; pub type fz_page_load_links_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , page : * mut fz_page ) -> * mut fz_link > ; pub type fz_page_page_presentation_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , page : * mut fz_page , transition : * mut fz_transition , duration : * mut f32 ) -> * mut fz_transition > ; pub type fz_page_control_separation_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , page : * mut fz_page , separation : :: std :: os :: raw :: c_int , disable : :: std :: os :: raw :: c_int ) > ; pub type fz_page_separation_disabled_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , page : * mut fz_page , separation : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int > ; pub type fz_page_separations_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , page : * mut fz_page ) -> * mut fz_separations > ; pub type fz_page_uses_overprint_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , page : * mut fz_page ) -> :: std :: os :: raw :: c_int > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_page_s { pub refs : :: std :: os :: raw :: c_int , pub number : :: std :: os :: raw :: c_int , pub incomplete : :: std :: os :: raw :: c_int , pub drop_page : fz_page_drop_page_fn , pub bound_page : fz_page_bound_page_fn , pub run_page_contents : fz_page_run_page_fn , pub run_page_annots : fz_page_run_page_fn , pub run_page_widgets : fz_page_run_page_fn , pub load_links : fz_page_load_links_fn , pub page_presentation : fz_page_page_presentation_fn , pub control_separation : fz_page_control_separation_fn , pub separation_disabled : fz_page_separation_disabled_fn , pub separations : fz_page_separations_fn , pub overprint : fz_page_uses_overprint_fn , pub prev : * mut * mut fz_page , pub next : * mut fz_page , } # [ test ] fn bindgen_test_layout_fz_page_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_page_s > ( ) , 120usize , concat ! ( "Size of: " , stringify ! ( fz_page_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_page_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_page_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . number as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( number ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . incomplete as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( incomplete ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . drop_page as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( drop_page ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . bound_page as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( bound_page ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . run_page_contents as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( run_page_contents ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . run_page_annots as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( run_page_annots ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . run_page_widgets as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( run_page_widgets ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . load_links as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( load_links ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . page_presentation as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( page_presentation ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . control_separation as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( control_separation ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . separation_disabled as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( separation_disabled ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . separations as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( separations ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . overprint as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( overprint ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . prev as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( prev ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_page_s > ( ) ) ) . next as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( fz_page_s ) , "::" , stringify ! ( next ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_document_s { pub refs : :: std :: os :: raw :: c_int , pub drop_document : fz_document_drop_fn , pub needs_password : fz_document_needs_password_fn , pub authenticate_password : fz_document_authenticate_password_fn , pub has_permission : fz_document_has_permission_fn , pub load_outline : fz_document_load_outline_fn , pub layout : fz_document_layout_fn , pub make_bookmark : fz_document_make_bookmark_fn , pub lookup_bookmark : fz_document_lookup_bookmark_fn , pub resolve_link : fz_document_resolve_link_fn , pub count_pages : fz_document_count_pages_fn , pub load_page : fz_document_load_page_fn , pub lookup_metadata : fz_document_lookup_metadata_fn , pub get_output_intent : fz_document_output_intent_fn , pub did_layout : :: std :: os :: raw :: c_int , pub is_reflowable : :: std :: os :: raw :: c_int , pub open : * mut fz_page , } # [ test ] fn bindgen_test_layout_fz_document_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_document_s > ( ) , 128usize , concat ! ( "Size of: " , stringify ! ( fz_document_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_document_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_document_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . drop_document as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( drop_document ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . needs_password as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( needs_password ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . authenticate_password as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( authenticate_password ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . has_permission as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( has_permission ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . load_outline as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( load_outline ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . layout as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( layout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . make_bookmark as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( make_bookmark ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . lookup_bookmark as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( lookup_bookmark ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . resolve_link as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( resolve_link ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . count_pages as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( count_pages ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . load_page as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( load_page ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . lookup_metadata as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( lookup_metadata ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . get_output_intent as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( get_output_intent ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . did_layout as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( did_layout ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . is_reflowable as * const _ as usize } , 116usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( is_reflowable ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_s > ( ) ) ) . open as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_s ) , "::" , stringify ! ( open ) ) ) ; } pub type fz_document_open_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , filename : * const :: std :: os :: raw :: c_char ) -> * mut fz_document > ; pub type fz_document_open_with_stream_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , stream : * mut fz_stream ) -> * mut fz_document > ; pub type fz_document_recognize_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , magic : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_document_handler_s { pub recognize : fz_document_recognize_fn , pub open : fz_document_open_fn , pub open_with_stream : fz_document_open_with_stream_fn , pub extensions : * mut * const :: std :: os :: raw :: c_char , pub mimetypes : * mut * const :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_fz_document_handler_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_document_handler_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( fz_document_handler_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_document_handler_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_document_handler_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_handler_s > ( ) ) ) . recognize as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_handler_s ) , "::" , stringify ! ( recognize ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_handler_s > ( ) ) ) . open as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_handler_s ) , "::" , stringify ! ( open ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_handler_s > ( ) ) ) . open_with_stream as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_handler_s ) , "::" , stringify ! ( open_with_stream ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_handler_s > ( ) ) ) . extensions as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_handler_s ) , "::" , stringify ! ( extensions ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_handler_s > ( ) ) ) . mimetypes as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_handler_s ) , "::" , stringify ! ( mimetypes ) ) ) ; } extern "C" { pub fn fz_register_document_handler ( ctx : * mut fz_context , handler : * const fz_document_handler ) ; } extern "C" { pub fn fz_register_document_handlers ( ctx : * mut fz_context ) ; } extern "C" { pub fn fz_recognize_document ( ctx : * mut fz_context , magic : * const :: std :: os :: raw :: c_char ) -> * const fz_document_handler ; } extern "C" { pub fn fz_open_document ( ctx : * mut fz_context , filename : * const :: std :: os :: raw :: c_char ) -> * mut fz_document ; } extern "C" { pub fn fz_open_document_with_stream ( ctx : * mut fz_context , magic : * const :: std :: os :: raw :: c_char , stream : * mut fz_stream ) -> * mut fz_document ; } extern "C" { pub fn fz_new_document_of_size ( ctx : * mut fz_context , size : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn fz_keep_document ( ctx : * mut fz_context , doc : * mut fz_document ) -> * mut fz_document ; } extern "C" { pub fn fz_drop_document ( ctx : * mut fz_context , doc : * mut fz_document ) ; } extern "C" { pub fn fz_needs_password ( ctx : * mut fz_context , doc : * mut fz_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_authenticate_password ( ctx : * mut fz_context , doc : * mut fz_document , password : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_load_outline ( ctx : * mut fz_context , doc : * mut fz_document ) -> * mut fz_outline ; } extern "C" { pub fn fz_is_document_reflowable ( ctx : * mut fz_context , doc : * mut fz_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_layout_document ( ctx : * mut fz_context , doc : * mut fz_document , w : f32 , h : f32 , em : f32 ) ; } extern "C" { pub fn fz_make_bookmark ( ctx : * mut fz_context , doc : * mut fz_document , page : :: std :: os :: raw :: c_int ) -> fz_bookmark ; } extern "C" { pub fn fz_lookup_bookmark ( ctx : * mut fz_context , doc : * mut fz_document , mark : fz_bookmark ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_count_pages ( ctx : * mut fz_context , doc : * mut fz_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_resolve_link ( ctx : * mut fz_context , doc : * mut fz_document , uri : * const :: std :: os :: raw :: c_char , xp : * mut f32 , yp : * mut f32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_load_page ( ctx : * mut fz_context , doc : * mut fz_document , number : :: std :: os :: raw :: c_int ) -> * mut fz_page ; } extern "C" { pub fn fz_load_links ( ctx : * mut fz_context , page : * mut fz_page ) -> * mut fz_link ; } extern "C" { pub fn fz_new_page_of_size ( ctx : * mut fz_context , size : :: std :: os :: raw :: c_int ) -> * mut fz_page ; } extern "C" { pub fn fz_bound_page ( ctx : * mut fz_context , page : * mut fz_page ) -> fz_rect ; } extern "C" { pub fn fz_run_page ( ctx : * mut fz_context , page : * mut fz_page , dev : * mut fz_device , transform : fz_matrix , cookie : * mut fz_cookie ) ; } extern "C" { pub fn fz_run_page_contents ( ctx : * mut fz_context , page : * mut fz_page , dev : * mut fz_device , transform : fz_matrix , cookie : * mut fz_cookie ) ; } extern "C" { pub fn fz_run_page_annots ( ctx : * mut fz_context , page : * mut fz_page , dev : * mut fz_device , transform : fz_matrix , cookie : * mut fz_cookie ) ; } extern "C" { pub fn fz_run_page_widgets ( ctx : * mut fz_context , page : * mut fz_page , dev : * mut fz_device , transform : fz_matrix , cookie : * mut fz_cookie ) ; } extern "C" { pub fn fz_keep_page ( ctx : * mut fz_context , page : * mut fz_page ) -> * mut fz_page ; } extern "C" { pub fn fz_drop_page ( ctx : * mut fz_context , page : * mut fz_page ) ; } extern "C" { pub fn fz_page_presentation ( ctx : * mut fz_context , page : * mut fz_page , transition : * mut fz_transition , duration : * mut f32 ) -> * mut fz_transition ; } extern "C" { pub fn fz_has_permission ( ctx : * mut fz_context , doc : * mut fz_document , p : fz_permission ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_lookup_metadata ( ctx : * mut fz_context , doc : * mut fz_document , key : * const :: std :: os :: raw :: c_char , buf : * mut :: std :: os :: raw :: c_char , size : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_document_output_intent ( ctx : * mut fz_context , doc : * mut fz_document ) -> * mut fz_colorspace ; } extern "C" { pub fn fz_page_separations ( ctx : * mut fz_context , page : * mut fz_page ) -> * mut fz_separations ; } extern "C" { pub fn fz_page_uses_overprint ( ctx : * mut fz_context , page : * mut fz_page ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_new_display_list_from_page ( ctx : * mut fz_context , page : * mut fz_page ) -> * mut fz_display_list ; } extern "C" { pub fn fz_new_display_list_from_page_number ( ctx : * mut fz_context , doc : * mut fz_document , number : :: std :: os :: raw :: c_int ) -> * mut fz_display_list ; } extern "C" { pub fn fz_new_display_list_from_page_contents ( ctx : * mut fz_context , page : * mut fz_page ) -> * mut fz_display_list ; } extern "C" { pub fn fz_new_pixmap_from_display_list ( ctx : * mut fz_context , list : * mut fz_display_list , ctm : fz_matrix , cs : * mut fz_colorspace , alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_from_page ( ctx : * mut fz_context , page : * mut fz_page , ctm : fz_matrix , cs : * mut fz_colorspace , alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_from_page_number ( ctx : * mut fz_context , doc : * mut fz_document , number : :: std :: os :: raw :: c_int , ctm : fz_matrix , cs : * mut fz_colorspace , alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_from_page_contents ( ctx : * mut fz_context , page : * mut fz_page , ctm : fz_matrix , cs : * mut fz_colorspace , alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_from_display_list_with_separations ( ctx : * mut fz_context , list : * mut fz_display_list , ctm : fz_matrix , cs : * mut fz_colorspace , seps : * mut fz_separations , alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_from_page_with_separations ( ctx : * mut fz_context , page : * mut fz_page , ctm : fz_matrix , cs : * mut fz_colorspace , seps : * mut fz_separations , alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_from_page_number_with_separations ( ctx : * mut fz_context , doc : * mut fz_document , number : :: std :: os :: raw :: c_int , ctm : fz_matrix , cs : * mut fz_colorspace , seps : * mut fz_separations , alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_pixmap_from_page_contents_with_separations ( ctx : * mut fz_context , page : * mut fz_page , ctm : fz_matrix , cs : * mut fz_colorspace , seps : * mut fz_separations , alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn fz_new_stext_page_from_page ( ctx : * mut fz_context , page : * mut fz_page , options : * const fz_stext_options ) -> * mut fz_stext_page ; } extern "C" { pub fn fz_new_stext_page_from_page_number ( ctx : * mut fz_context , doc : * mut fz_document , number : :: std :: os :: raw :: c_int , options : * const fz_stext_options ) -> * mut fz_stext_page ; } extern "C" { pub fn fz_new_stext_page_from_display_list ( ctx : * mut fz_context , list : * mut fz_display_list , options : * const fz_stext_options ) -> * mut fz_stext_page ; } extern "C" { pub fn fz_new_buffer_from_stext_page ( ctx : * mut fz_context , text : * mut fz_stext_page ) -> * mut fz_buffer ; } extern "C" { pub fn fz_new_buffer_from_page ( ctx : * mut fz_context , page : * mut fz_page , options : * const fz_stext_options ) -> * mut fz_buffer ; } extern "C" { pub fn fz_new_buffer_from_page_number ( ctx : * mut fz_context , doc : * mut fz_document , number : :: std :: os :: raw :: c_int , options : * const fz_stext_options ) -> * mut fz_buffer ; } extern "C" { pub fn fz_new_buffer_from_display_list ( ctx : * mut fz_context , list : * mut fz_display_list , options : * const fz_stext_options ) -> * mut fz_buffer ; } extern "C" { pub fn fz_search_page ( ctx : * mut fz_context , page : * mut fz_page , needle : * const :: std :: os :: raw :: c_char , hit_bbox : * mut fz_quad , hit_max : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_search_page_number ( ctx : * mut fz_context , doc : * mut fz_document , number : :: std :: os :: raw :: c_int , needle : * const :: std :: os :: raw :: c_char , hit_bbox : * mut fz_quad , hit_max : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_search_display_list ( ctx : * mut fz_context , list : * mut fz_display_list , needle : * const :: std :: os :: raw :: c_char , hit_bbox : * mut fz_quad , hit_max : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_new_display_list_from_svg ( ctx : * mut fz_context , buf : * mut fz_buffer , base_uri : * const :: std :: os :: raw :: c_char , zip : * mut fz_archive , w : * mut f32 , h : * mut f32 ) -> * mut fz_display_list ; } extern "C" { pub fn fz_new_image_from_svg ( ctx : * mut fz_context , buf : * mut fz_buffer , base_uri : * const :: std :: os :: raw :: c_char , zip : * mut fz_archive ) -> * mut fz_image ; } extern "C" { pub fn fz_new_display_list_from_svg_xml ( ctx : * mut fz_context , xml : * mut fz_xml , base_uri : * const :: std :: os :: raw :: c_char , zip : * mut fz_archive , w : * mut f32 , h : * mut f32 ) -> * mut fz_display_list ; } extern "C" { pub fn fz_new_image_from_svg_xml ( ctx : * mut fz_context , xml : * mut fz_xml , base_uri : * const :: std :: os :: raw :: c_char , zip : * mut fz_archive ) -> * mut fz_image ; } extern "C" { pub fn fz_write_image_as_data_uri ( ctx : * mut fz_context , out : * mut fz_output , image : * mut fz_image ) ; } extern "C" { pub fn fz_write_pixmap_as_data_uri ( ctx : * mut fz_context , out : * mut fz_output , pixmap : * mut fz_pixmap ) ; } extern "C" { pub fn fz_new_xhtml_document_from_document ( ctx : * mut fz_context , old_doc : * mut fz_document ) -> * mut fz_document ; } pub type fz_document_writer = fz_document_writer_s ; pub type fz_document_writer_begin_page_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , wri : * mut fz_document_writer , mediabox : fz_rect ) -> * mut fz_device > ; pub type fz_document_writer_end_page_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , wri : * mut fz_document_writer , dev : * mut fz_device ) > ; pub type fz_document_writer_close_writer_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , wri : * mut fz_document_writer ) > ; pub type fz_document_writer_drop_writer_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , wri : * mut fz_document_writer ) > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_document_writer_s { pub begin_page : fz_document_writer_begin_page_fn , pub end_page : fz_document_writer_end_page_fn , pub close_writer : fz_document_writer_close_writer_fn , pub drop_writer : fz_document_writer_drop_writer_fn , pub dev : * mut fz_device , } # [ test ] fn bindgen_test_layout_fz_document_writer_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_document_writer_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( fz_document_writer_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_document_writer_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_document_writer_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_writer_s > ( ) ) ) . begin_page as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_writer_s ) , "::" , stringify ! ( begin_page ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_writer_s > ( ) ) ) . end_page as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_writer_s ) , "::" , stringify ! ( end_page ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_writer_s > ( ) ) ) . close_writer as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_writer_s ) , "::" , stringify ! ( close_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_writer_s > ( ) ) ) . drop_writer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_writer_s ) , "::" , stringify ! ( drop_writer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_document_writer_s > ( ) ) ) . dev as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_document_writer_s ) , "::" , stringify ! ( dev ) ) ) ; } extern "C" { pub fn fz_new_document_writer_of_size ( ctx : * mut fz_context , size : usize , begin_page : fz_document_writer_begin_page_fn , end_page : fz_document_writer_end_page_fn , close : fz_document_writer_close_writer_fn , drop : fz_document_writer_drop_writer_fn ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_has_option ( ctx : * mut fz_context , opts : * const :: std :: os :: raw :: c_char , key : * const :: std :: os :: raw :: c_char , val : * mut * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_option_eq ( a : * const :: std :: os :: raw :: c_char , b : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_copy_option ( ctx : * mut fz_context , val : * const :: std :: os :: raw :: c_char , dest : * mut :: std :: os :: raw :: c_char , maxlen : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fz_new_document_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , format : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_pdf_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_svg_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_text_writer ( ctx : * mut fz_context , format : * const :: std :: os :: raw :: c_char , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_ps_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_pcl_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_pwg_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_cbz_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_png_pixmap_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_pam_pixmap_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_pnm_pixmap_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_pgm_pixmap_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_ppm_pixmap_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_pbm_pixmap_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_new_pkm_pixmap_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_begin_page ( ctx : * mut fz_context , wri : * mut fz_document_writer , mediabox : fz_rect ) -> * mut fz_device ; } extern "C" { pub fn fz_end_page ( ctx : * mut fz_context , wri : * mut fz_document_writer ) ; } extern "C" { pub fn fz_close_document_writer ( ctx : * mut fz_context , wri : * mut fz_document_writer ) ; } extern "C" { pub fn fz_drop_document_writer ( ctx : * mut fz_context , wri : * mut fz_document_writer ) ; } extern "C" { pub fn fz_new_pixmap_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char , default_path : * const :: std :: os :: raw :: c_char , n : :: std :: os :: raw :: c_int , save : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , pix : * mut fz_pixmap , filename : * const :: std :: os :: raw :: c_char ) > ) -> * mut fz_document_writer ; } extern "C" { pub static mut fz_pdf_write_options_usage : * const :: std :: os :: raw :: c_char ; } extern "C" { pub static mut fz_svg_write_options_usage : * const :: std :: os :: raw :: c_char ; } extern "C" { pub static mut fz_pcl_write_options_usage : * const :: std :: os :: raw :: c_char ; } extern "C" { pub static mut fz_pclm_write_options_usage : * const :: std :: os :: raw :: c_char ; } extern "C" { pub static mut fz_pwg_write_options_usage : * const :: std :: os :: raw :: c_char ; } pub type fz_band_writer = fz_band_writer_s ; pub type fz_write_header_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , writer : * mut fz_band_writer , cs : * mut fz_colorspace ) > ; pub type fz_write_band_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , writer : * mut fz_band_writer , stride : :: std :: os :: raw :: c_int , band_start : :: std :: os :: raw :: c_int , band_height : :: std :: os :: raw :: c_int , samples : * const :: std :: os :: raw :: c_uchar ) > ; pub type fz_write_trailer_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , writer : * mut fz_band_writer ) > ; pub type fz_drop_band_writer_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , writer : * mut fz_band_writer ) > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_band_writer_s { pub drop : fz_drop_band_writer_fn , pub header : fz_write_header_fn , pub band : fz_write_band_fn , pub trailer : fz_write_trailer_fn , pub out : * mut fz_output , pub w : :: std :: os :: raw :: c_int , pub h : :: std :: os :: raw :: c_int , pub n : :: std :: os :: raw :: c_int , pub s : :: std :: os :: raw :: c_int , pub alpha : :: std :: os :: raw :: c_int , pub xres : :: std :: os :: raw :: c_int , pub yres : :: std :: os :: raw :: c_int , pub pagenum : :: std :: os :: raw :: c_int , pub line : :: std :: os :: raw :: c_int , pub seps : * mut fz_separations , } # [ test ] fn bindgen_test_layout_fz_band_writer_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_band_writer_s > ( ) , 88usize , concat ! ( "Size of: " , stringify ! ( fz_band_writer_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_band_writer_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_band_writer_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . drop as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( drop ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . header as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( header ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . band as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( band ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . trailer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( trailer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . out as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( out ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . w as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( w ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . h as * const _ as usize } , 44usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( h ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . n as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( n ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . s as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . alpha as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( alpha ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . xres as * const _ as usize } , 60usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( xres ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . yres as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( yres ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . pagenum as * const _ as usize } , 68usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( pagenum ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . line as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( line ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_band_writer_s > ( ) ) ) . seps as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( fz_band_writer_s ) , "::" , stringify ! ( seps ) ) ) ; } extern "C" { pub fn fz_new_band_writer_of_size ( ctx : * mut fz_context , size : usize , out : * mut fz_output ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_write_header ( ctx : * mut fz_context , writer : * mut fz_band_writer , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , n : :: std :: os :: raw :: c_int , alpha : :: std :: os :: raw :: c_int , xres : :: std :: os :: raw :: c_int , yres : :: std :: os :: raw :: c_int , pagenum : :: std :: os :: raw :: c_int , cs : * mut fz_colorspace , seps : * mut fz_separations ) ; } extern "C" { pub fn fz_write_band ( ctx : * mut fz_context , writer : * mut fz_band_writer , stride : :: std :: os :: raw :: c_int , band_height : :: std :: os :: raw :: c_int , samples : * const :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn fz_drop_band_writer ( ctx : * mut fz_context , writer : * mut fz_band_writer ) ; } pub type fz_pcl_options = fz_pcl_options_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_pcl_options_s { pub features : :: std :: os :: raw :: c_int , pub odd_page_init : * const :: std :: os :: raw :: c_char , pub even_page_init : * const :: std :: os :: raw :: c_char , pub tumble : :: std :: os :: raw :: c_int , pub duplex_set : :: std :: os :: raw :: c_int , pub duplex : :: std :: os :: raw :: c_int , pub paper_size : :: std :: os :: raw :: c_int , pub manual_feed_set : :: std :: os :: raw :: c_int , pub manual_feed : :: std :: os :: raw :: c_int , pub media_position_set : :: std :: os :: raw :: c_int , pub media_position : :: std :: os :: raw :: c_int , pub orientation : :: std :: os :: raw :: c_int , pub page_count : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_pcl_options_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_pcl_options_s > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( fz_pcl_options_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_pcl_options_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( fz_pcl_options_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . features as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( features ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . odd_page_init as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( odd_page_init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . even_page_init as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( even_page_init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . tumble as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( tumble ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . duplex_set as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( duplex_set ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . duplex as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( duplex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . paper_size as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( paper_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . manual_feed_set as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( manual_feed_set ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . manual_feed as * const _ as usize } , 44usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( manual_feed ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . media_position_set as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( media_position_set ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . media_position as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( media_position ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . orientation as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( orientation ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pcl_options_s > ( ) ) ) . page_count as * const _ as usize } , 60usize , concat ! ( "Offset of field: " , stringify ! ( fz_pcl_options_s ) , "::" , stringify ! ( page_count ) ) ) ; } extern "C" { pub fn fz_pcl_preset ( ctx : * mut fz_context , opts : * mut fz_pcl_options , preset : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_parse_pcl_options ( ctx : * mut fz_context , opts : * mut fz_pcl_options , args : * const :: std :: os :: raw :: c_char ) -> * mut fz_pcl_options ; } extern "C" { pub fn fz_new_mono_pcl_band_writer ( ctx : * mut fz_context , out : * mut fz_output , options : * const fz_pcl_options ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_write_bitmap_as_pcl ( ctx : * mut fz_context , out : * mut fz_output , bitmap : * const fz_bitmap , pcl : * const fz_pcl_options ) ; } extern "C" { pub fn fz_save_bitmap_as_pcl ( ctx : * mut fz_context , bitmap : * mut fz_bitmap , filename : * mut :: std :: os :: raw :: c_char , append : :: std :: os :: raw :: c_int , pcl : * const fz_pcl_options ) ; } extern "C" { pub fn fz_new_color_pcl_band_writer ( ctx : * mut fz_context , out : * mut fz_output , options : * const fz_pcl_options ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_write_pixmap_as_pcl ( ctx : * mut fz_context , out : * mut fz_output , pixmap : * const fz_pixmap , pcl : * const fz_pcl_options ) ; } extern "C" { pub fn fz_save_pixmap_as_pcl ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , filename : * mut :: std :: os :: raw :: c_char , append : :: std :: os :: raw :: c_int , pcl : * const fz_pcl_options ) ; } pub type fz_pclm_options = fz_pclm_options_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_pclm_options_s { pub compress : :: std :: os :: raw :: c_int , pub strip_height : :: std :: os :: raw :: c_int , pub page_count : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_fz_pclm_options_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_pclm_options_s > ( ) , 12usize , concat ! ( "Size of: " , stringify ! ( fz_pclm_options_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_pclm_options_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_pclm_options_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pclm_options_s > ( ) ) ) . compress as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_pclm_options_s ) , "::" , stringify ! ( compress ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pclm_options_s > ( ) ) ) . strip_height as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( fz_pclm_options_s ) , "::" , stringify ! ( strip_height ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pclm_options_s > ( ) ) ) . page_count as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( fz_pclm_options_s ) , "::" , stringify ! ( page_count ) ) ) ; } extern "C" { pub fn fz_parse_pclm_options ( ctx : * mut fz_context , opts : * mut fz_pclm_options , args : * const :: std :: os :: raw :: c_char ) -> * mut fz_pclm_options ; } extern "C" { pub fn fz_new_pclm_band_writer ( ctx : * mut fz_context , out : * mut fz_output , options : * const fz_pclm_options ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_new_pclm_writer ( ctx : * mut fz_context , path : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char ) -> * mut fz_document_writer ; } extern "C" { pub fn fz_write_pixmap_as_pclm ( ctx : * mut fz_context , out : * mut fz_output , pixmap : * const fz_pixmap , options : * const fz_pclm_options ) ; } extern "C" { pub fn fz_save_pixmap_as_pclm ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , filename : * mut :: std :: os :: raw :: c_char , append : :: std :: os :: raw :: c_int , options : * const fz_pclm_options ) ; } extern "C" { pub fn fz_save_pixmap_as_png ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , filename : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_write_pixmap_as_png ( ctx : * mut fz_context , out : * mut fz_output , pixmap : * const fz_pixmap ) ; } extern "C" { pub fn fz_new_png_band_writer ( ctx : * mut fz_context , out : * mut fz_output ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_new_buffer_from_image_as_png ( ctx : * mut fz_context , image : * mut fz_image , color_params : fz_color_params ) -> * mut fz_buffer ; } extern "C" { pub fn fz_new_buffer_from_pixmap_as_png ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , color_params : fz_color_params ) -> * mut fz_buffer ; } extern "C" { pub fn fz_save_pixmap_as_pnm ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , filename : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_write_pixmap_as_pnm ( ctx : * mut fz_context , out : * mut fz_output , pixmap : * mut fz_pixmap ) ; } extern "C" { pub fn fz_new_pnm_band_writer ( ctx : * mut fz_context , out : * mut fz_output ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_save_pixmap_as_pam ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , filename : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_write_pixmap_as_pam ( ctx : * mut fz_context , out : * mut fz_output , pixmap : * mut fz_pixmap ) ; } extern "C" { pub fn fz_new_pam_band_writer ( ctx : * mut fz_context , out : * mut fz_output ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_save_bitmap_as_pbm ( ctx : * mut fz_context , bitmap : * mut fz_bitmap , filename : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_write_bitmap_as_pbm ( ctx : * mut fz_context , out : * mut fz_output , bitmap : * mut fz_bitmap ) ; } extern "C" { pub fn fz_new_pbm_band_writer ( ctx : * mut fz_context , out : * mut fz_output ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_save_pixmap_as_pbm ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , filename : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_save_bitmap_as_pkm ( ctx : * mut fz_context , bitmap : * mut fz_bitmap , filename : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_write_bitmap_as_pkm ( ctx : * mut fz_context , out : * mut fz_output , bitmap : * mut fz_bitmap ) ; } extern "C" { pub fn fz_new_pkm_band_writer ( ctx : * mut fz_context , out : * mut fz_output ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_save_pixmap_as_pkm ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , filename : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_write_pixmap_as_ps ( ctx : * mut fz_context , out : * mut fz_output , pixmap : * const fz_pixmap ) ; } extern "C" { pub fn fz_save_pixmap_as_ps ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , filename : * mut :: std :: os :: raw :: c_char , append : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_new_ps_band_writer ( ctx : * mut fz_context , out : * mut fz_output ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_write_ps_file_header ( ctx : * mut fz_context , out : * mut fz_output ) ; } extern "C" { pub fn fz_write_ps_file_trailer ( ctx : * mut fz_context , out : * mut fz_output , pages : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn fz_save_pixmap_as_psd ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , filename : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn fz_write_pixmap_as_psd ( ctx : * mut fz_context , out : * mut fz_output , pixmap : * const fz_pixmap ) ; } extern "C" { pub fn fz_new_psd_band_writer ( ctx : * mut fz_context , out : * mut fz_output ) -> * mut fz_band_writer ; } pub type fz_pwg_options = fz_pwg_options_s ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct fz_pwg_options_s { pub media_class : [ :: std :: os :: raw :: c_char ; 64usize ] , pub media_color : [ :: std :: os :: raw :: c_char ; 64usize ] , pub media_type : [ :: std :: os :: raw :: c_char ; 64usize ] , pub output_type : [ :: std :: os :: raw :: c_char ; 64usize ] , pub advance_distance : :: std :: os :: raw :: c_uint , pub advance_media : :: std :: os :: raw :: c_int , pub collate : :: std :: os :: raw :: c_int , pub cut_media : :: std :: os :: raw :: c_int , pub duplex : :: std :: os :: raw :: c_int , pub insert_sheet : :: std :: os :: raw :: c_int , pub jog : :: std :: os :: raw :: c_int , pub leading_edge : :: std :: os :: raw :: c_int , pub manual_feed : :: std :: os :: raw :: c_int , pub media_position : :: std :: os :: raw :: c_uint , pub media_weight : :: std :: os :: raw :: c_uint , pub mirror_print : :: std :: os :: raw :: c_int , pub negative_print : :: std :: os :: raw :: c_int , pub num_copies : :: std :: os :: raw :: c_uint , pub orientation : :: std :: os :: raw :: c_int , pub output_face_up : :: std :: os :: raw :: c_int , pub PageSize : [ :: std :: os :: raw :: c_uint ; 2usize ] , pub separations : :: std :: os :: raw :: c_int , pub tray_switch : :: std :: os :: raw :: c_int , pub tumble : :: std :: os :: raw :: c_int , pub media_type_num : :: std :: os :: raw :: c_int , pub compression : :: std :: os :: raw :: c_int , pub row_count : :: std :: os :: raw :: c_uint , pub row_feed : :: std :: os :: raw :: c_uint , pub row_step : :: std :: os :: raw :: c_uint , pub rendering_intent : [ :: std :: os :: raw :: c_char ; 64usize ] , pub page_size_name : [ :: std :: os :: raw :: c_char ; 64usize ] , } # [ test ] fn bindgen_test_layout_fz_pwg_options_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < fz_pwg_options_s > ( ) , 488usize , concat ! ( "Size of: " , stringify ! ( fz_pwg_options_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < fz_pwg_options_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( fz_pwg_options_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . media_class as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( media_class ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . media_color as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( media_color ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . media_type as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( media_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . output_type as * const _ as usize } , 192usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( output_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . advance_distance as * const _ as usize } , 256usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( advance_distance ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . advance_media as * const _ as usize } , 260usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( advance_media ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . collate as * const _ as usize } , 264usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( collate ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . cut_media as * const _ as usize } , 268usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( cut_media ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . duplex as * const _ as usize } , 272usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( duplex ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . insert_sheet as * const _ as usize } , 276usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( insert_sheet ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . jog as * const _ as usize } , 280usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( jog ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . leading_edge as * const _ as usize } , 284usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( leading_edge ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . manual_feed as * const _ as usize } , 288usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( manual_feed ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . media_position as * const _ as usize } , 292usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( media_position ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . media_weight as * const _ as usize } , 296usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( media_weight ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . mirror_print as * const _ as usize } , 300usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( mirror_print ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . negative_print as * const _ as usize } , 304usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( negative_print ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . num_copies as * const _ as usize } , 308usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( num_copies ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . orientation as * const _ as usize } , 312usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( orientation ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . output_face_up as * const _ as usize } , 316usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( output_face_up ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . PageSize as * const _ as usize } , 320usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( PageSize ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . separations as * const _ as usize } , 328usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( separations ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . tray_switch as * const _ as usize } , 332usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( tray_switch ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . tumble as * const _ as usize } , 336usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( tumble ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . media_type_num as * const _ as usize } , 340usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( media_type_num ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . compression as * const _ as usize } , 344usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( compression ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . row_count as * const _ as usize } , 348usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( row_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . row_feed as * const _ as usize } , 352usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( row_feed ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . row_step as * const _ as usize } , 356usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( row_step ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . rendering_intent as * const _ as usize } , 360usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( rendering_intent ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < fz_pwg_options_s > ( ) ) ) . page_size_name as * const _ as usize } , 424usize , concat ! ( "Offset of field: " , stringify ! ( fz_pwg_options_s ) , "::" , stringify ! ( page_size_name ) ) ) ; } extern "C" { pub fn fz_save_pixmap_as_pwg ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , filename : * mut :: std :: os :: raw :: c_char , append : :: std :: os :: raw :: c_int , pwg : * const fz_pwg_options ) ; } extern "C" { pub fn fz_save_bitmap_as_pwg ( ctx : * mut fz_context , bitmap : * mut fz_bitmap , filename : * mut :: std :: os :: raw :: c_char , append : :: std :: os :: raw :: c_int , pwg : * const fz_pwg_options ) ; } extern "C" { pub fn fz_write_pixmap_as_pwg ( ctx : * mut fz_context , out : * mut fz_output , pixmap : * const fz_pixmap , pwg : * const fz_pwg_options ) ; } extern "C" { pub fn fz_write_bitmap_as_pwg ( ctx : * mut fz_context , out : * mut fz_output , bitmap : * const fz_bitmap , pwg : * const fz_pwg_options ) ; } extern "C" { pub fn fz_write_pixmap_as_pwg_page ( ctx : * mut fz_context , out : * mut fz_output , pixmap : * const fz_pixmap , pwg : * const fz_pwg_options ) ; } extern "C" { pub fn fz_write_bitmap_as_pwg_page ( ctx : * mut fz_context , out : * mut fz_output , bitmap : * const fz_bitmap , pwg : * const fz_pwg_options ) ; } extern "C" { pub fn fz_new_mono_pwg_band_writer ( ctx : * mut fz_context , out : * mut fz_output , pwg : * const fz_pwg_options ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_new_pwg_band_writer ( ctx : * mut fz_context , out : * mut fz_output , pwg : * const fz_pwg_options ) -> * mut fz_band_writer ; } extern "C" { pub fn fz_write_pwg_file_header ( ctx : * mut fz_context , out : * mut fz_output ) ; } pub const FZ_SVG_TEXT_AS_PATH : _bindgen_ty_23 = 0 ; pub const FZ_SVG_TEXT_AS_TEXT : _bindgen_ty_23 = 1 ; pub type _bindgen_ty_23 = u32 ; extern "C" { pub fn fz_new_svg_device ( ctx : * mut fz_context , out : * mut fz_output , page_width : f32 , page_height : f32 , text_format : :: std :: os :: raw :: c_int , reuse_images : :: std :: os :: raw :: c_int ) -> * mut fz_device ; } extern "C" { pub fn fz_new_svg_device_with_id ( ctx : * mut fz_context , out : * mut fz_output , page_width : f32 , page_height : f32 , text_format : :: std :: os :: raw :: c_int , reuse_images : :: std :: os :: raw :: c_int , id : * mut :: std :: os :: raw :: c_int ) -> * mut fz_device ; } extern "C" { # [ doc = " Return version of the Unicode database." ] # [ doc = "" ] # [ doc = " @return Unicode database version" ] pub fn ucdn_get_unicode_version ( ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { # [ doc = " Get combining class of a codepoint." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @return combining class value, as defined in UAX#44" ] pub fn ucdn_get_combining_class ( code : u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Get east-asian width of a codepoint." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @return value according to UCDN_EAST_ASIAN_* and as defined in UAX#11." ] pub fn ucdn_get_east_asian_width ( code : u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Get general category of a codepoint." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @return value according to UCDN_GENERAL_CATEGORY_* and as defined in" ] # [ doc = " UAX#44." ] pub fn ucdn_get_general_category ( code : u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Get bidirectional class of a codepoint." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @return value according to UCDN_BIDI_CLASS_* and as defined in UAX#44." ] pub fn ucdn_get_bidi_class ( code : u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Get script of a codepoint." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @return value according to UCDN_SCRIPT_* and as defined in UAX#24." ] pub fn ucdn_get_script ( code : u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Get unresolved linebreak class of a codepoint. This does not take" ] # [ doc = " rule LB1 of UAX#14 into account. See ucdn_get_resolved_linebreak_class()" ] # [ doc = " for resolved linebreak classes." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @return value according to UCDN_LINEBREAK_* and as defined in UAX#14." ] pub fn ucdn_get_linebreak_class ( code : u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Get resolved linebreak class of a codepoint. This resolves characters" ] # [ doc = " in the AI, SG, XX, SA and CJ classes according to rule LB1 of UAX#14." ] # [ doc = " In addition the CB class is resolved as the equivalent B2 class and" ] # [ doc = " the NL class is resolved as the equivalent BK class." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @return value according to UCDN_LINEBREAK_* and as defined in UAX#14." ] pub fn ucdn_get_resolved_linebreak_class ( code : u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Check if codepoint can be mirrored." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @return 1 if mirrored character exists, otherwise 0" ] pub fn ucdn_get_mirrored ( code : u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Mirror a codepoint." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @return mirrored codepoint or the original codepoint if no" ] # [ doc = " mirrored character exists" ] pub fn ucdn_mirror ( code : u32 ) -> u32 ; } extern "C" { # [ doc = " Get paired bracket for a codepoint." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @return paired bracket codepoint or the original codepoint if no" ] # [ doc = " paired bracket character exists" ] pub fn ucdn_paired_bracket ( code : u32 ) -> u32 ; } extern "C" { # [ doc = " Get paired bracket type for a codepoint." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @return value according to UCDN_BIDI_PAIRED_BRACKET_TYPE_* and as defined" ] # [ doc = " in UAX#9." ] # [ doc = "" ] pub fn ucdn_paired_bracket_type ( code : u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Pairwise canonical decomposition of a codepoint. This includes" ] # [ doc = " Hangul Jamo decomposition (see chapter 3.12 of the Unicode core" ] # [ doc = " specification)." ] # [ doc = "" ] # [ doc = " Hangul is decomposed into L and V jamos for LV forms, and an" ] # [ doc = " LV precomposed syllable and a T jamo for LVT forms." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @param a filled with first codepoint of decomposition" ] # [ doc = " @param b filled with second codepoint of decomposition, or 0" ] # [ doc = " @return success" ] pub fn ucdn_decompose ( code : u32 , a : * mut u32 , b : * mut u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Compatibility decomposition of a codepoint." ] # [ doc = "" ] # [ doc = " @param code Unicode codepoint" ] # [ doc = " @param decomposed filled with decomposition, must be able to hold 18" ] # [ doc = " characters" ] # [ doc = " @return length of decomposition or 0 in case none exists" ] pub fn ucdn_compat_decompose ( code : u32 , decomposed : * mut u32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Pairwise canonical composition of two codepoints. This includes" ] # [ doc = " Hangul Jamo composition (see chapter 3.12 of the Unicode core" ] # [ doc = " specification)." ] # [ doc = "" ] # [ doc = " Hangul composition expects either L and V jamos, or an LV" ] # [ doc = " precomposed syllable and a T jamo. This is exactly the inverse" ] # [ doc = " of pairwise Hangul decomposition." ] # [ doc = "" ] # [ doc = " @param code filled with composition" ] # [ doc = " @param a first codepoint" ] # [ doc = " @param b second codepoint" ] # [ doc = " @return success" ] pub fn ucdn_compose ( code : * mut u32 , a : u32 , b : u32 ) -> :: std :: os :: raw :: c_int ; } pub type pdf_document = pdf_document_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_crypt_s { _unused : [ u8 ; 0 ] , } pub type pdf_crypt = pdf_crypt_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_obj_s { _unused : [ u8 ; 0 ] , } pub type pdf_obj = pdf_obj_s ; extern "C" { pub fn pdf_new_int ( ctx : * mut fz_context , i : i64 ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_new_real ( ctx : * mut fz_context , f : f32 ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_new_name ( ctx : * mut fz_context , str : * const :: std :: os :: raw :: c_char ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_new_string ( ctx : * mut fz_context , str : * const :: std :: os :: raw :: c_char , len : usize ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_new_text_string ( ctx : * mut fz_context , s : * const :: std :: os :: raw :: c_char ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_new_indirect ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int , gen : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_new_array ( ctx : * mut fz_context , doc : * mut pdf_document , initialcap : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_new_dict ( ctx : * mut fz_context , doc : * mut pdf_document , initialcap : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_new_rect ( ctx : * mut fz_context , doc : * mut pdf_document , rect : fz_rect ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_new_matrix ( ctx : * mut fz_context , doc : * mut pdf_document , mtx : fz_matrix ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_copy_array ( ctx : * mut fz_context , array : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_copy_dict ( ctx : * mut fz_context , dict : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_deep_copy_obj ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_keep_obj ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_drop_obj ( ctx : * mut fz_context , obj : * mut pdf_obj ) ; } extern "C" { pub fn pdf_is_null ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_is_bool ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_is_int ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_is_real ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_is_number ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_is_name ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_is_string ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_is_array ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_is_dict ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_is_indirect ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_obj_num_is_stream ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_is_stream ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_resolve_obj ( ctx : * mut fz_context , a : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_objcmp ( ctx : * mut fz_context , a : * mut pdf_obj , b : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_objcmp_resolve ( ctx : * mut fz_context , a : * mut pdf_obj , b : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_name_eq ( ctx : * mut fz_context , a : * mut pdf_obj , b : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_obj_marked ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_mark_obj ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_unmark_obj ( ctx : * mut fz_context , obj : * mut pdf_obj ) ; } extern "C" { pub fn pdf_set_obj_memo ( ctx : * mut fz_context , obj : * mut pdf_obj , bit : :: std :: os :: raw :: c_int , memo : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_obj_memo ( ctx : * mut fz_context , obj : * mut pdf_obj , bit : :: std :: os :: raw :: c_int , memo : * mut :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_obj_is_dirty ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_dirty_obj ( ctx : * mut fz_context , obj : * mut pdf_obj ) ; } extern "C" { pub fn pdf_clean_obj ( ctx : * mut fz_context , obj : * mut pdf_obj ) ; } extern "C" { pub fn pdf_to_bool ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_to_int ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_to_int64 ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> i64 ; } extern "C" { pub fn pdf_to_real ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> f32 ; } extern "C" { pub fn pdf_to_name ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_to_text_string ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_to_string ( ctx : * mut fz_context , obj : * mut pdf_obj , sizep : * mut usize ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_to_str_buf ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_to_str_len ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_to_num ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_to_gen ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_array_len ( ctx : * mut fz_context , array : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_array_get ( ctx : * mut fz_context , array : * mut pdf_obj , i : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_array_put ( ctx : * mut fz_context , array : * mut pdf_obj , i : :: std :: os :: raw :: c_int , obj : * mut pdf_obj ) ; } extern "C" { pub fn pdf_array_put_drop ( ctx : * mut fz_context , array : * mut pdf_obj , i : :: std :: os :: raw :: c_int , obj : * mut pdf_obj ) ; } extern "C" { pub fn pdf_array_push ( ctx : * mut fz_context , array : * mut pdf_obj , obj : * mut pdf_obj ) ; } extern "C" { pub fn pdf_array_push_drop ( ctx : * mut fz_context , array : * mut pdf_obj , obj : * mut pdf_obj ) ; } extern "C" { pub fn pdf_array_insert ( ctx : * mut fz_context , array : * mut pdf_obj , obj : * mut pdf_obj , index : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_array_insert_drop ( ctx : * mut fz_context , array : * mut pdf_obj , obj : * mut pdf_obj , index : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_array_delete ( ctx : * mut fz_context , array : * mut pdf_obj , index : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_array_find ( ctx : * mut fz_context , array : * mut pdf_obj , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_array_contains ( ctx : * mut fz_context , array : * mut pdf_obj , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_dict_len ( ctx : * mut fz_context , dict : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_dict_get_key ( ctx : * mut fz_context , dict : * mut pdf_obj , idx : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_get_val ( ctx : * mut fz_context , dict : * mut pdf_obj , idx : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_put_val_null ( ctx : * mut fz_context , obj : * mut pdf_obj , idx : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_dict_get ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_getp ( ctx : * mut fz_context , dict : * mut pdf_obj , path : * const :: std :: os :: raw :: c_char ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_getl ( ctx : * mut fz_context , dict : * mut pdf_obj , ... ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_geta ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , abbrev : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_gets ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * const :: std :: os :: raw :: c_char ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_getsa ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * const :: std :: os :: raw :: c_char , abbrev : * const :: std :: os :: raw :: c_char ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_get_inheritable ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_put ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , val : * mut pdf_obj ) ; } extern "C" { pub fn pdf_dict_put_drop ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , val : * mut pdf_obj ) ; } extern "C" { pub fn pdf_dict_get_put_drop ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , val : * mut pdf_obj , old_val : * mut * mut pdf_obj ) ; } extern "C" { pub fn pdf_dict_puts ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * const :: std :: os :: raw :: c_char , val : * mut pdf_obj ) ; } extern "C" { pub fn pdf_dict_puts_drop ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * const :: std :: os :: raw :: c_char , val : * mut pdf_obj ) ; } extern "C" { pub fn pdf_dict_putp ( ctx : * mut fz_context , dict : * mut pdf_obj , path : * const :: std :: os :: raw :: c_char , val : * mut pdf_obj ) ; } extern "C" { pub fn pdf_dict_putp_drop ( ctx : * mut fz_context , dict : * mut pdf_obj , path : * const :: std :: os :: raw :: c_char , val : * mut pdf_obj ) ; } extern "C" { pub fn pdf_dict_putl ( ctx : * mut fz_context , dict : * mut pdf_obj , val : * mut pdf_obj , ... ) ; } extern "C" { pub fn pdf_dict_putl_drop ( ctx : * mut fz_context , dict : * mut pdf_obj , val : * mut pdf_obj , ... ) ; } extern "C" { pub fn pdf_dict_del ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj ) ; } extern "C" { pub fn pdf_dict_dels ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_sort_dict ( ctx : * mut fz_context , dict : * mut pdf_obj ) ; } extern "C" { pub fn pdf_dict_put_bool ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , x : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_dict_put_int ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , x : i64 ) ; } extern "C" { pub fn pdf_dict_put_real ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , x : f64 ) ; } extern "C" { pub fn pdf_dict_put_name ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , x : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_dict_put_string ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , x : * const :: std :: os :: raw :: c_char , n : usize ) ; } extern "C" { pub fn pdf_dict_put_text_string ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , x : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_dict_put_rect ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , x : fz_rect ) ; } extern "C" { pub fn pdf_dict_put_matrix ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , x : fz_matrix ) ; } extern "C" { pub fn pdf_dict_put_array ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , initial : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_put_dict ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , initial : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_puts_dict ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * const :: std :: os :: raw :: c_char , initial : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_dict_get_bool ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_dict_get_int ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_dict_get_real ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj ) -> f32 ; } extern "C" { pub fn pdf_dict_get_name ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_dict_get_string ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj , sizep : * mut usize ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_dict_get_text_string ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_dict_get_rect ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj ) -> fz_rect ; } extern "C" { pub fn pdf_dict_get_matrix ( ctx : * mut fz_context , dict : * mut pdf_obj , key : * mut pdf_obj ) -> fz_matrix ; } extern "C" { pub fn pdf_array_push_bool ( ctx : * mut fz_context , array : * mut pdf_obj , x : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_array_push_int ( ctx : * mut fz_context , array : * mut pdf_obj , x : i64 ) ; } extern "C" { pub fn pdf_array_push_real ( ctx : * mut fz_context , array : * mut pdf_obj , x : f64 ) ; } extern "C" { pub fn pdf_array_push_name ( ctx : * mut fz_context , array : * mut pdf_obj , x : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_array_push_string ( ctx : * mut fz_context , array : * mut pdf_obj , x : * const :: std :: os :: raw :: c_char , n : usize ) ; } extern "C" { pub fn pdf_array_push_text_string ( ctx : * mut fz_context , array : * mut pdf_obj , x : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_array_push_array ( ctx : * mut fz_context , array : * mut pdf_obj , initial : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_array_push_dict ( ctx : * mut fz_context , array : * mut pdf_obj , initial : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_array_get_bool ( ctx : * mut fz_context , array : * mut pdf_obj , index : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_array_get_int ( ctx : * mut fz_context , array : * mut pdf_obj , index : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_array_get_real ( ctx : * mut fz_context , array : * mut pdf_obj , index : :: std :: os :: raw :: c_int ) -> f32 ; } extern "C" { pub fn pdf_array_get_name ( ctx : * mut fz_context , array : * mut pdf_obj , index : :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_array_get_string ( ctx : * mut fz_context , array : * mut pdf_obj , index : :: std :: os :: raw :: c_int , sizep : * mut usize ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_array_get_text_string ( ctx : * mut fz_context , array : * mut pdf_obj , index : :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_array_get_rect ( ctx : * mut fz_context , array : * mut pdf_obj , index : :: std :: os :: raw :: c_int ) -> fz_rect ; } extern "C" { pub fn pdf_array_get_matrix ( ctx : * mut fz_context , array : * mut pdf_obj , index : :: std :: os :: raw :: c_int ) -> fz_matrix ; } extern "C" { pub fn pdf_set_obj_parent ( ctx : * mut fz_context , obj : * mut pdf_obj , num : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_obj_refs ( ctx : * mut fz_context , ref_ : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_obj_parent_num ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_sprint_obj ( ctx : * mut fz_context , buf : * mut :: std :: os :: raw :: c_char , cap : :: std :: os :: raw :: c_int , len : * mut :: std :: os :: raw :: c_int , obj : * mut pdf_obj , tight : :: std :: os :: raw :: c_int , ascii : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_print_obj ( ctx : * mut fz_context , out : * mut fz_output , obj : * mut pdf_obj , tight : :: std :: os :: raw :: c_int , ascii : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_print_encrypted_obj ( ctx : * mut fz_context , out : * mut fz_output , obj : * mut pdf_obj , tight : :: std :: os :: raw :: c_int , ascii : :: std :: os :: raw :: c_int , crypt : * mut pdf_crypt , num : :: std :: os :: raw :: c_int , gen : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_debug_obj ( ctx : * mut fz_context , obj : * mut pdf_obj ) ; } extern "C" { pub fn pdf_new_utf8_from_pdf_string ( ctx : * mut fz_context , srcptr : * const :: std :: os :: raw :: c_char , srclen : usize ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_new_utf8_from_pdf_string_obj ( ctx : * mut fz_context , src : * mut pdf_obj ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_new_utf8_from_pdf_stream_obj ( ctx : * mut fz_context , src : * mut pdf_obj ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_load_stream_or_string_as_utf8 ( ctx : * mut fz_context , src : * mut pdf_obj ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_to_quad ( ctx : * mut fz_context , array : * mut pdf_obj , offset : :: std :: os :: raw :: c_int ) -> fz_quad ; } extern "C" { pub fn pdf_to_rect ( ctx : * mut fz_context , array : * mut pdf_obj ) -> fz_rect ; } extern "C" { pub fn pdf_to_matrix ( ctx : * mut fz_context , array : * mut pdf_obj ) -> fz_matrix ; } extern "C" { pub fn pdf_get_indirect_document ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> * mut pdf_document ; } extern "C" { pub fn pdf_get_bound_document ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> * mut pdf_document ; } extern "C" { pub fn pdf_set_str_len ( ctx : * mut fz_context , obj : * mut pdf_obj , newlen : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_set_int ( ctx : * mut fz_context , obj : * mut pdf_obj , i : i64 ) ; } pub const PDF_ENUM_NULL : _bindgen_ty_24 = 0 ; pub const PDF_ENUM_TRUE : _bindgen_ty_24 = 1 ; pub const PDF_ENUM_FALSE : _bindgen_ty_24 = 2 ; pub const PDF_ENUM_NAME_3D : _bindgen_ty_24 = 3 ; pub const PDF_ENUM_NAME_A : _bindgen_ty_24 = 4 ; pub const PDF_ENUM_NAME_A85 : _bindgen_ty_24 = 5 ; pub const PDF_ENUM_NAME_AA : _bindgen_ty_24 = 6 ; pub const PDF_ENUM_NAME_AC : _bindgen_ty_24 = 7 ; pub const PDF_ENUM_NAME_AESV2 : _bindgen_ty_24 = 8 ; pub const PDF_ENUM_NAME_AESV3 : _bindgen_ty_24 = 9 ; pub const PDF_ENUM_NAME_AHx : _bindgen_ty_24 = 10 ; pub const PDF_ENUM_NAME_AP : _bindgen_ty_24 = 11 ; pub const PDF_ENUM_NAME_AS : _bindgen_ty_24 = 12 ; pub const PDF_ENUM_NAME_ASCII85Decode : _bindgen_ty_24 = 13 ; pub const PDF_ENUM_NAME_ASCIIHexDecode : _bindgen_ty_24 = 14 ; pub const PDF_ENUM_NAME_AcroForm : _bindgen_ty_24 = 15 ; pub const PDF_ENUM_NAME_ActualText : _bindgen_ty_24 = 16 ; pub const PDF_ENUM_NAME_Adobe_PPKLite : _bindgen_ty_24 = 17 ; pub const PDF_ENUM_NAME_All : _bindgen_ty_24 = 18 ; pub const PDF_ENUM_NAME_AllOff : _bindgen_ty_24 = 19 ; pub const PDF_ENUM_NAME_AllOn : _bindgen_ty_24 = 20 ; pub const PDF_ENUM_NAME_Alpha : _bindgen_ty_24 = 21 ; pub const PDF_ENUM_NAME_Alt : _bindgen_ty_24 = 22 ; pub const PDF_ENUM_NAME_Alternate : _bindgen_ty_24 = 23 ; pub const PDF_ENUM_NAME_Annot : _bindgen_ty_24 = 24 ; pub const PDF_ENUM_NAME_Annots : _bindgen_ty_24 = 25 ; pub const PDF_ENUM_NAME_AnyOff : _bindgen_ty_24 = 26 ; pub const PDF_ENUM_NAME_Approved : _bindgen_ty_24 = 27 ; pub const PDF_ENUM_NAME_ArtBox : _bindgen_ty_24 = 28 ; pub const PDF_ENUM_NAME_AsIs : _bindgen_ty_24 = 29 ; pub const PDF_ENUM_NAME_Ascent : _bindgen_ty_24 = 30 ; pub const PDF_ENUM_NAME_AuthEvent : _bindgen_ty_24 = 31 ; pub const PDF_ENUM_NAME_B : _bindgen_ty_24 = 32 ; pub const PDF_ENUM_NAME_BBox : _bindgen_ty_24 = 33 ; pub const PDF_ENUM_NAME_BC : _bindgen_ty_24 = 34 ; pub const PDF_ENUM_NAME_BE : _bindgen_ty_24 = 35 ; pub const PDF_ENUM_NAME_BG : _bindgen_ty_24 = 36 ; pub const PDF_ENUM_NAME_BM : _bindgen_ty_24 = 37 ; pub const PDF_ENUM_NAME_BPC : _bindgen_ty_24 = 38 ; pub const PDF_ENUM_NAME_BS : _bindgen_ty_24 = 39 ; pub const PDF_ENUM_NAME_Background : _bindgen_ty_24 = 40 ; pub const PDF_ENUM_NAME_BaseEncoding : _bindgen_ty_24 = 41 ; pub const PDF_ENUM_NAME_BaseFont : _bindgen_ty_24 = 42 ; pub const PDF_ENUM_NAME_BaseState : _bindgen_ty_24 = 43 ; pub const PDF_ENUM_NAME_BitsPerComponent : _bindgen_ty_24 = 44 ; pub const PDF_ENUM_NAME_BitsPerCoordinate : _bindgen_ty_24 = 45 ; pub const PDF_ENUM_NAME_BitsPerFlag : _bindgen_ty_24 = 46 ; pub const PDF_ENUM_NAME_BitsPerSample : _bindgen_ty_24 = 47 ; pub const PDF_ENUM_NAME_BlackIs1 : _bindgen_ty_24 = 48 ; pub const PDF_ENUM_NAME_BlackPoint : _bindgen_ty_24 = 49 ; pub const PDF_ENUM_NAME_BleedBox : _bindgen_ty_24 = 50 ; pub const PDF_ENUM_NAME_Blinds : _bindgen_ty_24 = 51 ; pub const PDF_ENUM_NAME_Border : _bindgen_ty_24 = 52 ; pub const PDF_ENUM_NAME_Bounds : _bindgen_ty_24 = 53 ; pub const PDF_ENUM_NAME_Box : _bindgen_ty_24 = 54 ; pub const PDF_ENUM_NAME_Bt : _bindgen_ty_24 = 55 ; pub const PDF_ENUM_NAME_Btn : _bindgen_ty_24 = 56 ; pub const PDF_ENUM_NAME_Butt : _bindgen_ty_24 = 57 ; pub const PDF_ENUM_NAME_ByteRange : _bindgen_ty_24 = 58 ; pub const PDF_ENUM_NAME_C : _bindgen_ty_24 = 59 ; pub const PDF_ENUM_NAME_C0 : _bindgen_ty_24 = 60 ; pub const PDF_ENUM_NAME_C1 : _bindgen_ty_24 = 61 ; pub const PDF_ENUM_NAME_CA : _bindgen_ty_24 = 62 ; pub const PDF_ENUM_NAME_CCF : _bindgen_ty_24 = 63 ; pub const PDF_ENUM_NAME_CCITTFaxDecode : _bindgen_ty_24 = 64 ; pub const PDF_ENUM_NAME_CF : _bindgen_ty_24 = 65 ; pub const PDF_ENUM_NAME_CFM : _bindgen_ty_24 = 66 ; pub const PDF_ENUM_NAME_CI : _bindgen_ty_24 = 67 ; pub const PDF_ENUM_NAME_CIDFontType0 : _bindgen_ty_24 = 68 ; pub const PDF_ENUM_NAME_CIDFontType0C : _bindgen_ty_24 = 69 ; pub const PDF_ENUM_NAME_CIDFontType2 : _bindgen_ty_24 = 70 ; pub const PDF_ENUM_NAME_CIDSystemInfo : _bindgen_ty_24 = 71 ; pub const PDF_ENUM_NAME_CIDToGIDMap : _bindgen_ty_24 = 72 ; pub const PDF_ENUM_NAME_CMYK : _bindgen_ty_24 = 73 ; pub const PDF_ENUM_NAME_CS : _bindgen_ty_24 = 74 ; pub const PDF_ENUM_NAME_CalCMYK : _bindgen_ty_24 = 75 ; pub const PDF_ENUM_NAME_CalGray : _bindgen_ty_24 = 76 ; pub const PDF_ENUM_NAME_CalRGB : _bindgen_ty_24 = 77 ; pub const PDF_ENUM_NAME_CapHeight : _bindgen_ty_24 = 78 ; pub const PDF_ENUM_NAME_Caret : _bindgen_ty_24 = 79 ; pub const PDF_ENUM_NAME_Catalog : _bindgen_ty_24 = 80 ; pub const PDF_ENUM_NAME_Ch : _bindgen_ty_24 = 81 ; pub const PDF_ENUM_NAME_CharProcs : _bindgen_ty_24 = 82 ; pub const PDF_ENUM_NAME_Circle : _bindgen_ty_24 = 83 ; pub const PDF_ENUM_NAME_ClosedArrow : _bindgen_ty_24 = 84 ; pub const PDF_ENUM_NAME_Collection : _bindgen_ty_24 = 85 ; pub const PDF_ENUM_NAME_ColorSpace : _bindgen_ty_24 = 86 ; pub const PDF_ENUM_NAME_ColorTransform : _bindgen_ty_24 = 87 ; pub const PDF_ENUM_NAME_Colorants : _bindgen_ty_24 = 88 ; pub const PDF_ENUM_NAME_Colors : _bindgen_ty_24 = 89 ; pub const PDF_ENUM_NAME_Columns : _bindgen_ty_24 = 90 ; pub const PDF_ENUM_NAME_Confidential : _bindgen_ty_24 = 91 ; pub const PDF_ENUM_NAME_Configs : _bindgen_ty_24 = 92 ; pub const PDF_ENUM_NAME_Contents : _bindgen_ty_24 = 93 ; pub const PDF_ENUM_NAME_Coords : _bindgen_ty_24 = 94 ; pub const PDF_ENUM_NAME_Count : _bindgen_ty_24 = 95 ; pub const PDF_ENUM_NAME_Cover : _bindgen_ty_24 = 96 ; pub const PDF_ENUM_NAME_CreationDate : _bindgen_ty_24 = 97 ; pub const PDF_ENUM_NAME_Creator : _bindgen_ty_24 = 98 ; pub const PDF_ENUM_NAME_CropBox : _bindgen_ty_24 = 99 ; pub const PDF_ENUM_NAME_Crypt : _bindgen_ty_24 = 100 ; pub const PDF_ENUM_NAME_D : _bindgen_ty_24 = 101 ; pub const PDF_ENUM_NAME_DA : _bindgen_ty_24 = 102 ; pub const PDF_ENUM_NAME_DC : _bindgen_ty_24 = 103 ; pub const PDF_ENUM_NAME_DCT : _bindgen_ty_24 = 104 ; pub const PDF_ENUM_NAME_DCTDecode : _bindgen_ty_24 = 105 ; pub const PDF_ENUM_NAME_DL : _bindgen_ty_24 = 106 ; pub const PDF_ENUM_NAME_DOS : _bindgen_ty_24 = 107 ; pub const PDF_ENUM_NAME_DP : _bindgen_ty_24 = 108 ; pub const PDF_ENUM_NAME_DR : _bindgen_ty_24 = 109 ; pub const PDF_ENUM_NAME_DS : _bindgen_ty_24 = 110 ; pub const PDF_ENUM_NAME_DV : _bindgen_ty_24 = 111 ; pub const PDF_ENUM_NAME_DW : _bindgen_ty_24 = 112 ; pub const PDF_ENUM_NAME_DW2 : _bindgen_ty_24 = 113 ; pub const PDF_ENUM_NAME_DamagedRowsBeforeError : _bindgen_ty_24 = 114 ; pub const PDF_ENUM_NAME_Decode : _bindgen_ty_24 = 115 ; pub const PDF_ENUM_NAME_DecodeParms : _bindgen_ty_24 = 116 ; pub const PDF_ENUM_NAME_Default : _bindgen_ty_24 = 117 ; pub const PDF_ENUM_NAME_DefaultCMYK : _bindgen_ty_24 = 118 ; pub const PDF_ENUM_NAME_DefaultGray : _bindgen_ty_24 = 119 ; pub const PDF_ENUM_NAME_DefaultRGB : _bindgen_ty_24 = 120 ; pub const PDF_ENUM_NAME_Departmental : _bindgen_ty_24 = 121 ; pub const PDF_ENUM_NAME_Desc : _bindgen_ty_24 = 122 ; pub const PDF_ENUM_NAME_DescendantFonts : _bindgen_ty_24 = 123 ; pub const PDF_ENUM_NAME_Descent : _bindgen_ty_24 = 124 ; pub const PDF_ENUM_NAME_Design : _bindgen_ty_24 = 125 ; pub const PDF_ENUM_NAME_Dest : _bindgen_ty_24 = 126 ; pub const PDF_ENUM_NAME_DestOutputProfile : _bindgen_ty_24 = 127 ; pub const PDF_ENUM_NAME_Dests : _bindgen_ty_24 = 128 ; pub const PDF_ENUM_NAME_DeviceCMYK : _bindgen_ty_24 = 129 ; pub const PDF_ENUM_NAME_DeviceGray : _bindgen_ty_24 = 130 ; pub const PDF_ENUM_NAME_DeviceN : _bindgen_ty_24 = 131 ; pub const PDF_ENUM_NAME_DeviceRGB : _bindgen_ty_24 = 132 ; pub const PDF_ENUM_NAME_Di : _bindgen_ty_24 = 133 ; pub const PDF_ENUM_NAME_Diamond : _bindgen_ty_24 = 134 ; pub const PDF_ENUM_NAME_Differences : _bindgen_ty_24 = 135 ; pub const PDF_ENUM_NAME_Dissolve : _bindgen_ty_24 = 136 ; pub const PDF_ENUM_NAME_Dm : _bindgen_ty_24 = 137 ; pub const PDF_ENUM_NAME_Domain : _bindgen_ty_24 = 138 ; pub const PDF_ENUM_NAME_Draft : _bindgen_ty_24 = 139 ; pub const PDF_ENUM_NAME_Dur : _bindgen_ty_24 = 140 ; pub const PDF_ENUM_NAME_E : _bindgen_ty_24 = 141 ; pub const PDF_ENUM_NAME_EF : _bindgen_ty_24 = 142 ; pub const PDF_ENUM_NAME_EarlyChange : _bindgen_ty_24 = 143 ; pub const PDF_ENUM_NAME_EmbeddedFiles : _bindgen_ty_24 = 144 ; pub const PDF_ENUM_NAME_Encode : _bindgen_ty_24 = 145 ; pub const PDF_ENUM_NAME_EncodedByteAlign : _bindgen_ty_24 = 146 ; pub const PDF_ENUM_NAME_Encoding : _bindgen_ty_24 = 147 ; pub const PDF_ENUM_NAME_Encrypt : _bindgen_ty_24 = 148 ; pub const PDF_ENUM_NAME_EncryptMetadata : _bindgen_ty_24 = 149 ; pub const PDF_ENUM_NAME_EndOfBlock : _bindgen_ty_24 = 150 ; pub const PDF_ENUM_NAME_EndOfLine : _bindgen_ty_24 = 151 ; pub const PDF_ENUM_NAME_Exclude : _bindgen_ty_24 = 152 ; pub const PDF_ENUM_NAME_Experimental : _bindgen_ty_24 = 153 ; pub const PDF_ENUM_NAME_Expired : _bindgen_ty_24 = 154 ; pub const PDF_ENUM_NAME_ExtGState : _bindgen_ty_24 = 155 ; pub const PDF_ENUM_NAME_Extend : _bindgen_ty_24 = 156 ; pub const PDF_ENUM_NAME_F : _bindgen_ty_24 = 157 ; pub const PDF_ENUM_NAME_FL : _bindgen_ty_24 = 158 ; pub const PDF_ENUM_NAME_FRM : _bindgen_ty_24 = 159 ; pub const PDF_ENUM_NAME_FS : _bindgen_ty_24 = 160 ; pub const PDF_ENUM_NAME_FT : _bindgen_ty_24 = 161 ; pub const PDF_ENUM_NAME_Fade : _bindgen_ty_24 = 162 ; pub const PDF_ENUM_NAME_Ff : _bindgen_ty_24 = 163 ; pub const PDF_ENUM_NAME_Fields : _bindgen_ty_24 = 164 ; pub const PDF_ENUM_NAME_FileAttachment : _bindgen_ty_24 = 165 ; pub const PDF_ENUM_NAME_Filespec : _bindgen_ty_24 = 166 ; pub const PDF_ENUM_NAME_Filter : _bindgen_ty_24 = 167 ; pub const PDF_ENUM_NAME_Final : _bindgen_ty_24 = 168 ; pub const PDF_ENUM_NAME_First : _bindgen_ty_24 = 169 ; pub const PDF_ENUM_NAME_FirstChar : _bindgen_ty_24 = 170 ; pub const PDF_ENUM_NAME_FirstPage : _bindgen_ty_24 = 171 ; pub const PDF_ENUM_NAME_Fit : _bindgen_ty_24 = 172 ; pub const PDF_ENUM_NAME_FitB : _bindgen_ty_24 = 173 ; pub const PDF_ENUM_NAME_FitBH : _bindgen_ty_24 = 174 ; pub const PDF_ENUM_NAME_FitBV : _bindgen_ty_24 = 175 ; pub const PDF_ENUM_NAME_FitH : _bindgen_ty_24 = 176 ; pub const PDF_ENUM_NAME_FitR : _bindgen_ty_24 = 177 ; pub const PDF_ENUM_NAME_FitV : _bindgen_ty_24 = 178 ; pub const PDF_ENUM_NAME_Fl : _bindgen_ty_24 = 179 ; pub const PDF_ENUM_NAME_Flags : _bindgen_ty_24 = 180 ; pub const PDF_ENUM_NAME_FlateDecode : _bindgen_ty_24 = 181 ; pub const PDF_ENUM_NAME_Fly : _bindgen_ty_24 = 182 ; pub const PDF_ENUM_NAME_Font : _bindgen_ty_24 = 183 ; pub const PDF_ENUM_NAME_FontBBox : _bindgen_ty_24 = 184 ; pub const PDF_ENUM_NAME_FontDescriptor : _bindgen_ty_24 = 185 ; pub const PDF_ENUM_NAME_FontFile : _bindgen_ty_24 = 186 ; pub const PDF_ENUM_NAME_FontFile2 : _bindgen_ty_24 = 187 ; pub const PDF_ENUM_NAME_FontFile3 : _bindgen_ty_24 = 188 ; pub const PDF_ENUM_NAME_FontMatrix : _bindgen_ty_24 = 189 ; pub const PDF_ENUM_NAME_FontName : _bindgen_ty_24 = 190 ; pub const PDF_ENUM_NAME_ForComment : _bindgen_ty_24 = 191 ; pub const PDF_ENUM_NAME_ForPublicRelease : _bindgen_ty_24 = 192 ; pub const PDF_ENUM_NAME_Form : _bindgen_ty_24 = 193 ; pub const PDF_ENUM_NAME_FormType : _bindgen_ty_24 = 194 ; pub const PDF_ENUM_NAME_FreeText : _bindgen_ty_24 = 195 ; pub const PDF_ENUM_NAME_Function : _bindgen_ty_24 = 196 ; pub const PDF_ENUM_NAME_FunctionType : _bindgen_ty_24 = 197 ; pub const PDF_ENUM_NAME_Functions : _bindgen_ty_24 = 198 ; pub const PDF_ENUM_NAME_G : _bindgen_ty_24 = 199 ; pub const PDF_ENUM_NAME_Gamma : _bindgen_ty_24 = 200 ; pub const PDF_ENUM_NAME_Glitter : _bindgen_ty_24 = 201 ; pub const PDF_ENUM_NAME_GoTo : _bindgen_ty_24 = 202 ; pub const PDF_ENUM_NAME_GoToR : _bindgen_ty_24 = 203 ; pub const PDF_ENUM_NAME_Group : _bindgen_ty_24 = 204 ; pub const PDF_ENUM_NAME_H : _bindgen_ty_24 = 205 ; pub const PDF_ENUM_NAME_Height : _bindgen_ty_24 = 206 ; pub const PDF_ENUM_NAME_Helv : _bindgen_ty_24 = 207 ; pub const PDF_ENUM_NAME_Highlight : _bindgen_ty_24 = 208 ; pub const PDF_ENUM_NAME_I : _bindgen_ty_24 = 209 ; pub const PDF_ENUM_NAME_IC : _bindgen_ty_24 = 210 ; pub const PDF_ENUM_NAME_ICCBased : _bindgen_ty_24 = 211 ; pub const PDF_ENUM_NAME_ID : _bindgen_ty_24 = 212 ; pub const PDF_ENUM_NAME_IM : _bindgen_ty_24 = 213 ; pub const PDF_ENUM_NAME_IRT : _bindgen_ty_24 = 214 ; pub const PDF_ENUM_NAME_Identity : _bindgen_ty_24 = 215 ; pub const PDF_ENUM_NAME_Identity_H : _bindgen_ty_24 = 216 ; pub const PDF_ENUM_NAME_Identity_V : _bindgen_ty_24 = 217 ; pub const PDF_ENUM_NAME_Image : _bindgen_ty_24 = 218 ; pub const PDF_ENUM_NAME_ImageMask : _bindgen_ty_24 = 219 ; pub const PDF_ENUM_NAME_Index : _bindgen_ty_24 = 220 ; pub const PDF_ENUM_NAME_Indexed : _bindgen_ty_24 = 221 ; pub const PDF_ENUM_NAME_Info : _bindgen_ty_24 = 222 ; pub const PDF_ENUM_NAME_Ink : _bindgen_ty_24 = 223 ; pub const PDF_ENUM_NAME_InkList : _bindgen_ty_24 = 224 ; pub const PDF_ENUM_NAME_Intent : _bindgen_ty_24 = 225 ; pub const PDF_ENUM_NAME_Interpolate : _bindgen_ty_24 = 226 ; pub const PDF_ENUM_NAME_IsMap : _bindgen_ty_24 = 227 ; pub const PDF_ENUM_NAME_ItalicAngle : _bindgen_ty_24 = 228 ; pub const PDF_ENUM_NAME_JBIG2Decode : _bindgen_ty_24 = 229 ; pub const PDF_ENUM_NAME_JBIG2Globals : _bindgen_ty_24 = 230 ; pub const PDF_ENUM_NAME_JPXDecode : _bindgen_ty_24 = 231 ; pub const PDF_ENUM_NAME_JS : _bindgen_ty_24 = 232 ; pub const PDF_ENUM_NAME_JavaScript : _bindgen_ty_24 = 233 ; pub const PDF_ENUM_NAME_K : _bindgen_ty_24 = 234 ; pub const PDF_ENUM_NAME_Kids : _bindgen_ty_24 = 235 ; pub const PDF_ENUM_NAME_L : _bindgen_ty_24 = 236 ; pub const PDF_ENUM_NAME_LC : _bindgen_ty_24 = 237 ; pub const PDF_ENUM_NAME_LE : _bindgen_ty_24 = 238 ; pub const PDF_ENUM_NAME_LJ : _bindgen_ty_24 = 239 ; pub const PDF_ENUM_NAME_LW : _bindgen_ty_24 = 240 ; pub const PDF_ENUM_NAME_LZ : _bindgen_ty_24 = 241 ; pub const PDF_ENUM_NAME_LZW : _bindgen_ty_24 = 242 ; pub const PDF_ENUM_NAME_LZWDecode : _bindgen_ty_24 = 243 ; pub const PDF_ENUM_NAME_Lab : _bindgen_ty_24 = 244 ; pub const PDF_ENUM_NAME_Lang : _bindgen_ty_24 = 245 ; pub const PDF_ENUM_NAME_Last : _bindgen_ty_24 = 246 ; pub const PDF_ENUM_NAME_LastChar : _bindgen_ty_24 = 247 ; pub const PDF_ENUM_NAME_LastPage : _bindgen_ty_24 = 248 ; pub const PDF_ENUM_NAME_Launch : _bindgen_ty_24 = 249 ; pub const PDF_ENUM_NAME_Length : _bindgen_ty_24 = 250 ; pub const PDF_ENUM_NAME_Length1 : _bindgen_ty_24 = 251 ; pub const PDF_ENUM_NAME_Length2 : _bindgen_ty_24 = 252 ; pub const PDF_ENUM_NAME_Length3 : _bindgen_ty_24 = 253 ; pub const PDF_ENUM_NAME_Limits : _bindgen_ty_24 = 254 ; pub const PDF_ENUM_NAME_Line : _bindgen_ty_24 = 255 ; pub const PDF_ENUM_NAME_Linearized : _bindgen_ty_24 = 256 ; pub const PDF_ENUM_NAME_Link : _bindgen_ty_24 = 257 ; pub const PDF_ENUM_NAME_Locked : _bindgen_ty_24 = 258 ; pub const PDF_ENUM_NAME_Luminosity : _bindgen_ty_24 = 259 ; pub const PDF_ENUM_NAME_M : _bindgen_ty_24 = 260 ; pub const PDF_ENUM_NAME_MCID : _bindgen_ty_24 = 261 ; pub const PDF_ENUM_NAME_MK : _bindgen_ty_24 = 262 ; pub const PDF_ENUM_NAME_ML : _bindgen_ty_24 = 263 ; pub const PDF_ENUM_NAME_MMType1 : _bindgen_ty_24 = 264 ; pub const PDF_ENUM_NAME_Mac : _bindgen_ty_24 = 265 ; pub const PDF_ENUM_NAME_Mask : _bindgen_ty_24 = 266 ; pub const PDF_ENUM_NAME_Matrix : _bindgen_ty_24 = 267 ; pub const PDF_ENUM_NAME_Matte : _bindgen_ty_24 = 268 ; pub const PDF_ENUM_NAME_MaxLen : _bindgen_ty_24 = 269 ; pub const PDF_ENUM_NAME_MediaBox : _bindgen_ty_24 = 270 ; pub const PDF_ENUM_NAME_Metadata : _bindgen_ty_24 = 271 ; pub const PDF_ENUM_NAME_MissingWidth : _bindgen_ty_24 = 272 ; pub const PDF_ENUM_NAME_ModDate : _bindgen_ty_24 = 273 ; pub const PDF_ENUM_NAME_Movie : _bindgen_ty_24 = 274 ; pub const PDF_ENUM_NAME_Multiply : _bindgen_ty_24 = 275 ; pub const PDF_ENUM_NAME_N : _bindgen_ty_24 = 276 ; pub const PDF_ENUM_NAME_Name : _bindgen_ty_24 = 277 ; pub const PDF_ENUM_NAME_Named : _bindgen_ty_24 = 278 ; pub const PDF_ENUM_NAME_Names : _bindgen_ty_24 = 279 ; pub const PDF_ENUM_NAME_NewWindow : _bindgen_ty_24 = 280 ; pub const PDF_ENUM_NAME_Next : _bindgen_ty_24 = 281 ; pub const PDF_ENUM_NAME_NextPage : _bindgen_ty_24 = 282 ; pub const PDF_ENUM_NAME_None : _bindgen_ty_24 = 283 ; pub const PDF_ENUM_NAME_Normal : _bindgen_ty_24 = 284 ; pub const PDF_ENUM_NAME_NotApproved : _bindgen_ty_24 = 285 ; pub const PDF_ENUM_NAME_NotForPublicRelease : _bindgen_ty_24 = 286 ; pub const PDF_ENUM_NAME_Nums : _bindgen_ty_24 = 287 ; pub const PDF_ENUM_NAME_O : _bindgen_ty_24 = 288 ; pub const PDF_ENUM_NAME_OC : _bindgen_ty_24 = 289 ; pub const PDF_ENUM_NAME_OCG : _bindgen_ty_24 = 290 ; pub const PDF_ENUM_NAME_OCGs : _bindgen_ty_24 = 291 ; pub const PDF_ENUM_NAME_OCMD : _bindgen_ty_24 = 292 ; pub const PDF_ENUM_NAME_OCProperties : _bindgen_ty_24 = 293 ; pub const PDF_ENUM_NAME_OE : _bindgen_ty_24 = 294 ; pub const PDF_ENUM_NAME_OFF : _bindgen_ty_24 = 295 ; pub const PDF_ENUM_NAME_ON : _bindgen_ty_24 = 296 ; pub const PDF_ENUM_NAME_OP : _bindgen_ty_24 = 297 ; pub const PDF_ENUM_NAME_OPM : _bindgen_ty_24 = 298 ; pub const PDF_ENUM_NAME_ObjStm : _bindgen_ty_24 = 299 ; pub const PDF_ENUM_NAME_Of : _bindgen_ty_24 = 300 ; pub const PDF_ENUM_NAME_Off : _bindgen_ty_24 = 301 ; pub const PDF_ENUM_NAME_Open : _bindgen_ty_24 = 302 ; pub const PDF_ENUM_NAME_OpenArrow : _bindgen_ty_24 = 303 ; pub const PDF_ENUM_NAME_OpenType : _bindgen_ty_24 = 304 ; pub const PDF_ENUM_NAME_Opt : _bindgen_ty_24 = 305 ; pub const PDF_ENUM_NAME_Order : _bindgen_ty_24 = 306 ; pub const PDF_ENUM_NAME_Ordering : _bindgen_ty_24 = 307 ; pub const PDF_ENUM_NAME_Outlines : _bindgen_ty_24 = 308 ; pub const PDF_ENUM_NAME_OutputIntents : _bindgen_ty_24 = 309 ; pub const PDF_ENUM_NAME_P : _bindgen_ty_24 = 310 ; pub const PDF_ENUM_NAME_PDF : _bindgen_ty_24 = 311 ; pub const PDF_ENUM_NAME_PS : _bindgen_ty_24 = 312 ; pub const PDF_ENUM_NAME_Page : _bindgen_ty_24 = 313 ; pub const PDF_ENUM_NAME_PageMode : _bindgen_ty_24 = 314 ; pub const PDF_ENUM_NAME_Pages : _bindgen_ty_24 = 315 ; pub const PDF_ENUM_NAME_PaintType : _bindgen_ty_24 = 316 ; pub const PDF_ENUM_NAME_Params : _bindgen_ty_24 = 317 ; pub const PDF_ENUM_NAME_Parent : _bindgen_ty_24 = 318 ; pub const PDF_ENUM_NAME_Pattern : _bindgen_ty_24 = 319 ; pub const PDF_ENUM_NAME_PatternType : _bindgen_ty_24 = 320 ; pub const PDF_ENUM_NAME_Perms : _bindgen_ty_24 = 321 ; pub const PDF_ENUM_NAME_PolyLine : _bindgen_ty_24 = 322 ; pub const PDF_ENUM_NAME_Polygon : _bindgen_ty_24 = 323 ; pub const PDF_ENUM_NAME_Popup : _bindgen_ty_24 = 324 ; pub const PDF_ENUM_NAME_Predictor : _bindgen_ty_24 = 325 ; pub const PDF_ENUM_NAME_Prev : _bindgen_ty_24 = 326 ; pub const PDF_ENUM_NAME_PrevPage : _bindgen_ty_24 = 327 ; pub const PDF_ENUM_NAME_Print : _bindgen_ty_24 = 328 ; pub const PDF_ENUM_NAME_PrinterMark : _bindgen_ty_24 = 329 ; pub const PDF_ENUM_NAME_ProcSet : _bindgen_ty_24 = 330 ; pub const PDF_ENUM_NAME_Producer : _bindgen_ty_24 = 331 ; pub const PDF_ENUM_NAME_Properties : _bindgen_ty_24 = 332 ; pub const PDF_ENUM_NAME_Push : _bindgen_ty_24 = 333 ; pub const PDF_ENUM_NAME_Q : _bindgen_ty_24 = 334 ; pub const PDF_ENUM_NAME_QuadPoints : _bindgen_ty_24 = 335 ; pub const PDF_ENUM_NAME_R : _bindgen_ty_24 = 336 ; pub const PDF_ENUM_NAME_RBGroups : _bindgen_ty_24 = 337 ; pub const PDF_ENUM_NAME_RC : _bindgen_ty_24 = 338 ; pub const PDF_ENUM_NAME_RClosedArrow : _bindgen_ty_24 = 339 ; pub const PDF_ENUM_NAME_RGB : _bindgen_ty_24 = 340 ; pub const PDF_ENUM_NAME_RI : _bindgen_ty_24 = 341 ; pub const PDF_ENUM_NAME_RL : _bindgen_ty_24 = 342 ; pub const PDF_ENUM_NAME_ROpenArrow : _bindgen_ty_24 = 343 ; pub const PDF_ENUM_NAME_Range : _bindgen_ty_24 = 344 ; pub const PDF_ENUM_NAME_Rect : _bindgen_ty_24 = 345 ; pub const PDF_ENUM_NAME_Redact : _bindgen_ty_24 = 346 ; pub const PDF_ENUM_NAME_Ref : _bindgen_ty_24 = 347 ; pub const PDF_ENUM_NAME_Registry : _bindgen_ty_24 = 348 ; pub const PDF_ENUM_NAME_ResetForm : _bindgen_ty_24 = 349 ; pub const PDF_ENUM_NAME_Resources : _bindgen_ty_24 = 350 ; pub const PDF_ENUM_NAME_Root : _bindgen_ty_24 = 351 ; pub const PDF_ENUM_NAME_Rotate : _bindgen_ty_24 = 352 ; pub const PDF_ENUM_NAME_Rows : _bindgen_ty_24 = 353 ; pub const PDF_ENUM_NAME_RunLengthDecode : _bindgen_ty_24 = 354 ; pub const PDF_ENUM_NAME_S : _bindgen_ty_24 = 355 ; pub const PDF_ENUM_NAME_SMask : _bindgen_ty_24 = 356 ; pub const PDF_ENUM_NAME_SMaskInData : _bindgen_ty_24 = 357 ; pub const PDF_ENUM_NAME_Schema : _bindgen_ty_24 = 358 ; pub const PDF_ENUM_NAME_Screen : _bindgen_ty_24 = 359 ; pub const PDF_ENUM_NAME_Separation : _bindgen_ty_24 = 360 ; pub const PDF_ENUM_NAME_Shading : _bindgen_ty_24 = 361 ; pub const PDF_ENUM_NAME_ShadingType : _bindgen_ty_24 = 362 ; pub const PDF_ENUM_NAME_Si : _bindgen_ty_24 = 363 ; pub const PDF_ENUM_NAME_Sig : _bindgen_ty_24 = 364 ; pub const PDF_ENUM_NAME_SigFlags : _bindgen_ty_24 = 365 ; pub const PDF_ENUM_NAME_Size : _bindgen_ty_24 = 366 ; pub const PDF_ENUM_NAME_Slash : _bindgen_ty_24 = 367 ; pub const PDF_ENUM_NAME_Sold : _bindgen_ty_24 = 368 ; pub const PDF_ENUM_NAME_Sound : _bindgen_ty_24 = 369 ; pub const PDF_ENUM_NAME_Split : _bindgen_ty_24 = 370 ; pub const PDF_ENUM_NAME_Square : _bindgen_ty_24 = 371 ; pub const PDF_ENUM_NAME_Squiggly : _bindgen_ty_24 = 372 ; pub const PDF_ENUM_NAME_Stamp : _bindgen_ty_24 = 373 ; pub const PDF_ENUM_NAME_Standard : _bindgen_ty_24 = 374 ; pub const PDF_ENUM_NAME_StdCF : _bindgen_ty_24 = 375 ; pub const PDF_ENUM_NAME_StemV : _bindgen_ty_24 = 376 ; pub const PDF_ENUM_NAME_StmF : _bindgen_ty_24 = 377 ; pub const PDF_ENUM_NAME_StrF : _bindgen_ty_24 = 378 ; pub const PDF_ENUM_NAME_StrikeOut : _bindgen_ty_24 = 379 ; pub const PDF_ENUM_NAME_StructParents : _bindgen_ty_24 = 380 ; pub const PDF_ENUM_NAME_SubFilter : _bindgen_ty_24 = 381 ; pub const PDF_ENUM_NAME_Subtype : _bindgen_ty_24 = 382 ; pub const PDF_ENUM_NAME_Subtype2 : _bindgen_ty_24 = 383 ; pub const PDF_ENUM_NAME_Supplement : _bindgen_ty_24 = 384 ; pub const PDF_ENUM_NAME_Symb : _bindgen_ty_24 = 385 ; pub const PDF_ENUM_NAME_T : _bindgen_ty_24 = 386 ; pub const PDF_ENUM_NAME_TI : _bindgen_ty_24 = 387 ; pub const PDF_ENUM_NAME_TR : _bindgen_ty_24 = 388 ; pub const PDF_ENUM_NAME_TR2 : _bindgen_ty_24 = 389 ; pub const PDF_ENUM_NAME_TU : _bindgen_ty_24 = 390 ; pub const PDF_ENUM_NAME_Text : _bindgen_ty_24 = 391 ; pub const PDF_ENUM_NAME_TilingType : _bindgen_ty_24 = 392 ; pub const PDF_ENUM_NAME_Times : _bindgen_ty_24 = 393 ; pub const PDF_ENUM_NAME_Title : _bindgen_ty_24 = 394 ; pub const PDF_ENUM_NAME_ToUnicode : _bindgen_ty_24 = 395 ; pub const PDF_ENUM_NAME_TopSecret : _bindgen_ty_24 = 396 ; pub const PDF_ENUM_NAME_Trans : _bindgen_ty_24 = 397 ; pub const PDF_ENUM_NAME_Transparency : _bindgen_ty_24 = 398 ; pub const PDF_ENUM_NAME_TrapNet : _bindgen_ty_24 = 399 ; pub const PDF_ENUM_NAME_TrimBox : _bindgen_ty_24 = 400 ; pub const PDF_ENUM_NAME_TrueType : _bindgen_ty_24 = 401 ; pub const PDF_ENUM_NAME_Tx : _bindgen_ty_24 = 402 ; pub const PDF_ENUM_NAME_Type : _bindgen_ty_24 = 403 ; pub const PDF_ENUM_NAME_Type0 : _bindgen_ty_24 = 404 ; pub const PDF_ENUM_NAME_Type1 : _bindgen_ty_24 = 405 ; pub const PDF_ENUM_NAME_Type1C : _bindgen_ty_24 = 406 ; pub const PDF_ENUM_NAME_Type3 : _bindgen_ty_24 = 407 ; pub const PDF_ENUM_NAME_U : _bindgen_ty_24 = 408 ; pub const PDF_ENUM_NAME_UE : _bindgen_ty_24 = 409 ; pub const PDF_ENUM_NAME_UF : _bindgen_ty_24 = 410 ; pub const PDF_ENUM_NAME_URI : _bindgen_ty_24 = 411 ; pub const PDF_ENUM_NAME_URL : _bindgen_ty_24 = 412 ; pub const PDF_ENUM_NAME_Unchanged : _bindgen_ty_24 = 413 ; pub const PDF_ENUM_NAME_Uncover : _bindgen_ty_24 = 414 ; pub const PDF_ENUM_NAME_Underline : _bindgen_ty_24 = 415 ; pub const PDF_ENUM_NAME_Unix : _bindgen_ty_24 = 416 ; pub const PDF_ENUM_NAME_Usage : _bindgen_ty_24 = 417 ; pub const PDF_ENUM_NAME_UseBlackPtComp : _bindgen_ty_24 = 418 ; pub const PDF_ENUM_NAME_UseCMap : _bindgen_ty_24 = 419 ; pub const PDF_ENUM_NAME_UseOutlines : _bindgen_ty_24 = 420 ; pub const PDF_ENUM_NAME_UserUnit : _bindgen_ty_24 = 421 ; pub const PDF_ENUM_NAME_V : _bindgen_ty_24 = 422 ; pub const PDF_ENUM_NAME_V2 : _bindgen_ty_24 = 423 ; pub const PDF_ENUM_NAME_VE : _bindgen_ty_24 = 424 ; pub const PDF_ENUM_NAME_Version : _bindgen_ty_24 = 425 ; pub const PDF_ENUM_NAME_Vertices : _bindgen_ty_24 = 426 ; pub const PDF_ENUM_NAME_VerticesPerRow : _bindgen_ty_24 = 427 ; pub const PDF_ENUM_NAME_View : _bindgen_ty_24 = 428 ; pub const PDF_ENUM_NAME_W : _bindgen_ty_24 = 429 ; pub const PDF_ENUM_NAME_W2 : _bindgen_ty_24 = 430 ; pub const PDF_ENUM_NAME_WMode : _bindgen_ty_24 = 431 ; pub const PDF_ENUM_NAME_Watermark : _bindgen_ty_24 = 432 ; pub const PDF_ENUM_NAME_WhitePoint : _bindgen_ty_24 = 433 ; pub const PDF_ENUM_NAME_Widget : _bindgen_ty_24 = 434 ; pub const PDF_ENUM_NAME_Width : _bindgen_ty_24 = 435 ; pub const PDF_ENUM_NAME_Widths : _bindgen_ty_24 = 436 ; pub const PDF_ENUM_NAME_WinAnsiEncoding : _bindgen_ty_24 = 437 ; pub const PDF_ENUM_NAME_Wipe : _bindgen_ty_24 = 438 ; pub const PDF_ENUM_NAME_XHeight : _bindgen_ty_24 = 439 ; pub const PDF_ENUM_NAME_XML : _bindgen_ty_24 = 440 ; pub const PDF_ENUM_NAME_XObject : _bindgen_ty_24 = 441 ; pub const PDF_ENUM_NAME_XRef : _bindgen_ty_24 = 442 ; pub const PDF_ENUM_NAME_XRefStm : _bindgen_ty_24 = 443 ; pub const PDF_ENUM_NAME_XStep : _bindgen_ty_24 = 444 ; pub const PDF_ENUM_NAME_XYZ : _bindgen_ty_24 = 445 ; pub const PDF_ENUM_NAME_YStep : _bindgen_ty_24 = 446 ; pub const PDF_ENUM_NAME_Yes : _bindgen_ty_24 = 447 ; pub const PDF_ENUM_NAME_ZaDb : _bindgen_ty_24 = 448 ; pub const PDF_ENUM_NAME_adbe_pkcs7_detached : _bindgen_ty_24 = 449 ; pub const PDF_ENUM_NAME_ca : _bindgen_ty_24 = 450 ; pub const PDF_ENUM_NAME_n0 : _bindgen_ty_24 = 451 ; pub const PDF_ENUM_NAME_n1 : _bindgen_ty_24 = 452 ; pub const PDF_ENUM_NAME_n2 : _bindgen_ty_24 = 453 ; pub const PDF_ENUM_NAME_op : _bindgen_ty_24 = 454 ; pub const PDF_ENUM_LIMIT : _bindgen_ty_24 = 455 ; pub type _bindgen_ty_24 = u32 ; pub type pdf_lexbuf = pdf_lexbuf_s ; pub type pdf_lexbuf_large = pdf_lexbuf_large_s ; pub type pdf_xref = pdf_xref_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_ocg_descriptor_s { _unused : [ u8 ; 0 ] , } pub type pdf_ocg_descriptor = pdf_ocg_descriptor_s ; pub type pdf_page = pdf_page_s ; pub type pdf_annot = pdf_annot_s ; pub type pdf_widget = pdf_annot_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_js_s { _unused : [ u8 ; 0 ] , } pub type pdf_js = pdf_js_s ; pub const PDF_LEXBUF_SMALL : _bindgen_ty_25 = 256 ; pub const PDF_LEXBUF_LARGE : _bindgen_ty_25 = 65536 ; pub type _bindgen_ty_25 = u32 ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct pdf_lexbuf_s { pub size : :: std :: os :: raw :: c_int , pub base_size : :: std :: os :: raw :: c_int , pub len : :: std :: os :: raw :: c_int , pub i : i64 , pub f : f32 , pub scratch : * mut :: std :: os :: raw :: c_char , pub buffer : [ :: std :: os :: raw :: c_char ; 256usize ] , } # [ test ] fn bindgen_test_layout_pdf_lexbuf_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_lexbuf_s > ( ) , 296usize , concat ! ( "Size of: " , stringify ! ( pdf_lexbuf_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_lexbuf_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_lexbuf_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_lexbuf_s > ( ) ) ) . size as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_lexbuf_s ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_lexbuf_s > ( ) ) ) . base_size as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( pdf_lexbuf_s ) , "::" , stringify ! ( base_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_lexbuf_s > ( ) ) ) . len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_lexbuf_s ) , "::" , stringify ! ( len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_lexbuf_s > ( ) ) ) . i as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_lexbuf_s ) , "::" , stringify ! ( i ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_lexbuf_s > ( ) ) ) . f as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_lexbuf_s ) , "::" , stringify ! ( f ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_lexbuf_s > ( ) ) ) . scratch as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_lexbuf_s ) , "::" , stringify ! ( scratch ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_lexbuf_s > ( ) ) ) . buffer as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( pdf_lexbuf_s ) , "::" , stringify ! ( buffer ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct pdf_lexbuf_large_s { pub base : pdf_lexbuf , pub buffer : [ :: std :: os :: raw :: c_char ; 65280usize ] , } # [ test ] fn bindgen_test_layout_pdf_lexbuf_large_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_lexbuf_large_s > ( ) , 65576usize , concat ! ( "Size of: " , stringify ! ( pdf_lexbuf_large_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_lexbuf_large_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_lexbuf_large_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_lexbuf_large_s > ( ) ) ) . base as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_lexbuf_large_s ) , "::" , stringify ! ( base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_lexbuf_large_s > ( ) ) ) . buffer as * const _ as usize } , 296usize , concat ! ( "Offset of field: " , stringify ! ( pdf_lexbuf_large_s ) , "::" , stringify ! ( buffer ) ) ) ; } pub type pdf_doc_event = pdf_doc_event_s ; pub type pdf_doc_event_cb = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , doc : * mut pdf_document , event : * mut pdf_doc_event , data : * mut :: std :: os :: raw :: c_void ) > ; extern "C" { pub fn pdf_open_document ( ctx : * mut fz_context , filename : * const :: std :: os :: raw :: c_char ) -> * mut pdf_document ; } extern "C" { pub fn pdf_open_document_with_stream ( ctx : * mut fz_context , file : * mut fz_stream ) -> * mut pdf_document ; } extern "C" { pub fn pdf_drop_document ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_keep_document ( ctx : * mut fz_context , doc : * mut pdf_document ) -> * mut pdf_document ; } extern "C" { pub fn pdf_specifics ( ctx : * mut fz_context , doc : * mut fz_document ) -> * mut pdf_document ; } extern "C" { pub fn pdf_document_from_fz_document ( ctx : * mut fz_context , ptr : * mut fz_document ) -> * mut pdf_document ; } extern "C" { pub fn pdf_page_from_fz_page ( ctx : * mut fz_context , ptr : * mut fz_page ) -> * mut pdf_page ; } extern "C" { pub fn pdf_needs_password ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_authenticate_password ( ctx : * mut fz_context , doc : * mut pdf_document , pw : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_has_permission ( ctx : * mut fz_context , doc : * mut pdf_document , p : fz_permission ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_lookup_metadata ( ctx : * mut fz_context , doc : * mut pdf_document , key : * const :: std :: os :: raw :: c_char , ptr : * mut :: std :: os :: raw :: c_char , size : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_load_outline ( ctx : * mut fz_context , doc : * mut pdf_document ) -> * mut fz_outline ; } extern "C" { pub fn pdf_count_layer_configs ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_layer_config { pub name : * const :: std :: os :: raw :: c_char , pub creator : * const :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_pdf_layer_config ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_layer_config > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( pdf_layer_config ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_layer_config > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_layer_config ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_layer_config > ( ) ) ) . name as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_layer_config ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_layer_config > ( ) ) ) . creator as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_layer_config ) , "::" , stringify ! ( creator ) ) ) ; } extern "C" { pub fn pdf_layer_config_info ( ctx : * mut fz_context , doc : * mut pdf_document , config_num : :: std :: os :: raw :: c_int , info : * mut pdf_layer_config ) ; } extern "C" { pub fn pdf_select_layer_config ( ctx : * mut fz_context , doc : * mut pdf_document , config_num : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_count_layer_config_ui ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_select_layer_config_ui ( ctx : * mut fz_context , doc : * mut pdf_document , ui : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_deselect_layer_config_ui ( ctx : * mut fz_context , doc : * mut pdf_document , ui : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_toggle_layer_config_ui ( ctx : * mut fz_context , doc : * mut pdf_document , ui : :: std :: os :: raw :: c_int ) ; } pub const pdf_layer_config_ui_type_PDF_LAYER_UI_LABEL : pdf_layer_config_ui_type = 0 ; pub const pdf_layer_config_ui_type_PDF_LAYER_UI_CHECKBOX : pdf_layer_config_ui_type = 1 ; pub const pdf_layer_config_ui_type_PDF_LAYER_UI_RADIOBOX : pdf_layer_config_ui_type = 2 ; pub type pdf_layer_config_ui_type = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_layer_config_ui { pub text : * const :: std :: os :: raw :: c_char , pub depth : :: std :: os :: raw :: c_int , pub type_ : pdf_layer_config_ui_type , pub selected : :: std :: os :: raw :: c_int , pub locked : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_pdf_layer_config_ui ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_layer_config_ui > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( pdf_layer_config_ui ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_layer_config_ui > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_layer_config_ui ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_layer_config_ui > ( ) ) ) . text as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_layer_config_ui ) , "::" , stringify ! ( text ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_layer_config_ui > ( ) ) ) . depth as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_layer_config_ui ) , "::" , stringify ! ( depth ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_layer_config_ui > ( ) ) ) . type_ as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( pdf_layer_config_ui ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_layer_config_ui > ( ) ) ) . selected as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_layer_config_ui ) , "::" , stringify ! ( selected ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_layer_config_ui > ( ) ) ) . locked as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( pdf_layer_config_ui ) , "::" , stringify ! ( locked ) ) ) ; } extern "C" { pub fn pdf_layer_config_ui_info ( ctx : * mut fz_context , doc : * mut pdf_document , ui : :: std :: os :: raw :: c_int , info : * mut pdf_layer_config_ui ) ; } extern "C" { pub fn pdf_set_layer_config_as_default ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_has_unsaved_changes ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } pub const pdf_signature_error_PDF_SIGNATURE_ERROR_OKAY : pdf_signature_error = 0 ; pub const pdf_signature_error_PDF_SIGNATURE_ERROR_NO_SIGNATURES : pdf_signature_error = 1 ; pub const pdf_signature_error_PDF_SIGNATURE_ERROR_NO_CERTIFICATE : pdf_signature_error = 2 ; pub const pdf_signature_error_PDF_SIGNATURE_ERROR_DIGEST_FAILURE : pdf_signature_error = 3 ; pub const pdf_signature_error_PDF_SIGNATURE_ERROR_SELF_SIGNED : pdf_signature_error = 4 ; pub const pdf_signature_error_PDF_SIGNATURE_ERROR_SELF_SIGNED_IN_CHAIN : pdf_signature_error = 5 ; pub const pdf_signature_error_PDF_SIGNATURE_ERROR_NOT_TRUSTED : pdf_signature_error = 6 ; pub const pdf_signature_error_PDF_SIGNATURE_ERROR_UNKNOWN : pdf_signature_error = 7 ; pub type pdf_signature_error = u32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_pkcs7_designated_name_s { pub cn : * mut :: std :: os :: raw :: c_char , pub o : * mut :: std :: os :: raw :: c_char , pub ou : * mut :: std :: os :: raw :: c_char , pub email : * mut :: std :: os :: raw :: c_char , pub c : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_pdf_pkcs7_designated_name_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_pkcs7_designated_name_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( pdf_pkcs7_designated_name_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_pkcs7_designated_name_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_pkcs7_designated_name_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pkcs7_designated_name_s > ( ) ) ) . cn as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pkcs7_designated_name_s ) , "::" , stringify ! ( cn ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pkcs7_designated_name_s > ( ) ) ) . o as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pkcs7_designated_name_s ) , "::" , stringify ! ( o ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pkcs7_designated_name_s > ( ) ) ) . ou as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pkcs7_designated_name_s ) , "::" , stringify ! ( ou ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pkcs7_designated_name_s > ( ) ) ) . email as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pkcs7_designated_name_s ) , "::" , stringify ! ( email ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pkcs7_designated_name_s > ( ) ) ) . c as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pkcs7_designated_name_s ) , "::" , stringify ! ( c ) ) ) ; } pub type pdf_pkcs7_designated_name = pdf_pkcs7_designated_name_s ; pub type pdf_pkcs7_signer = pdf_pkcs7_signer_s ; pub type pdf_pkcs7_keep_fn = :: std :: option :: Option < unsafe extern "C" fn ( signer : * mut pdf_pkcs7_signer ) -> * mut pdf_pkcs7_signer > ; pub type pdf_pkcs7_drop_fn = :: std :: option :: Option < unsafe extern "C" fn ( signer : * mut pdf_pkcs7_signer ) > ; pub type pdf_pkcs7_designated_name_fn = :: std :: option :: Option < unsafe extern "C" fn ( signer : * mut pdf_pkcs7_signer ) -> * mut pdf_pkcs7_designated_name > ; pub type pdf_pkcs7_drop_designated_name_fn = :: std :: option :: Option < unsafe extern "C" fn ( signer : * mut pdf_pkcs7_signer , name : * mut pdf_pkcs7_designated_name ) > ; pub type pdf_pkcs7_max_digest_size_fn = :: std :: option :: Option < unsafe extern "C" fn ( signer : * mut pdf_pkcs7_signer ) -> :: std :: os :: raw :: c_int > ; pub type pdf_pkcs7_create_digest_fn = :: std :: option :: Option < unsafe extern "C" fn ( signer : * mut pdf_pkcs7_signer , in_ : * mut fz_stream , digest : * mut :: std :: os :: raw :: c_uchar , digest_len : * mut :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_pkcs7_signer_s { pub keep : pdf_pkcs7_keep_fn , pub drop : pdf_pkcs7_drop_fn , pub designated_name : pdf_pkcs7_designated_name_fn , pub drop_designated_name : pdf_pkcs7_drop_designated_name_fn , pub max_digest_size : pdf_pkcs7_max_digest_size_fn , pub create_digest : pdf_pkcs7_create_digest_fn , } # [ test ] fn bindgen_test_layout_pdf_pkcs7_signer_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_pkcs7_signer_s > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( pdf_pkcs7_signer_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_pkcs7_signer_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_pkcs7_signer_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pkcs7_signer_s > ( ) ) ) . keep as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pkcs7_signer_s ) , "::" , stringify ! ( keep ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pkcs7_signer_s > ( ) ) ) . drop as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pkcs7_signer_s ) , "::" , stringify ! ( drop ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pkcs7_signer_s > ( ) ) ) . designated_name as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pkcs7_signer_s ) , "::" , stringify ! ( designated_name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pkcs7_signer_s > ( ) ) ) . drop_designated_name as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pkcs7_signer_s ) , "::" , stringify ! ( drop_designated_name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pkcs7_signer_s > ( ) ) ) . max_digest_size as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pkcs7_signer_s ) , "::" , stringify ! ( max_digest_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pkcs7_signer_s > ( ) ) ) . create_digest as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pkcs7_signer_s ) , "::" , stringify ! ( create_digest ) ) ) ; } pub type pdf_unsaved_sig = pdf_unsaved_sig_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_unsaved_sig_s { pub field : * mut pdf_obj , pub byte_range_start : :: std :: os :: raw :: c_int , pub byte_range_end : :: std :: os :: raw :: c_int , pub contents_start : :: std :: os :: raw :: c_int , pub contents_end : :: std :: os :: raw :: c_int , pub signer : * mut pdf_pkcs7_signer , pub next : * mut pdf_unsaved_sig , } # [ test ] fn bindgen_test_layout_pdf_unsaved_sig_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_unsaved_sig_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( pdf_unsaved_sig_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_unsaved_sig_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_unsaved_sig_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_unsaved_sig_s > ( ) ) ) . field as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_unsaved_sig_s ) , "::" , stringify ! ( field ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_unsaved_sig_s > ( ) ) ) . byte_range_start as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_unsaved_sig_s ) , "::" , stringify ! ( byte_range_start ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_unsaved_sig_s > ( ) ) ) . byte_range_end as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( pdf_unsaved_sig_s ) , "::" , stringify ! ( byte_range_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_unsaved_sig_s > ( ) ) ) . contents_start as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_unsaved_sig_s ) , "::" , stringify ! ( contents_start ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_unsaved_sig_s > ( ) ) ) . contents_end as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( pdf_unsaved_sig_s ) , "::" , stringify ! ( contents_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_unsaved_sig_s > ( ) ) ) . signer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_unsaved_sig_s ) , "::" , stringify ! ( signer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_unsaved_sig_s > ( ) ) ) . next as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_unsaved_sig_s ) , "::" , stringify ! ( next ) ) ) ; } pub type pdf_rev_page_map = pdf_rev_page_map_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_rev_page_map_s { pub page : :: std :: os :: raw :: c_int , pub object : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_pdf_rev_page_map_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_rev_page_map_s > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( pdf_rev_page_map_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_rev_page_map_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( pdf_rev_page_map_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_rev_page_map_s > ( ) ) ) . page as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_rev_page_map_s ) , "::" , stringify ! ( page ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_rev_page_map_s > ( ) ) ) . object as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( pdf_rev_page_map_s ) , "::" , stringify ! ( object ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_hint_page { pub number : :: std :: os :: raw :: c_int , pub offset : i64 , pub index : i64 , } # [ test ] fn bindgen_test_layout_pdf_hint_page ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_hint_page > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( pdf_hint_page ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_hint_page > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_hint_page ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_hint_page > ( ) ) ) . number as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_hint_page ) , "::" , stringify ! ( number ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_hint_page > ( ) ) ) . offset as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_hint_page ) , "::" , stringify ! ( offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_hint_page > ( ) ) ) . index as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_hint_page ) , "::" , stringify ! ( index ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_hint_shared { pub number : :: std :: os :: raw :: c_int , pub offset : i64 , } # [ test ] fn bindgen_test_layout_pdf_hint_shared ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_hint_shared > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( pdf_hint_shared ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_hint_shared > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_hint_shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_hint_shared > ( ) ) ) . number as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_hint_shared ) , "::" , stringify ! ( number ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_hint_shared > ( ) ) ) . offset as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_hint_shared ) , "::" , stringify ! ( offset ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct pdf_document_s { pub super_ : fz_document , pub file : * mut fz_stream , pub version : :: std :: os :: raw :: c_int , pub startxref : i64 , pub file_size : i64 , pub crypt : * mut pdf_crypt , pub ocg : * mut pdf_ocg_descriptor , pub oi : * mut fz_colorspace , pub max_xref_len : :: std :: os :: raw :: c_int , pub num_xref_sections : :: std :: os :: raw :: c_int , pub saved_num_xref_sections : :: std :: os :: raw :: c_int , pub num_incremental_sections : :: std :: os :: raw :: c_int , pub xref_base : :: std :: os :: raw :: c_int , pub disallow_new_increments : :: std :: os :: raw :: c_int , pub xref_sections : * mut pdf_xref , pub saved_xref_sections : * mut pdf_xref , pub xref_index : * mut :: std :: os :: raw :: c_int , pub freeze_updates : :: std :: os :: raw :: c_int , pub has_xref_streams : :: std :: os :: raw :: c_int , pub has_old_style_xrefs : :: std :: os :: raw :: c_int , pub rev_page_count : :: std :: os :: raw :: c_int , pub rev_page_map : * mut pdf_rev_page_map , pub repair_attempted : :: std :: os :: raw :: c_int , pub file_reading_linearly : :: std :: os :: raw :: c_int , pub file_length : i64 , pub linear_page_count : :: std :: os :: raw :: c_int , pub linear_obj : * mut pdf_obj , pub linear_page_refs : * mut * mut pdf_obj , pub linear_page1_obj_num : :: std :: os :: raw :: c_int , pub linear_pos : i64 , pub linear_page_num : :: std :: os :: raw :: c_int , pub hint_object_offset : :: std :: os :: raw :: c_int , pub hint_object_length : :: std :: os :: raw :: c_int , pub hints_loaded : :: std :: os :: raw :: c_int , pub hint_page : * mut pdf_hint_page , pub hint_shared_ref : * mut :: std :: os :: raw :: c_int , pub hint_shared : * mut pdf_hint_shared , pub hint_obj_offsets_max : :: std :: os :: raw :: c_int , pub hint_obj_offsets : * mut i64 , pub resources_localised : :: std :: os :: raw :: c_int , pub lexbuf : pdf_lexbuf_large , pub js : * mut pdf_js , pub recalculate : :: std :: os :: raw :: c_int , pub dirty : :: std :: os :: raw :: c_int , pub redacted : :: std :: os :: raw :: c_int , pub event_cb : pdf_doc_event_cb , pub event_cb_data : * mut :: std :: os :: raw :: c_void , pub num_type3_fonts : :: std :: os :: raw :: c_int , pub max_type3_fonts : :: std :: os :: raw :: c_int , pub type3_fonts : * mut * mut fz_font , pub resources : pdf_document_s__bindgen_ty_1 , pub orphans_max : :: std :: os :: raw :: c_int , pub orphans_count : :: std :: os :: raw :: c_int , pub orphans : * mut * mut pdf_obj , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_document_s__bindgen_ty_1 { pub images : * mut fz_hash_table , pub fonts : * mut fz_hash_table , } # [ test ] fn bindgen_test_layout_pdf_document_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_document_s__bindgen_ty_1 > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( pdf_document_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_document_s__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_document_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s__bindgen_ty_1 > ( ) ) ) . images as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s__bindgen_ty_1 ) , "::" , stringify ! ( images ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s__bindgen_ty_1 > ( ) ) ) . fonts as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s__bindgen_ty_1 ) , "::" , stringify ! ( fonts ) ) ) ; } # [ test ] fn bindgen_test_layout_pdf_document_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_document_s > ( ) , 66040usize , concat ! ( "Size of: " , stringify ! ( pdf_document_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_document_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_document_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . super_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( super_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . file as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( file ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . version as * const _ as usize } , 136usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . startxref as * const _ as usize } , 144usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( startxref ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . file_size as * const _ as usize } , 152usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( file_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . crypt as * const _ as usize } , 160usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( crypt ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . ocg as * const _ as usize } , 168usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( ocg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . oi as * const _ as usize } , 176usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( oi ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . max_xref_len as * const _ as usize } , 184usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( max_xref_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . num_xref_sections as * const _ as usize } , 188usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( num_xref_sections ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . saved_num_xref_sections as * const _ as usize } , 192usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( saved_num_xref_sections ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . num_incremental_sections as * const _ as usize } , 196usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( num_incremental_sections ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . xref_base as * const _ as usize } , 200usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( xref_base ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . disallow_new_increments as * const _ as usize } , 204usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( disallow_new_increments ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . xref_sections as * const _ as usize } , 208usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( xref_sections ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . saved_xref_sections as * const _ as usize } , 216usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( saved_xref_sections ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . xref_index as * const _ as usize } , 224usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( xref_index ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . freeze_updates as * const _ as usize } , 232usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( freeze_updates ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . has_xref_streams as * const _ as usize } , 236usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( has_xref_streams ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . has_old_style_xrefs as * const _ as usize } , 240usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( has_old_style_xrefs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . rev_page_count as * const _ as usize } , 244usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( rev_page_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . rev_page_map as * const _ as usize } , 248usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( rev_page_map ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . repair_attempted as * const _ as usize } , 256usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( repair_attempted ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . file_reading_linearly as * const _ as usize } , 260usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( file_reading_linearly ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . file_length as * const _ as usize } , 264usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( file_length ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . linear_page_count as * const _ as usize } , 272usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( linear_page_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . linear_obj as * const _ as usize } , 280usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( linear_obj ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . linear_page_refs as * const _ as usize } , 288usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( linear_page_refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . linear_page1_obj_num as * const _ as usize } , 296usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( linear_page1_obj_num ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . linear_pos as * const _ as usize } , 304usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( linear_pos ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . linear_page_num as * const _ as usize } , 312usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( linear_page_num ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . hint_object_offset as * const _ as usize } , 316usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( hint_object_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . hint_object_length as * const _ as usize } , 320usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( hint_object_length ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . hints_loaded as * const _ as usize } , 324usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( hints_loaded ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . hint_page as * const _ as usize } , 328usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( hint_page ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . hint_shared_ref as * const _ as usize } , 336usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( hint_shared_ref ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . hint_shared as * const _ as usize } , 344usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( hint_shared ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . hint_obj_offsets_max as * const _ as usize } , 352usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( hint_obj_offsets_max ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . hint_obj_offsets as * const _ as usize } , 360usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( hint_obj_offsets ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . resources_localised as * const _ as usize } , 368usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( resources_localised ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . lexbuf as * const _ as usize } , 376usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( lexbuf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . js as * const _ as usize } , 65952usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( js ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . recalculate as * const _ as usize } , 65960usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( recalculate ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . dirty as * const _ as usize } , 65964usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( dirty ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . redacted as * const _ as usize } , 65968usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( redacted ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . event_cb as * const _ as usize } , 65976usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( event_cb ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . event_cb_data as * const _ as usize } , 65984usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( event_cb_data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . num_type3_fonts as * const _ as usize } , 65992usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( num_type3_fonts ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . max_type3_fonts as * const _ as usize } , 65996usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( max_type3_fonts ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . type3_fonts as * const _ as usize } , 66000usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( type3_fonts ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . resources as * const _ as usize } , 66008usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( resources ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . orphans_max as * const _ as usize } , 66024usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( orphans_max ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . orphans_count as * const _ as usize } , 66028usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( orphans_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_document_s > ( ) ) ) . orphans as * const _ as usize } , 66032usize , concat ! ( "Offset of field: " , stringify ! ( pdf_document_s ) , "::" , stringify ! ( orphans ) ) ) ; } extern "C" { pub fn pdf_create_document ( ctx : * mut fz_context ) -> * mut pdf_document ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_graft_map_s { _unused : [ u8 ; 0 ] , } pub type pdf_graft_map = pdf_graft_map_s ; extern "C" { pub fn pdf_graft_object ( ctx : * mut fz_context , dst : * mut pdf_document , obj : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_new_graft_map ( ctx : * mut fz_context , dst : * mut pdf_document ) -> * mut pdf_graft_map ; } extern "C" { pub fn pdf_keep_graft_map ( ctx : * mut fz_context , map : * mut pdf_graft_map ) -> * mut pdf_graft_map ; } extern "C" { pub fn pdf_drop_graft_map ( ctx : * mut fz_context , map : * mut pdf_graft_map ) ; } extern "C" { pub fn pdf_graft_mapped_object ( ctx : * mut fz_context , map : * mut pdf_graft_map , obj : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_page_write ( ctx : * mut fz_context , doc : * mut pdf_document , mediabox : fz_rect , presources : * mut * mut pdf_obj , pcontents : * mut * mut fz_buffer ) -> * mut fz_device ; } extern "C" { pub fn pdf_add_page ( ctx : * mut fz_context , doc : * mut pdf_document , mediabox : fz_rect , rotate : :: std :: os :: raw :: c_int , resources : * mut pdf_obj , contents : * mut fz_buffer ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_insert_page ( ctx : * mut fz_context , doc : * mut pdf_document , at : :: std :: os :: raw :: c_int , page : * mut pdf_obj ) ; } extern "C" { pub fn pdf_delete_page ( ctx : * mut fz_context , doc : * mut pdf_document , number : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_delete_page_range ( ctx : * mut fz_context , doc : * mut pdf_document , start : :: std :: os :: raw :: c_int , end : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_finish_edit ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_recognize ( doc : * mut fz_context , magic : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } pub type pdf_write_options = pdf_write_options_s ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct pdf_write_options_s { pub do_incremental : :: std :: os :: raw :: c_int , pub do_pretty : :: std :: os :: raw :: c_int , pub do_ascii : :: std :: os :: raw :: c_int , pub do_compress : :: std :: os :: raw :: c_int , pub do_compress_images : :: std :: os :: raw :: c_int , pub do_compress_fonts : :: std :: os :: raw :: c_int , pub do_decompress : :: std :: os :: raw :: c_int , pub do_garbage : :: std :: os :: raw :: c_int , pub do_linear : :: std :: os :: raw :: c_int , pub do_clean : :: std :: os :: raw :: c_int , pub do_sanitize : :: std :: os :: raw :: c_int , pub do_appearance : :: std :: os :: raw :: c_int , pub do_encrypt : :: std :: os :: raw :: c_int , pub permissions : :: std :: os :: raw :: c_int , pub opwd_utf8 : [ :: std :: os :: raw :: c_char ; 128usize ] , pub upwd_utf8 : [ :: std :: os :: raw :: c_char ; 128usize ] , } # [ test ] fn bindgen_test_layout_pdf_write_options_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_write_options_s > ( ) , 312usize , concat ! ( "Size of: " , stringify ! ( pdf_write_options_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_write_options_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( pdf_write_options_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_incremental as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_incremental ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_pretty as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_pretty ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_ascii as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_ascii ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_compress as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_compress ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_compress_images as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_compress_images ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_compress_fonts as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_compress_fonts ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_decompress as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_decompress ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_garbage as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_garbage ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_linear as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_linear ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_clean as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_clean ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_sanitize as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_sanitize ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_appearance as * const _ as usize } , 44usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_appearance ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . do_encrypt as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( do_encrypt ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . permissions as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( permissions ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . opwd_utf8 as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( opwd_utf8 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_write_options_s > ( ) ) ) . upwd_utf8 as * const _ as usize } , 184usize , concat ! ( "Offset of field: " , stringify ! ( pdf_write_options_s ) , "::" , stringify ! ( upwd_utf8 ) ) ) ; } extern "C" { pub static pdf_default_write_options : pdf_write_options ; } extern "C" { pub fn pdf_parse_write_options ( ctx : * mut fz_context , opts : * mut pdf_write_options , args : * const :: std :: os :: raw :: c_char ) -> * mut pdf_write_options ; } extern "C" { pub fn pdf_has_unsaved_sigs ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_write_document ( ctx : * mut fz_context , doc : * mut pdf_document , out : * mut fz_output , opts : * mut pdf_write_options ) ; } extern "C" { pub fn pdf_save_document ( ctx : * mut fz_context , doc : * mut pdf_document , filename : * const :: std :: os :: raw :: c_char , opts : * mut pdf_write_options ) ; } extern "C" { pub fn pdf_can_be_saved_incrementally ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } pub const pdf_token_PDF_TOK_ERROR : pdf_token = 0 ; pub const pdf_token_PDF_TOK_EOF : pdf_token = 1 ; pub const pdf_token_PDF_TOK_OPEN_ARRAY : pdf_token = 2 ; pub const pdf_token_PDF_TOK_CLOSE_ARRAY : pdf_token = 3 ; pub const pdf_token_PDF_TOK_OPEN_DICT : pdf_token = 4 ; pub const pdf_token_PDF_TOK_CLOSE_DICT : pdf_token = 5 ; pub const pdf_token_PDF_TOK_OPEN_BRACE : pdf_token = 6 ; pub const pdf_token_PDF_TOK_CLOSE_BRACE : pdf_token = 7 ; pub const pdf_token_PDF_TOK_NAME : pdf_token = 8 ; pub const pdf_token_PDF_TOK_INT : pdf_token = 9 ; pub const pdf_token_PDF_TOK_REAL : pdf_token = 10 ; pub const pdf_token_PDF_TOK_STRING : pdf_token = 11 ; pub const pdf_token_PDF_TOK_KEYWORD : pdf_token = 12 ; pub const pdf_token_PDF_TOK_R : pdf_token = 13 ; pub const pdf_token_PDF_TOK_TRUE : pdf_token = 14 ; pub const pdf_token_PDF_TOK_FALSE : pdf_token = 15 ; pub const pdf_token_PDF_TOK_NULL : pdf_token = 16 ; pub const pdf_token_PDF_TOK_OBJ : pdf_token = 17 ; pub const pdf_token_PDF_TOK_ENDOBJ : pdf_token = 18 ; pub const pdf_token_PDF_TOK_STREAM : pdf_token = 19 ; pub const pdf_token_PDF_TOK_ENDSTREAM : pdf_token = 20 ; pub const pdf_token_PDF_TOK_XREF : pdf_token = 21 ; pub const pdf_token_PDF_TOK_TRAILER : pdf_token = 22 ; pub const pdf_token_PDF_TOK_STARTXREF : pdf_token = 23 ; pub const pdf_token_PDF_NUM_TOKENS : pdf_token = 24 ; pub type pdf_token = u32 ; extern "C" { pub fn pdf_lexbuf_init ( ctx : * mut fz_context , lexbuf : * mut pdf_lexbuf , size : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_lexbuf_fin ( ctx : * mut fz_context , lexbuf : * mut pdf_lexbuf ) ; } extern "C" { pub fn pdf_lexbuf_grow ( ctx : * mut fz_context , lexbuf : * mut pdf_lexbuf ) -> isize ; } extern "C" { pub fn pdf_lex ( ctx : * mut fz_context , f : * mut fz_stream , lexbuf : * mut pdf_lexbuf ) -> pdf_token ; } extern "C" { pub fn pdf_lex_no_string ( ctx : * mut fz_context , f : * mut fz_stream , lexbuf : * mut pdf_lexbuf ) -> pdf_token ; } extern "C" { pub fn pdf_parse_array ( ctx : * mut fz_context , doc : * mut pdf_document , f : * mut fz_stream , buf : * mut pdf_lexbuf ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_parse_dict ( ctx : * mut fz_context , doc : * mut pdf_document , f : * mut fz_stream , buf : * mut pdf_lexbuf ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_parse_stm_obj ( ctx : * mut fz_context , doc : * mut pdf_document , f : * mut fz_stream , buf : * mut pdf_lexbuf ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_parse_ind_obj ( ctx : * mut fz_context , doc : * mut pdf_document , f : * mut fz_stream , buf : * mut pdf_lexbuf , num : * mut :: std :: os :: raw :: c_int , gen : * mut :: std :: os :: raw :: c_int , stm_ofs : * mut i64 , try_repair : * mut :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_append_token ( ctx : * mut fz_context , buf : * mut fz_buffer , tok : :: std :: os :: raw :: c_int , lex : * mut pdf_lexbuf ) ; } extern "C" { pub fn pdf_create_object ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_delete_object ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_update_object ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int , obj : * mut pdf_obj ) ; } extern "C" { pub fn pdf_update_stream ( ctx : * mut fz_context , doc : * mut pdf_document , ref_ : * mut pdf_obj , buf : * mut fz_buffer , compressed : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_add_object ( ctx : * mut fz_context , doc : * mut pdf_document , obj : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_add_object_drop ( ctx : * mut fz_context , doc : * mut pdf_document , obj : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_add_stream ( ctx : * mut fz_context , doc : * mut pdf_document , buf : * mut fz_buffer , obj : * mut pdf_obj , compressed : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_add_new_dict ( ctx : * mut fz_context , doc : * mut pdf_document , initial : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_add_new_array ( ctx : * mut fz_context , doc : * mut pdf_document , initial : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } pub type pdf_xref_entry = pdf_xref_entry_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_xref_entry_s { pub type_ : :: std :: os :: raw :: c_char , pub marked : :: std :: os :: raw :: c_uchar , pub gen : :: std :: os :: raw :: c_ushort , pub num : :: std :: os :: raw :: c_int , pub ofs : i64 , pub stm_ofs : i64 , pub stm_buf : * mut fz_buffer , pub obj : * mut pdf_obj , } # [ test ] fn bindgen_test_layout_pdf_xref_entry_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_xref_entry_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( pdf_xref_entry_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_xref_entry_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_xref_entry_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_entry_s > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_entry_s ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_entry_s > ( ) ) ) . marked as * const _ as usize } , 1usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_entry_s ) , "::" , stringify ! ( marked ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_entry_s > ( ) ) ) . gen as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_entry_s ) , "::" , stringify ! ( gen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_entry_s > ( ) ) ) . num as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_entry_s ) , "::" , stringify ! ( num ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_entry_s > ( ) ) ) . ofs as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_entry_s ) , "::" , stringify ! ( ofs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_entry_s > ( ) ) ) . stm_ofs as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_entry_s ) , "::" , stringify ! ( stm_ofs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_entry_s > ( ) ) ) . stm_buf as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_entry_s ) , "::" , stringify ! ( stm_buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_entry_s > ( ) ) ) . obj as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_entry_s ) , "::" , stringify ! ( obj ) ) ) ; } pub type pdf_xref_subsec = pdf_xref_subsec_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_xref_subsec_s { pub next : * mut pdf_xref_subsec , pub len : :: std :: os :: raw :: c_int , pub start : :: std :: os :: raw :: c_int , pub table : * mut pdf_xref_entry , } # [ test ] fn bindgen_test_layout_pdf_xref_subsec_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_xref_subsec_s > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( pdf_xref_subsec_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_xref_subsec_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_xref_subsec_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_subsec_s > ( ) ) ) . next as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_subsec_s ) , "::" , stringify ! ( next ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_subsec_s > ( ) ) ) . len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_subsec_s ) , "::" , stringify ! ( len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_subsec_s > ( ) ) ) . start as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_subsec_s ) , "::" , stringify ! ( start ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_subsec_s > ( ) ) ) . table as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_subsec_s ) , "::" , stringify ! ( table ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_xref_s { pub num_objects : :: std :: os :: raw :: c_int , pub subsec : * mut pdf_xref_subsec , pub trailer : * mut pdf_obj , pub pre_repair_trailer : * mut pdf_obj , pub unsaved_sigs : * mut pdf_unsaved_sig , pub unsaved_sigs_end : * mut * mut pdf_unsaved_sig , pub end_ofs : i64 , } # [ test ] fn bindgen_test_layout_pdf_xref_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_xref_s > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( pdf_xref_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_xref_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_xref_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_s > ( ) ) ) . num_objects as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_s ) , "::" , stringify ! ( num_objects ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_s > ( ) ) ) . subsec as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_s ) , "::" , stringify ! ( subsec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_s > ( ) ) ) . trailer as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_s ) , "::" , stringify ! ( trailer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_s > ( ) ) ) . pre_repair_trailer as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_s ) , "::" , stringify ! ( pre_repair_trailer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_s > ( ) ) ) . unsaved_sigs as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_s ) , "::" , stringify ! ( unsaved_sigs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_s > ( ) ) ) . unsaved_sigs_end as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_s ) , "::" , stringify ! ( unsaved_sigs_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xref_s > ( ) ) ) . end_ofs as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xref_s ) , "::" , stringify ! ( end_ofs ) ) ) ; } extern "C" { pub fn pdf_cache_object ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) -> * mut pdf_xref_entry ; } extern "C" { pub fn pdf_count_objects ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_resolve_indirect ( ctx : * mut fz_context , ref_ : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_resolve_indirect_chain ( ctx : * mut fz_context , ref_ : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_load_object ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_load_unencrypted_object ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_load_raw_stream_number ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) -> * mut fz_buffer ; } extern "C" { pub fn pdf_load_raw_stream ( ctx : * mut fz_context , ref_ : * mut pdf_obj ) -> * mut fz_buffer ; } extern "C" { pub fn pdf_load_stream_number ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) -> * mut fz_buffer ; } extern "C" { pub fn pdf_load_stream ( ctx : * mut fz_context , ref_ : * mut pdf_obj ) -> * mut fz_buffer ; } extern "C" { pub fn pdf_open_raw_stream_number ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn pdf_open_raw_stream ( ctx : * mut fz_context , ref_ : * mut pdf_obj ) -> * mut fz_stream ; } extern "C" { pub fn pdf_open_stream_number ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn pdf_open_stream ( ctx : * mut fz_context , ref_ : * mut pdf_obj ) -> * mut fz_stream ; } extern "C" { pub fn pdf_open_inline_stream ( ctx : * mut fz_context , doc : * mut pdf_document , stmobj : * mut pdf_obj , length : :: std :: os :: raw :: c_int , chain : * mut fz_stream , params : * mut fz_compression_params ) -> * mut fz_stream ; } extern "C" { pub fn pdf_load_compressed_stream ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) -> * mut fz_compressed_buffer ; } extern "C" { pub fn pdf_load_compressed_inline_image ( ctx : * mut fz_context , doc : * mut pdf_document , dict : * mut pdf_obj , length : :: std :: os :: raw :: c_int , cstm : * mut fz_stream , indexed : :: std :: os :: raw :: c_int , image : * mut fz_compressed_image ) ; } extern "C" { pub fn pdf_open_stream_with_offset ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int , dict : * mut pdf_obj , stm_ofs : i64 ) -> * mut fz_stream ; } extern "C" { pub fn pdf_open_compressed_stream ( ctx : * mut fz_context , arg1 : * mut fz_compressed_buffer ) -> * mut fz_stream ; } extern "C" { pub fn pdf_open_contents_stream ( ctx : * mut fz_context , doc : * mut pdf_document , obj : * mut pdf_obj ) -> * mut fz_stream ; } extern "C" { pub fn pdf_trailer ( ctx : * mut fz_context , doc : * mut pdf_document ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_set_populating_xref_trailer ( ctx : * mut fz_context , doc : * mut pdf_document , trailer : * mut pdf_obj ) ; } extern "C" { pub fn pdf_xref_len ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_get_populating_xref_entry ( ctx : * mut fz_context , doc : * mut pdf_document , i : :: std :: os :: raw :: c_int ) -> * mut pdf_xref_entry ; } extern "C" { pub fn pdf_get_xref_entry ( ctx : * mut fz_context , doc : * mut pdf_document , i : :: std :: os :: raw :: c_int ) -> * mut pdf_xref_entry ; } extern "C" { pub fn pdf_replace_xref ( ctx : * mut fz_context , doc : * mut pdf_document , entries : * mut pdf_xref_entry , n : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_forget_xref ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_xref_ensure_incremental_object ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_xref_is_incremental ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_xref_store_unsaved_signature ( ctx : * mut fz_context , doc : * mut pdf_document , field : * mut pdf_obj , signer : * mut pdf_pkcs7_signer ) ; } extern "C" { pub fn pdf_xref_obj_is_unsaved_signature ( doc : * mut pdf_document , obj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_repair_xref ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_repair_obj_stms ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_ensure_solid_xref ( ctx : * mut fz_context , doc : * mut pdf_document , num : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_mark_xref ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_clear_xref ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_clear_xref_to_mark ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_repair_obj ( ctx : * mut fz_context , doc : * mut pdf_document , buf : * mut pdf_lexbuf , stmofsp : * mut i64 , stmlenp : * mut :: std :: os :: raw :: c_int , encrypt : * mut * mut pdf_obj , id : * mut * mut pdf_obj , page : * mut * mut pdf_obj , tmpofs : * mut i64 , root : * mut * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_progressive_advance ( ctx : * mut fz_context , doc : * mut pdf_document , pagenum : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } pub const PDF_ENCRYPT_KEEP : _bindgen_ty_26 = 0 ; pub const PDF_ENCRYPT_NONE : _bindgen_ty_26 = 1 ; pub const PDF_ENCRYPT_RC4_40 : _bindgen_ty_26 = 2 ; pub const PDF_ENCRYPT_RC4_128 : _bindgen_ty_26 = 3 ; pub const PDF_ENCRYPT_AES_128 : _bindgen_ty_26 = 4 ; pub const PDF_ENCRYPT_AES_256 : _bindgen_ty_26 = 5 ; pub const PDF_ENCRYPT_UNKNOWN : _bindgen_ty_26 = 6 ; pub type _bindgen_ty_26 = u32 ; extern "C" { pub fn pdf_new_crypt ( ctx : * mut fz_context , enc : * mut pdf_obj , id : * mut pdf_obj ) -> * mut pdf_crypt ; } extern "C" { pub fn pdf_new_encrypt ( ctx : * mut fz_context , opwd_utf8 : * const :: std :: os :: raw :: c_char , upwd_utf8 : * const :: std :: os :: raw :: c_char , id : * mut pdf_obj , permissions : :: std :: os :: raw :: c_int , algorithm : :: std :: os :: raw :: c_int ) -> * mut pdf_crypt ; } extern "C" { pub fn pdf_drop_crypt ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) ; } extern "C" { pub fn pdf_crypt_obj ( ctx : * mut fz_context , crypt : * mut pdf_crypt , obj : * mut pdf_obj , num : :: std :: os :: raw :: c_int , gen : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_crypt_buffer ( ctx : * mut fz_context , crypt : * mut pdf_crypt , buf : * mut fz_buffer , num : :: std :: os :: raw :: c_int , gen : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_open_crypt ( ctx : * mut fz_context , chain : * mut fz_stream , crypt : * mut pdf_crypt , num : :: std :: os :: raw :: c_int , gen : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn pdf_open_crypt_with_filter ( ctx : * mut fz_context , chain : * mut fz_stream , crypt : * mut pdf_crypt , name : * mut pdf_obj , num : :: std :: os :: raw :: c_int , gen : :: std :: os :: raw :: c_int ) -> * mut fz_stream ; } extern "C" { pub fn pdf_crypt_version ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_crypt_revision ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_crypt_method ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_crypt_length ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_crypt_permissions ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_crypt_encrypt_metadata ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_crypt_owner_password ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> * mut :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn pdf_crypt_user_password ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> * mut :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn pdf_crypt_owner_encryption ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> * mut :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn pdf_crypt_user_encryption ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> * mut :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn pdf_crypt_permissions_encryption ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> * mut :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn pdf_crypt_key ( ctx : * mut fz_context , crypt : * mut pdf_crypt ) -> * mut :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn pdf_print_crypt ( ctx : * mut fz_context , out : * mut fz_output , crypt : * mut pdf_crypt ) ; } extern "C" { pub fn pdf_write_digest ( ctx : * mut fz_context , out : * mut fz_output , byte_range : * mut pdf_obj , digest_offset : :: std :: os :: raw :: c_int , digest_length : :: std :: os :: raw :: c_int , signer : * mut pdf_pkcs7_signer ) ; } pub const PDF_PERM_PRINT : _bindgen_ty_27 = 4 ; pub const PDF_PERM_MODIFY : _bindgen_ty_27 = 8 ; pub const PDF_PERM_COPY : _bindgen_ty_27 = 16 ; pub const PDF_PERM_ANNOTATE : _bindgen_ty_27 = 32 ; pub const PDF_PERM_FORM : _bindgen_ty_27 = 256 ; pub const PDF_PERM_ACCESSIBILITY : _bindgen_ty_27 = 512 ; pub const PDF_PERM_ASSEMBLE : _bindgen_ty_27 = 1024 ; pub const PDF_PERM_PRINT_HQ : _bindgen_ty_27 = 2048 ; pub type _bindgen_ty_27 = u32 ; extern "C" { pub fn pdf_document_permissions ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_signature_byte_range ( ctx : * mut fz_context , doc : * mut pdf_document , signtature : * mut pdf_obj , byte_range : * mut fz_range ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_signature_hash_bytes ( ctx : * mut fz_context , doc : * mut pdf_document , signature : * mut pdf_obj ) -> * mut fz_stream ; } extern "C" { pub fn pdf_signature_incremental_change_since_signing ( ctx : * mut fz_context , doc : * mut pdf_document , signature : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_signature_contents ( ctx : * mut fz_context , doc : * mut pdf_document , signature : * mut pdf_obj , contents : * mut * mut :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_sign_signature ( ctx : * mut fz_context , doc : * mut pdf_document , widget : * mut pdf_widget , signer : * mut pdf_pkcs7_signer ) ; } extern "C" { pub fn pdf_clear_signature ( ctx : * mut fz_context , doc : * mut pdf_document , widget : * mut pdf_widget ) ; } extern "C" { pub fn pdf_encrypt_data ( ctx : * mut fz_context , crypt : * mut pdf_crypt , num : :: std :: os :: raw :: c_int , gen : :: std :: os :: raw :: c_int , fmt_str_out : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : * mut fz_context , arg2 : * mut :: std :: os :: raw :: c_void , arg3 : * const :: std :: os :: raw :: c_uchar , arg4 : :: std :: os :: raw :: c_int ) > , arg : * mut :: std :: os :: raw :: c_void , s : * const :: std :: os :: raw :: c_uchar , n : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_encrypted_len ( ctx : * mut fz_context , crypt : * mut pdf_crypt , num : :: std :: os :: raw :: c_int , gen : :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } pub type pdf_cmap = pdf_cmap_s ; pub type pdf_range = pdf_range_s ; pub type pdf_xrange = pdf_xrange_s ; pub type pdf_mrange = pdf_mrange_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_range_s { pub low : :: std :: os :: raw :: c_ushort , pub high : :: std :: os :: raw :: c_ushort , pub out : :: std :: os :: raw :: c_ushort , } # [ test ] fn bindgen_test_layout_pdf_range_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_range_s > ( ) , 6usize , concat ! ( "Size of: " , stringify ! ( pdf_range_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_range_s > ( ) , 2usize , concat ! ( "Alignment of " , stringify ! ( pdf_range_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_range_s > ( ) ) ) . low as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_range_s ) , "::" , stringify ! ( low ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_range_s > ( ) ) ) . high as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( pdf_range_s ) , "::" , stringify ! ( high ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_range_s > ( ) ) ) . out as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( pdf_range_s ) , "::" , stringify ! ( out ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_xrange_s { pub low : :: std :: os :: raw :: c_uint , pub high : :: std :: os :: raw :: c_uint , pub out : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout_pdf_xrange_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_xrange_s > ( ) , 12usize , concat ! ( "Size of: " , stringify ! ( pdf_xrange_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_xrange_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( pdf_xrange_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xrange_s > ( ) ) ) . low as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xrange_s ) , "::" , stringify ! ( low ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xrange_s > ( ) ) ) . high as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xrange_s ) , "::" , stringify ! ( high ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_xrange_s > ( ) ) ) . out as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_xrange_s ) , "::" , stringify ! ( out ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_mrange_s { pub low : :: std :: os :: raw :: c_uint , pub out : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout_pdf_mrange_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_mrange_s > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( pdf_mrange_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_mrange_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( pdf_mrange_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_mrange_s > ( ) ) ) . low as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_mrange_s ) , "::" , stringify ! ( low ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_mrange_s > ( ) ) ) . out as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( pdf_mrange_s ) , "::" , stringify ! ( out ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct cmap_splay_s { _unused : [ u8 ; 0 ] , } pub type cmap_splay = cmap_splay_s ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct pdf_cmap_s { pub storable : fz_storable , pub cmap_name : [ :: std :: os :: raw :: c_char ; 32usize ] , pub usecmap_name : [ :: std :: os :: raw :: c_char ; 32usize ] , pub usecmap : * mut pdf_cmap , pub wmode : :: std :: os :: raw :: c_int , pub codespace_len : :: std :: os :: raw :: c_int , pub codespace : [ pdf_cmap_s__bindgen_ty_1 ; 40usize ] , pub rlen : :: std :: os :: raw :: c_int , pub rcap : :: std :: os :: raw :: c_int , pub ranges : * mut pdf_range , pub xlen : :: std :: os :: raw :: c_int , pub xcap : :: std :: os :: raw :: c_int , pub xranges : * mut pdf_xrange , pub mlen : :: std :: os :: raw :: c_int , pub mcap : :: std :: os :: raw :: c_int , pub mranges : * mut pdf_mrange , pub dlen : :: std :: os :: raw :: c_int , pub dcap : :: std :: os :: raw :: c_int , pub dict : * mut :: std :: os :: raw :: c_int , pub tlen : :: std :: os :: raw :: c_int , pub tcap : :: std :: os :: raw :: c_int , pub ttop : :: std :: os :: raw :: c_int , pub tree : * mut cmap_splay , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_cmap_s__bindgen_ty_1 { pub n : :: std :: os :: raw :: c_int , pub low : :: std :: os :: raw :: c_uint , pub high : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout_pdf_cmap_s__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_cmap_s__bindgen_ty_1 > ( ) , 12usize , concat ! ( "Size of: " , stringify ! ( pdf_cmap_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_cmap_s__bindgen_ty_1 > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( pdf_cmap_s__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s__bindgen_ty_1 > ( ) ) ) . n as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s__bindgen_ty_1 ) , "::" , stringify ! ( n ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s__bindgen_ty_1 > ( ) ) ) . low as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s__bindgen_ty_1 ) , "::" , stringify ! ( low ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s__bindgen_ty_1 > ( ) ) ) . high as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s__bindgen_ty_1 ) , "::" , stringify ! ( high ) ) ) ; } # [ test ] fn bindgen_test_layout_pdf_cmap_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_cmap_s > ( ) , 664usize , concat ! ( "Size of: " , stringify ! ( pdf_cmap_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_cmap_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_cmap_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . storable as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( storable ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . cmap_name as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( cmap_name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . usecmap_name as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( usecmap_name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . usecmap as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( usecmap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . wmode as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( wmode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . codespace_len as * const _ as usize } , 92usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( codespace_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . codespace as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( codespace ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . rlen as * const _ as usize } , 576usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( rlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . rcap as * const _ as usize } , 580usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( rcap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . ranges as * const _ as usize } , 584usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( ranges ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . xlen as * const _ as usize } , 592usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( xlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . xcap as * const _ as usize } , 596usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( xcap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . xranges as * const _ as usize } , 600usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( xranges ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . mlen as * const _ as usize } , 608usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( mlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . mcap as * const _ as usize } , 612usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( mcap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . mranges as * const _ as usize } , 616usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( mranges ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . dlen as * const _ as usize } , 624usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( dlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . dcap as * const _ as usize } , 628usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( dcap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . dict as * const _ as usize } , 632usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( dict ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . tlen as * const _ as usize } , 640usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( tlen ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . tcap as * const _ as usize } , 644usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( tcap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . ttop as * const _ as usize } , 648usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( ttop ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_cmap_s > ( ) ) ) . tree as * const _ as usize } , 656usize , concat ! ( "Offset of field: " , stringify ! ( pdf_cmap_s ) , "::" , stringify ! ( tree ) ) ) ; } extern "C" { pub fn pdf_new_cmap ( ctx : * mut fz_context ) -> * mut pdf_cmap ; } extern "C" { pub fn pdf_keep_cmap ( ctx : * mut fz_context , cmap : * mut pdf_cmap ) -> * mut pdf_cmap ; } extern "C" { pub fn pdf_drop_cmap ( ctx : * mut fz_context , cmap : * mut pdf_cmap ) ; } extern "C" { pub fn pdf_drop_cmap_imp ( ctx : * mut fz_context , cmap : * mut fz_storable ) ; } extern "C" { pub fn pdf_cmap_size ( ctx : * mut fz_context , cmap : * mut pdf_cmap ) -> usize ; } extern "C" { pub fn pdf_cmap_wmode ( ctx : * mut fz_context , cmap : * mut pdf_cmap ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_set_cmap_wmode ( ctx : * mut fz_context , cmap : * mut pdf_cmap , wmode : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_set_usecmap ( ctx : * mut fz_context , cmap : * mut pdf_cmap , usecmap : * mut pdf_cmap ) ; } extern "C" { pub fn pdf_add_codespace ( ctx : * mut fz_context , cmap : * mut pdf_cmap , low : :: std :: os :: raw :: c_uint , high : :: std :: os :: raw :: c_uint , n : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_map_range_to_range ( ctx : * mut fz_context , cmap : * mut pdf_cmap , srclo : :: std :: os :: raw :: c_uint , srchi : :: std :: os :: raw :: c_uint , dstlo : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_map_one_to_many ( ctx : * mut fz_context , cmap : * mut pdf_cmap , one : :: std :: os :: raw :: c_uint , many : * mut :: std :: os :: raw :: c_int , len : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_sort_cmap ( ctx : * mut fz_context , cmap : * mut pdf_cmap ) ; } extern "C" { pub fn pdf_lookup_cmap ( cmap : * mut pdf_cmap , cpt : :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_lookup_cmap_full ( cmap : * mut pdf_cmap , cpt : :: std :: os :: raw :: c_uint , out : * mut :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_decode_cmap ( cmap : * mut pdf_cmap , s : * mut :: std :: os :: raw :: c_uchar , e : * mut :: std :: os :: raw :: c_uchar , cpt : * mut :: std :: os :: raw :: c_uint ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_new_identity_cmap ( ctx : * mut fz_context , wmode : :: std :: os :: raw :: c_int , bytes : :: std :: os :: raw :: c_int ) -> * mut pdf_cmap ; } extern "C" { pub fn pdf_load_cmap ( ctx : * mut fz_context , file : * mut fz_stream ) -> * mut pdf_cmap ; } extern "C" { pub fn pdf_load_system_cmap ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char ) -> * mut pdf_cmap ; } extern "C" { pub fn pdf_load_builtin_cmap ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char ) -> * mut pdf_cmap ; } extern "C" { pub fn pdf_load_embedded_cmap ( ctx : * mut fz_context , doc : * mut pdf_document , ref_ : * mut pdf_obj ) -> * mut pdf_cmap ; } pub const PDF_FD_FIXED_PITCH : _bindgen_ty_28 = 1 ; pub const PDF_FD_SERIF : _bindgen_ty_28 = 2 ; pub const PDF_FD_SYMBOLIC : _bindgen_ty_28 = 4 ; pub const PDF_FD_SCRIPT : _bindgen_ty_28 = 8 ; pub const PDF_FD_NONSYMBOLIC : _bindgen_ty_28 = 32 ; pub const PDF_FD_ITALIC : _bindgen_ty_28 = 64 ; pub const PDF_FD_ALL_CAP : _bindgen_ty_28 = 65536 ; pub const PDF_FD_SMALL_CAP : _bindgen_ty_28 = 131072 ; pub const PDF_FD_FORCE_BOLD : _bindgen_ty_28 = 262144 ; pub type _bindgen_ty_28 = u32 ; extern "C" { pub fn pdf_load_encoding ( estrings : * mut * const :: std :: os :: raw :: c_char , encoding : * const :: std :: os :: raw :: c_char ) ; } pub type pdf_font_desc = pdf_font_desc_s ; pub type pdf_hmtx = pdf_hmtx_s ; pub type pdf_vmtx = pdf_vmtx_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_hmtx_s { pub lo : :: std :: os :: raw :: c_ushort , pub hi : :: std :: os :: raw :: c_ushort , pub w : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_pdf_hmtx_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_hmtx_s > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( pdf_hmtx_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_hmtx_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( pdf_hmtx_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_hmtx_s > ( ) ) ) . lo as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_hmtx_s ) , "::" , stringify ! ( lo ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_hmtx_s > ( ) ) ) . hi as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( pdf_hmtx_s ) , "::" , stringify ! ( hi ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_hmtx_s > ( ) ) ) . w as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( pdf_hmtx_s ) , "::" , stringify ! ( w ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_vmtx_s { pub lo : :: std :: os :: raw :: c_ushort , pub hi : :: std :: os :: raw :: c_ushort , pub x : :: std :: os :: raw :: c_short , pub y : :: std :: os :: raw :: c_short , pub w : :: std :: os :: raw :: c_short , } # [ test ] fn bindgen_test_layout_pdf_vmtx_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_vmtx_s > ( ) , 10usize , concat ! ( "Size of: " , stringify ! ( pdf_vmtx_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_vmtx_s > ( ) , 2usize , concat ! ( "Alignment of " , stringify ! ( pdf_vmtx_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_vmtx_s > ( ) ) ) . lo as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_vmtx_s ) , "::" , stringify ! ( lo ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_vmtx_s > ( ) ) ) . hi as * const _ as usize } , 2usize , concat ! ( "Offset of field: " , stringify ! ( pdf_vmtx_s ) , "::" , stringify ! ( hi ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_vmtx_s > ( ) ) ) . x as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( pdf_vmtx_s ) , "::" , stringify ! ( x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_vmtx_s > ( ) ) ) . y as * const _ as usize } , 6usize , concat ! ( "Offset of field: " , stringify ! ( pdf_vmtx_s ) , "::" , stringify ! ( y ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_vmtx_s > ( ) ) ) . w as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_vmtx_s ) , "::" , stringify ! ( w ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_font_desc_s { pub storable : fz_storable , pub size : usize , pub font : * mut fz_font , pub flags : :: std :: os :: raw :: c_int , pub italic_angle : f32 , pub ascent : f32 , pub descent : f32 , pub cap_height : f32 , pub x_height : f32 , pub missing_width : f32 , pub encoding : * mut pdf_cmap , pub to_ttf_cmap : * mut pdf_cmap , pub cid_to_gid_len : usize , pub cid_to_gid : * mut :: std :: os :: raw :: c_ushort , pub to_unicode : * mut pdf_cmap , pub cid_to_ucs_len : usize , pub cid_to_ucs : * mut :: std :: os :: raw :: c_ushort , pub wmode : :: std :: os :: raw :: c_int , pub hmtx_len : :: std :: os :: raw :: c_int , pub hmtx_cap : :: std :: os :: raw :: c_int , pub dhmtx : pdf_hmtx , pub hmtx : * mut pdf_hmtx , pub vmtx_len : :: std :: os :: raw :: c_int , pub vmtx_cap : :: std :: os :: raw :: c_int , pub dvmtx : pdf_vmtx , pub vmtx : * mut pdf_vmtx , pub is_embedded : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_pdf_font_desc_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_font_desc_s > ( ) , 192usize , concat ! ( "Size of: " , stringify ! ( pdf_font_desc_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_font_desc_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_font_desc_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . storable as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( storable ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . size as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . font as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( font ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . flags as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . italic_angle as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( italic_angle ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . ascent as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( ascent ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . descent as * const _ as usize } , 44usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( descent ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . cap_height as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( cap_height ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . x_height as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( x_height ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . missing_width as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( missing_width ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . encoding as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( encoding ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . to_ttf_cmap as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( to_ttf_cmap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . cid_to_gid_len as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( cid_to_gid_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . cid_to_gid as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( cid_to_gid ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . to_unicode as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( to_unicode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . cid_to_ucs_len as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( cid_to_ucs_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . cid_to_ucs as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( cid_to_ucs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . wmode as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( wmode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . hmtx_len as * const _ as usize } , 124usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( hmtx_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . hmtx_cap as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( hmtx_cap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . dhmtx as * const _ as usize } , 132usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( dhmtx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . hmtx as * const _ as usize } , 144usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( hmtx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . vmtx_len as * const _ as usize } , 152usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( vmtx_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . vmtx_cap as * const _ as usize } , 156usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( vmtx_cap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . dvmtx as * const _ as usize } , 160usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( dvmtx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . vmtx as * const _ as usize } , 176usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( vmtx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_font_desc_s > ( ) ) ) . is_embedded as * const _ as usize } , 184usize , concat ! ( "Offset of field: " , stringify ! ( pdf_font_desc_s ) , "::" , stringify ! ( is_embedded ) ) ) ; } extern "C" { pub fn pdf_set_font_wmode ( ctx : * mut fz_context , font : * mut pdf_font_desc , wmode : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_set_default_hmtx ( ctx : * mut fz_context , font : * mut pdf_font_desc , w : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_set_default_vmtx ( ctx : * mut fz_context , font : * mut pdf_font_desc , y : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_add_hmtx ( ctx : * mut fz_context , font : * mut pdf_font_desc , lo : :: std :: os :: raw :: c_int , hi : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_add_vmtx ( ctx : * mut fz_context , font : * mut pdf_font_desc , lo : :: std :: os :: raw :: c_int , hi : :: std :: os :: raw :: c_int , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_end_hmtx ( ctx : * mut fz_context , font : * mut pdf_font_desc ) ; } extern "C" { pub fn pdf_end_vmtx ( ctx : * mut fz_context , font : * mut pdf_font_desc ) ; } extern "C" { pub fn pdf_lookup_hmtx ( ctx : * mut fz_context , font : * mut pdf_font_desc , cid : :: std :: os :: raw :: c_int ) -> pdf_hmtx ; } extern "C" { pub fn pdf_lookup_vmtx ( ctx : * mut fz_context , font : * mut pdf_font_desc , cid : :: std :: os :: raw :: c_int ) -> pdf_vmtx ; } extern "C" { pub fn pdf_load_to_unicode ( ctx : * mut fz_context , doc : * mut pdf_document , font : * mut pdf_font_desc , strings : * mut * const :: std :: os :: raw :: c_char , collection : * mut :: std :: os :: raw :: c_char , cmapstm : * mut pdf_obj ) ; } extern "C" { pub fn pdf_font_cid_to_gid ( ctx : * mut fz_context , fontdesc : * mut pdf_font_desc , cid : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_clean_font_name ( fontname : * const :: std :: os :: raw :: c_char ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_lookup_substitute_font ( ctx : * mut fz_context , mono : :: std :: os :: raw :: c_int , serif : :: std :: os :: raw :: c_int , bold : :: std :: os :: raw :: c_int , italic : :: std :: os :: raw :: c_int , len : * mut :: std :: os :: raw :: c_int ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn pdf_load_type3_font ( ctx : * mut fz_context , doc : * mut pdf_document , rdb : * mut pdf_obj , obj : * mut pdf_obj ) -> * mut pdf_font_desc ; } extern "C" { pub fn pdf_load_type3_glyphs ( ctx : * mut fz_context , doc : * mut pdf_document , fontdesc : * mut pdf_font_desc ) ; } extern "C" { pub fn pdf_load_font ( ctx : * mut fz_context , doc : * mut pdf_document , rdb : * mut pdf_obj , obj : * mut pdf_obj ) -> * mut pdf_font_desc ; } extern "C" { pub fn pdf_load_hail_mary_font ( ctx : * mut fz_context , doc : * mut pdf_document ) -> * mut pdf_font_desc ; } extern "C" { pub fn pdf_new_font_desc ( ctx : * mut fz_context ) -> * mut pdf_font_desc ; } extern "C" { pub fn pdf_keep_font ( ctx : * mut fz_context , fontdesc : * mut pdf_font_desc ) -> * mut pdf_font_desc ; } extern "C" { pub fn pdf_drop_font ( ctx : * mut fz_context , font : * mut pdf_font_desc ) ; } extern "C" { pub fn pdf_print_font ( ctx : * mut fz_context , out : * mut fz_output , fontdesc : * mut pdf_font_desc ) ; } extern "C" { pub fn pdf_run_glyph ( ctx : * mut fz_context , doc : * mut pdf_document , resources : * mut pdf_obj , contents : * mut fz_buffer , dev : * mut fz_device , ctm : fz_matrix , gstate : * mut :: std :: os :: raw :: c_void , default_cs : * mut fz_default_colorspaces ) ; } extern "C" { pub fn pdf_add_simple_font ( ctx : * mut fz_context , doc : * mut pdf_document , font : * mut fz_font , encoding : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_add_cid_font ( ctx : * mut fz_context , doc : * mut pdf_document , font : * mut fz_font ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_add_cjk_font ( ctx : * mut fz_context , doc : * mut pdf_document , font : * mut fz_font , script : :: std :: os :: raw :: c_int , wmode : :: std :: os :: raw :: c_int , serif : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_font_writing_supported ( font : * mut fz_font ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_store_item ( ctx : * mut fz_context , key : * mut pdf_obj , val : * mut :: std :: os :: raw :: c_void , itemsize : usize ) ; } extern "C" { pub fn pdf_find_item ( ctx : * mut fz_context , drop : fz_store_drop_fn , key : * mut pdf_obj ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn pdf_remove_item ( ctx : * mut fz_context , drop : fz_store_drop_fn , key : * mut pdf_obj ) ; } extern "C" { pub fn pdf_empty_store ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } pub const PDF_SIMPLE_FONT_RESOURCE : _bindgen_ty_29 = 1 ; pub const PDF_CID_FONT_RESOURCE : _bindgen_ty_29 = 2 ; pub const PDF_CJK_FONT_RESOURCE : _bindgen_ty_29 = 3 ; pub type _bindgen_ty_29 = u32 ; pub const PDF_SIMPLE_ENCODING_LATIN : _bindgen_ty_30 = 0 ; pub const PDF_SIMPLE_ENCODING_GREEK : _bindgen_ty_30 = 1 ; pub const PDF_SIMPLE_ENCODING_CYRILLIC : _bindgen_ty_30 = 2 ; pub type _bindgen_ty_30 = u32 ; extern "C" { pub fn pdf_find_font_resource ( ctx : * mut fz_context , doc : * mut pdf_document , type_ : :: std :: os :: raw :: c_int , encoding : :: std :: os :: raw :: c_int , item : * mut fz_font , md5 : * mut :: std :: os :: raw :: c_uchar ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_insert_font_resource ( ctx : * mut fz_context , doc : * mut pdf_document , md5 : * mut :: std :: os :: raw :: c_uchar , obj : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_find_image_resource ( ctx : * mut fz_context , doc : * mut pdf_document , item : * mut fz_image , md5 : * mut :: std :: os :: raw :: c_uchar ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_insert_image_resource ( ctx : * mut fz_context , doc : * mut pdf_document , md5 : * mut :: std :: os :: raw :: c_uchar , obj : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_drop_resource_tables ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_function_s { _unused : [ u8 ; 0 ] , } pub type pdf_function = pdf_function_s ; extern "C" { pub fn pdf_eval_function ( ctx : * mut fz_context , func : * mut pdf_function , in_ : * const f32 , inlen : :: std :: os :: raw :: c_int , out : * mut f32 , outlen : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_keep_function ( ctx : * mut fz_context , func : * mut pdf_function ) -> * mut pdf_function ; } extern "C" { pub fn pdf_drop_function ( ctx : * mut fz_context , func : * mut pdf_function ) ; } extern "C" { pub fn pdf_function_size ( ctx : * mut fz_context , func : * mut pdf_function ) -> usize ; } extern "C" { pub fn pdf_load_function ( ctx : * mut fz_context , ref_ : * mut pdf_obj , in_ : :: std :: os :: raw :: c_int , out : :: std :: os :: raw :: c_int ) -> * mut pdf_function ; } extern "C" { pub fn pdf_document_output_intent ( ctx : * mut fz_context , doc : * mut pdf_document ) -> * mut fz_colorspace ; } extern "C" { pub fn pdf_load_colorspace ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> * mut fz_colorspace ; } extern "C" { pub fn pdf_is_tint_colorspace ( ctx : * mut fz_context , cs : * mut fz_colorspace ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_load_shading ( ctx : * mut fz_context , doc : * mut pdf_document , obj : * mut pdf_obj ) -> * mut fz_shade ; } extern "C" { pub fn pdf_load_inline_image ( ctx : * mut fz_context , doc : * mut pdf_document , rdb : * mut pdf_obj , dict : * mut pdf_obj , file : * mut fz_stream ) -> * mut fz_image ; } extern "C" { pub fn pdf_is_jpx_image ( ctx : * mut fz_context , dict : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_load_image ( ctx : * mut fz_context , doc : * mut pdf_document , obj : * mut pdf_obj ) -> * mut fz_image ; } extern "C" { pub fn pdf_add_image ( ctx : * mut fz_context , doc : * mut pdf_document , image : * mut fz_image ) -> * mut pdf_obj ; } pub type pdf_pattern = pdf_pattern_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_pattern_s { pub storable : fz_storable , pub ismask : :: std :: os :: raw :: c_int , pub xstep : f32 , pub ystep : f32 , pub matrix : fz_matrix , pub bbox : fz_rect , pub document : * mut pdf_document , pub resources : * mut pdf_obj , pub contents : * mut pdf_obj , pub id : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_pdf_pattern_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_pattern_s > ( ) , 104usize , concat ! ( "Size of: " , stringify ! ( pdf_pattern_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_pattern_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_pattern_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pattern_s > ( ) ) ) . storable as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pattern_s ) , "::" , stringify ! ( storable ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pattern_s > ( ) ) ) . ismask as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pattern_s ) , "::" , stringify ! ( ismask ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pattern_s > ( ) ) ) . xstep as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pattern_s ) , "::" , stringify ! ( xstep ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pattern_s > ( ) ) ) . ystep as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pattern_s ) , "::" , stringify ! ( ystep ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pattern_s > ( ) ) ) . matrix as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pattern_s ) , "::" , stringify ! ( matrix ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pattern_s > ( ) ) ) . bbox as * const _ as usize } , 52usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pattern_s ) , "::" , stringify ! ( bbox ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pattern_s > ( ) ) ) . document as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pattern_s ) , "::" , stringify ! ( document ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pattern_s > ( ) ) ) . resources as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pattern_s ) , "::" , stringify ! ( resources ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pattern_s > ( ) ) ) . contents as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pattern_s ) , "::" , stringify ! ( contents ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_pattern_s > ( ) ) ) . id as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( pdf_pattern_s ) , "::" , stringify ! ( id ) ) ) ; } extern "C" { pub fn pdf_load_pattern ( ctx : * mut fz_context , doc : * mut pdf_document , obj : * mut pdf_obj ) -> * mut pdf_pattern ; } extern "C" { pub fn pdf_keep_pattern ( ctx : * mut fz_context , pat : * mut pdf_pattern ) -> * mut pdf_pattern ; } extern "C" { pub fn pdf_drop_pattern ( ctx : * mut fz_context , pat : * mut pdf_pattern ) ; } extern "C" { pub fn pdf_new_xobject ( ctx : * mut fz_context , doc : * mut pdf_document , bbox : fz_rect , matrix : fz_matrix , res : * mut pdf_obj , buffer : * mut fz_buffer ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_update_xobject ( ctx : * mut fz_context , doc : * mut pdf_document , xobj : * mut pdf_obj , bbox : fz_rect , mat : fz_matrix , res : * mut pdf_obj , buffer : * mut fz_buffer ) ; } extern "C" { pub fn pdf_xobject_resources ( ctx : * mut fz_context , xobj : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_xobject_bbox ( ctx : * mut fz_context , xobj : * mut pdf_obj ) -> fz_rect ; } extern "C" { pub fn pdf_xobject_matrix ( ctx : * mut fz_context , xobj : * mut pdf_obj ) -> fz_matrix ; } extern "C" { pub fn pdf_xobject_isolated ( ctx : * mut fz_context , xobj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_xobject_knockout ( ctx : * mut fz_context , xobj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_xobject_transparency ( ctx : * mut fz_context , xobj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_xobject_colorspace ( ctx : * mut fz_context , xobj : * mut pdf_obj ) -> * mut fz_colorspace ; } pub type pdf_csi = pdf_csi_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_gstate_s { _unused : [ u8 ; 0 ] , } pub type pdf_gstate = pdf_gstate_s ; pub type pdf_processor = pdf_processor_s ; extern "C" { pub fn pdf_new_processor ( ctx : * mut fz_context , size : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn pdf_close_processor ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) ; } extern "C" { pub fn pdf_drop_processor ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_processor_s { pub close_processor : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub drop_processor : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_w : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , linewidth : f32 ) > , pub op_j : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , linejoin : :: std :: os :: raw :: c_int ) > , pub op_J : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , linecap : :: std :: os :: raw :: c_int ) > , pub op_M : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , miterlimit : f32 ) > , pub op_d : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , array : * mut pdf_obj , phase : f32 ) > , pub op_ri : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , intent : * const :: std :: os :: raw :: c_char ) > , pub op_i : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , flatness : f32 ) > , pub op_gs_begin : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * const :: std :: os :: raw :: c_char , extgstate : * mut pdf_obj ) > , pub op_gs_BM : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , blendmode : * const :: std :: os :: raw :: c_char ) > , pub op_gs_ca : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , alpha : f32 ) > , pub op_gs_CA : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , alpha : f32 ) > , pub op_gs_SMask : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , smask : * mut pdf_obj , page_resources : * mut pdf_obj , bc : * mut f32 , luminosity : :: std :: os :: raw :: c_int ) > , pub op_gs_end : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_q : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_Q : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_cm : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , a : f32 , b : f32 , c : f32 , d : f32 , e : f32 , f : f32 ) > , pub op_m : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , x : f32 , y : f32 ) > , pub op_l : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , x : f32 , y : f32 ) > , pub op_c : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , x1 : f32 , y1 : f32 , x2 : f32 , y2 : f32 , x3 : f32 , y3 : f32 ) > , pub op_v : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , x2 : f32 , y2 : f32 , x3 : f32 , y3 : f32 ) > , pub op_y : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , x1 : f32 , y1 : f32 , x3 : f32 , y3 : f32 ) > , pub op_h : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_re : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , x : f32 , y : f32 , w : f32 , h : f32 ) > , pub op_S : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_s : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_F : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_f : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_fstar : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_B : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_Bstar : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_b : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_bstar : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_n : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_W : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_Wstar : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_BT : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_ET : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_Tc : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , charspace : f32 ) > , pub op_Tw : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , wordspace : f32 ) > , pub op_Tz : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , scale : f32 ) > , pub op_TL : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , leading : f32 ) > , pub op_Tf : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * const :: std :: os :: raw :: c_char , font : * mut pdf_font_desc , size : f32 ) > , pub op_Tr : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , render : :: std :: os :: raw :: c_int ) > , pub op_Ts : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , rise : f32 ) > , pub op_Td : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , tx : f32 , ty : f32 ) > , pub op_TD : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , tx : f32 , ty : f32 ) > , pub op_Tm : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , a : f32 , b : f32 , c : f32 , d : f32 , e : f32 , f : f32 ) > , pub op_Tstar : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_TJ : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , array : * mut pdf_obj ) > , pub op_Tj : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , str : * mut :: std :: os :: raw :: c_char , len : :: std :: os :: raw :: c_int ) > , pub op_squote : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , str : * mut :: std :: os :: raw :: c_char , len : :: std :: os :: raw :: c_int ) > , pub op_dquote : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , aw : f32 , ac : f32 , str : * mut :: std :: os :: raw :: c_char , len : :: std :: os :: raw :: c_int ) > , pub op_d0 : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , wx : f32 , wy : f32 ) > , pub op_d1 : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , wx : f32 , wy : f32 , llx : f32 , lly : f32 , urx : f32 , ury : f32 ) > , pub op_CS : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * const :: std :: os :: raw :: c_char , cs : * mut fz_colorspace ) > , pub op_cs : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * const :: std :: os :: raw :: c_char , cs : * mut fz_colorspace ) > , pub op_SC_pattern : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * const :: std :: os :: raw :: c_char , pat : * mut pdf_pattern , n : :: std :: os :: raw :: c_int , color : * mut f32 ) > , pub op_sc_pattern : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * const :: std :: os :: raw :: c_char , pat : * mut pdf_pattern , n : :: std :: os :: raw :: c_int , color : * mut f32 ) > , pub op_SC_shade : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * const :: std :: os :: raw :: c_char , shade : * mut fz_shade ) > , pub op_sc_shade : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * const :: std :: os :: raw :: c_char , shade : * mut fz_shade ) > , pub op_SC_color : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , n : :: std :: os :: raw :: c_int , color : * mut f32 ) > , pub op_sc_color : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , n : :: std :: os :: raw :: c_int , color : * mut f32 ) > , pub op_G : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , g : f32 ) > , pub op_g : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , g : f32 ) > , pub op_RG : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , r : f32 , g : f32 , b : f32 ) > , pub op_rg : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , r : f32 , g : f32 , b : f32 ) > , pub op_K : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , c : f32 , m : f32 , y : f32 , k : f32 ) > , pub op_k : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , c : f32 , m : f32 , y : f32 , k : f32 ) > , pub op_BI : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , image : * mut fz_image , colorspace_name : * const :: std :: os :: raw :: c_char ) > , pub op_sh : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * const :: std :: os :: raw :: c_char , shade : * mut fz_shade ) > , pub op_Do_image : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * const :: std :: os :: raw :: c_char , image : * mut fz_image ) > , pub op_Do_form : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * const :: std :: os :: raw :: c_char , form : * mut pdf_obj , page_resources : * mut pdf_obj ) > , pub op_MP : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , tag : * const :: std :: os :: raw :: c_char ) > , pub op_DP : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , tag : * const :: std :: os :: raw :: c_char , raw : * mut pdf_obj , cooked : * mut pdf_obj ) > , pub op_BMC : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , tag : * const :: std :: os :: raw :: c_char ) > , pub op_BDC : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , tag : * const :: std :: os :: raw :: c_char , raw : * mut pdf_obj , cooked : * mut pdf_obj ) > , pub op_EMC : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_BX : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_EX : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub op_gs_OP : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , b : :: std :: os :: raw :: c_int ) > , pub op_gs_op : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , b : :: std :: os :: raw :: c_int ) > , pub op_gs_OPM : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , i : :: std :: os :: raw :: c_int ) > , pub op_gs_UseBlackPtComp : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor , name : * mut pdf_obj ) > , pub op_END : :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , proc_ : * mut pdf_processor ) > , pub usage : * const :: std :: os :: raw :: c_char , pub hidden : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_pdf_processor_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_processor_s > ( ) , 704usize , concat ! ( "Size of: " , stringify ! ( pdf_processor_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_processor_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_processor_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . close_processor as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( close_processor ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . drop_processor as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( drop_processor ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_w as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_w ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_j as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_j ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_J as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_J ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_M as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_M ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_d as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_d ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_ri as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_ri ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_i as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_i ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_gs_begin as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_gs_begin ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_gs_BM as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_gs_BM ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_gs_ca as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_gs_ca ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_gs_CA as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_gs_CA ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_gs_SMask as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_gs_SMask ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_gs_end as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_gs_end ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_q as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_q ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Q as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Q ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_cm as * const _ as usize } , 136usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_cm ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_m as * const _ as usize } , 144usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_m ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_l as * const _ as usize } , 152usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_l ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_c as * const _ as usize } , 160usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_c ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_v as * const _ as usize } , 168usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_v ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_y as * const _ as usize } , 176usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_y ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_h as * const _ as usize } , 184usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_h ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_re as * const _ as usize } , 192usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_re ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_S as * const _ as usize } , 200usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_S ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_s as * const _ as usize } , 208usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_F as * const _ as usize } , 216usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_F ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_f as * const _ as usize } , 224usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_f ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_fstar as * const _ as usize } , 232usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_fstar ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_B as * const _ as usize } , 240usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_B ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Bstar as * const _ as usize } , 248usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Bstar ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_b as * const _ as usize } , 256usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_b ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_bstar as * const _ as usize } , 264usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_bstar ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_n as * const _ as usize } , 272usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_n ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_W as * const _ as usize } , 280usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_W ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Wstar as * const _ as usize } , 288usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Wstar ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_BT as * const _ as usize } , 296usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_BT ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_ET as * const _ as usize } , 304usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_ET ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Tc as * const _ as usize } , 312usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Tc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Tw as * const _ as usize } , 320usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Tw ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Tz as * const _ as usize } , 328usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Tz ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_TL as * const _ as usize } , 336usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_TL ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Tf as * const _ as usize } , 344usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Tf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Tr as * const _ as usize } , 352usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Tr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Ts as * const _ as usize } , 360usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Ts ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Td as * const _ as usize } , 368usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Td ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_TD as * const _ as usize } , 376usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_TD ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Tm as * const _ as usize } , 384usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Tm ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Tstar as * const _ as usize } , 392usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Tstar ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_TJ as * const _ as usize } , 400usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_TJ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Tj as * const _ as usize } , 408usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Tj ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_squote as * const _ as usize } , 416usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_squote ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_dquote as * const _ as usize } , 424usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_dquote ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_d0 as * const _ as usize } , 432usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_d0 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_d1 as * const _ as usize } , 440usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_d1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_CS as * const _ as usize } , 448usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_CS ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_cs as * const _ as usize } , 456usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_cs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_SC_pattern as * const _ as usize } , 464usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_SC_pattern ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_sc_pattern as * const _ as usize } , 472usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_sc_pattern ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_SC_shade as * const _ as usize } , 480usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_SC_shade ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_sc_shade as * const _ as usize } , 488usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_sc_shade ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_SC_color as * const _ as usize } , 496usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_SC_color ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_sc_color as * const _ as usize } , 504usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_sc_color ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_G as * const _ as usize } , 512usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_G ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_g as * const _ as usize } , 520usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_g ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_RG as * const _ as usize } , 528usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_RG ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_rg as * const _ as usize } , 536usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_rg ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_K as * const _ as usize } , 544usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_K ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_k as * const _ as usize } , 552usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_k ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_BI as * const _ as usize } , 560usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_BI ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_sh as * const _ as usize } , 568usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_sh ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Do_image as * const _ as usize } , 576usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Do_image ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_Do_form as * const _ as usize } , 584usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_Do_form ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_MP as * const _ as usize } , 592usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_MP ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_DP as * const _ as usize } , 600usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_DP ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_BMC as * const _ as usize } , 608usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_BMC ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_BDC as * const _ as usize } , 616usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_BDC ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_EMC as * const _ as usize } , 624usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_EMC ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_BX as * const _ as usize } , 632usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_BX ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_EX as * const _ as usize } , 640usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_EX ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_gs_OP as * const _ as usize } , 648usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_gs_OP ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_gs_op as * const _ as usize } , 656usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_gs_op ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_gs_OPM as * const _ as usize } , 664usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_gs_OPM ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_gs_UseBlackPtComp as * const _ as usize } , 672usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_gs_UseBlackPtComp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . op_END as * const _ as usize } , 680usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( op_END ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . usage as * const _ as usize } , 688usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( usage ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_processor_s > ( ) ) ) . hidden as * const _ as usize } , 696usize , concat ! ( "Offset of field: " , stringify ! ( pdf_processor_s ) , "::" , stringify ! ( hidden ) ) ) ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct pdf_csi_s { pub doc : * mut pdf_document , pub rdb : * mut pdf_obj , pub buf : * mut pdf_lexbuf , pub cookie : * mut fz_cookie , pub gstate : :: std :: os :: raw :: c_int , pub xbalance : :: std :: os :: raw :: c_int , pub in_text : :: std :: os :: raw :: c_int , pub d1_rect : fz_rect , pub obj : * mut pdf_obj , pub name : [ :: std :: os :: raw :: c_char ; 256usize ] , pub string : [ :: std :: os :: raw :: c_char ; 256usize ] , pub string_len : :: std :: os :: raw :: c_int , pub top : :: std :: os :: raw :: c_int , pub stack : [ f32 ; 32usize ] , } # [ test ] fn bindgen_test_layout_pdf_csi_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_csi_s > ( ) , 720usize , concat ! ( "Size of: " , stringify ! ( pdf_csi_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_csi_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_csi_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . doc as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( doc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . rdb as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( rdb ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . buf as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( buf ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . cookie as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( cookie ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . gstate as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( gstate ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . xbalance as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( xbalance ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . in_text as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( in_text ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . d1_rect as * const _ as usize } , 44usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( d1_rect ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . obj as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( obj ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . name as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . string as * const _ as usize } , 328usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( string ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . string_len as * const _ as usize } , 584usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( string_len ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . top as * const _ as usize } , 588usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( top ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_csi_s > ( ) ) ) . stack as * const _ as usize } , 592usize , concat ! ( "Offset of field: " , stringify ! ( pdf_csi_s ) , "::" , stringify ! ( stack ) ) ) ; } extern "C" { pub fn pdf_new_run_processor ( ctx : * mut fz_context , dev : * mut fz_device , ctm : fz_matrix , usage : * const :: std :: os :: raw :: c_char , gstate : * mut pdf_gstate , default_cs : * mut fz_default_colorspaces , cookie : * mut fz_cookie ) -> * mut pdf_processor ; } extern "C" { pub fn pdf_new_buffer_processor ( ctx : * mut fz_context , buffer : * mut fz_buffer , ahxencode : :: std :: os :: raw :: c_int ) -> * mut pdf_processor ; } extern "C" { pub fn pdf_new_output_processor ( ctx : * mut fz_context , out : * mut fz_output , ahxencode : :: std :: os :: raw :: c_int ) -> * mut pdf_processor ; } extern "C" { pub fn pdf_new_filter_processor ( ctx : * mut fz_context , doc : * mut pdf_document , chain : * mut pdf_processor , old_res : * mut pdf_obj , new_res : * mut pdf_obj ) -> * mut pdf_processor ; } pub type pdf_text_filter_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , opaque : * mut :: std :: os :: raw :: c_void , ucsbuf : * mut :: std :: os :: raw :: c_int , ucslen : :: std :: os :: raw :: c_int , trm : fz_matrix , ctm : fz_matrix , bbox : fz_rect ) -> :: std :: os :: raw :: c_int > ; pub type pdf_after_text_object_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , opaque : * mut :: std :: os :: raw :: c_void , doc : * mut pdf_document , chain : * mut pdf_processor , ctm : fz_matrix ) > ; extern "C" { pub fn pdf_new_filter_processor_with_text_filter ( ctx : * mut fz_context , doc : * mut pdf_document , structparents : :: std :: os :: raw :: c_int , chain : * mut pdf_processor , old_rdb : * mut pdf_obj , new_rdb : * mut pdf_obj , text_filter : pdf_text_filter_fn , after : pdf_after_text_object_fn , text_filter_opaque : * mut :: std :: os :: raw :: c_void ) -> * mut pdf_processor ; } extern "C" { pub fn pdf_process_contents ( ctx : * mut fz_context , proc_ : * mut pdf_processor , doc : * mut pdf_document , obj : * mut pdf_obj , res : * mut pdf_obj , cookie : * mut fz_cookie ) ; } extern "C" { pub fn pdf_process_annot ( ctx : * mut fz_context , proc_ : * mut pdf_processor , doc : * mut pdf_document , page : * mut pdf_page , annot : * mut pdf_annot , cookie : * mut fz_cookie ) ; } extern "C" { pub fn pdf_process_glyph ( ctx : * mut fz_context , proc_ : * mut pdf_processor , doc : * mut pdf_document , resources : * mut pdf_obj , contents : * mut fz_buffer ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_text_state_s { pub char_space : f32 , pub word_space : f32 , pub scale : f32 , pub leading : f32 , pub font : * mut pdf_font_desc , pub size : f32 , pub render : :: std :: os :: raw :: c_int , pub rise : f32 , } # [ test ] fn bindgen_test_layout_pdf_text_state_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_text_state_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( pdf_text_state_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_text_state_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_text_state_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_state_s > ( ) ) ) . char_space as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_state_s ) , "::" , stringify ! ( char_space ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_state_s > ( ) ) ) . word_space as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_state_s ) , "::" , stringify ! ( word_space ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_state_s > ( ) ) ) . scale as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_state_s ) , "::" , stringify ! ( scale ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_state_s > ( ) ) ) . leading as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_state_s ) , "::" , stringify ! ( leading ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_state_s > ( ) ) ) . font as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_state_s ) , "::" , stringify ! ( font ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_state_s > ( ) ) ) . size as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_state_s ) , "::" , stringify ! ( size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_state_s > ( ) ) ) . render as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_state_s ) , "::" , stringify ! ( render ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_state_s > ( ) ) ) . rise as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_state_s ) , "::" , stringify ! ( rise ) ) ) ; } pub type pdf_text_state = pdf_text_state_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_text_object_state_s { pub text : * mut fz_text , pub text_bbox : fz_rect , pub tlm : fz_matrix , pub tm : fz_matrix , pub text_mode : :: std :: os :: raw :: c_int , pub cid : :: std :: os :: raw :: c_int , pub gid : :: std :: os :: raw :: c_int , pub char_bbox : fz_rect , pub fontdesc : * mut pdf_font_desc , pub char_tx : f32 , pub char_ty : f32 , } # [ test ] fn bindgen_test_layout_pdf_text_object_state_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_text_object_state_s > ( ) , 120usize , concat ! ( "Size of: " , stringify ! ( pdf_text_object_state_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_text_object_state_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_text_object_state_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_object_state_s > ( ) ) ) . text as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_object_state_s ) , "::" , stringify ! ( text ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_object_state_s > ( ) ) ) . text_bbox as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_object_state_s ) , "::" , stringify ! ( text_bbox ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_object_state_s > ( ) ) ) . tlm as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_object_state_s ) , "::" , stringify ! ( tlm ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_object_state_s > ( ) ) ) . tm as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_object_state_s ) , "::" , stringify ! ( tm ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_object_state_s > ( ) ) ) . text_mode as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_object_state_s ) , "::" , stringify ! ( text_mode ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_object_state_s > ( ) ) ) . cid as * const _ as usize } , 76usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_object_state_s ) , "::" , stringify ! ( cid ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_object_state_s > ( ) ) ) . gid as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_object_state_s ) , "::" , stringify ! ( gid ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_object_state_s > ( ) ) ) . char_bbox as * const _ as usize } , 84usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_object_state_s ) , "::" , stringify ! ( char_bbox ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_object_state_s > ( ) ) ) . fontdesc as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_object_state_s ) , "::" , stringify ! ( fontdesc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_object_state_s > ( ) ) ) . char_tx as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_object_state_s ) , "::" , stringify ! ( char_tx ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_text_object_state_s > ( ) ) ) . char_ty as * const _ as usize } , 116usize , concat ! ( "Offset of field: " , stringify ! ( pdf_text_object_state_s ) , "::" , stringify ! ( char_ty ) ) ) ; } pub type pdf_text_object_state = pdf_text_object_state_s ; extern "C" { pub fn pdf_tos_save ( ctx : * mut fz_context , tos : * mut pdf_text_object_state , save : * mut fz_matrix ) ; } extern "C" { pub fn pdf_tos_restore ( ctx : * mut fz_context , tos : * mut pdf_text_object_state , save : * mut fz_matrix ) ; } extern "C" { pub fn pdf_tos_get_text ( ctx : * mut fz_context , tos : * mut pdf_text_object_state ) -> * mut fz_text ; } extern "C" { pub fn pdf_tos_reset ( ctx : * mut fz_context , tos : * mut pdf_text_object_state , render : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_tos_make_trm ( ctx : * mut fz_context , tos : * mut pdf_text_object_state , text : * mut pdf_text_state , fontdesc : * mut pdf_font_desc , cid : :: std :: os :: raw :: c_int , trm : * mut fz_matrix ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_tos_move_after_char ( ctx : * mut fz_context , tos : * mut pdf_text_object_state ) ; } extern "C" { pub fn pdf_tos_translate ( tos : * mut pdf_text_object_state , tx : f32 , ty : f32 ) ; } extern "C" { pub fn pdf_tos_set_matrix ( tos : * mut pdf_text_object_state , a : f32 , b : f32 , c : f32 , d : f32 , e : f32 , f : f32 ) ; } extern "C" { pub fn pdf_tos_newline ( tos : * mut pdf_text_object_state , leading : f32 ) ; } extern "C" { pub fn pdf_lookup_page_number ( ctx : * mut fz_context , doc : * mut pdf_document , pageobj : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_count_pages ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_lookup_page_obj ( ctx : * mut fz_context , doc : * mut pdf_document , needle : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_load_page_tree ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_drop_page_tree ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_lookup_anchor ( ctx : * mut fz_context , doc : * mut pdf_document , name : * const :: std :: os :: raw :: c_char , xp : * mut f32 , yp : * mut f32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_flatten_inheritable_page_items ( ctx : * mut fz_context , page : * mut pdf_obj ) ; } extern "C" { pub fn pdf_load_page ( ctx : * mut fz_context , doc : * mut pdf_document , number : :: std :: os :: raw :: c_int ) -> * mut pdf_page ; } extern "C" { pub fn pdf_page_obj_transform ( ctx : * mut fz_context , pageobj : * mut pdf_obj , page_mediabox : * mut fz_rect , page_ctm : * mut fz_matrix ) ; } extern "C" { pub fn pdf_page_transform ( ctx : * mut fz_context , page : * mut pdf_page , mediabox : * mut fz_rect , ctm : * mut fz_matrix ) ; } extern "C" { pub fn pdf_page_resources ( ctx : * mut fz_context , page : * mut pdf_page ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_page_contents ( ctx : * mut fz_context , page : * mut pdf_page ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_page_group ( ctx : * mut fz_context , page : * mut pdf_page ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_page_separations ( ctx : * mut fz_context , page : * mut pdf_page ) -> * mut fz_separations ; } extern "C" { pub fn pdf_read_ocg ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_drop_ocg ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_is_hidden_ocg ( ctx : * mut fz_context , desc : * mut pdf_ocg_descriptor , rdb : * mut pdf_obj , usage : * const :: std :: os :: raw :: c_char , ocg : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_load_links ( ctx : * mut fz_context , page : * mut pdf_page ) -> * mut fz_link ; } extern "C" { pub fn pdf_bound_page ( ctx : * mut fz_context , page : * mut pdf_page ) -> fz_rect ; } extern "C" { pub fn pdf_run_page ( ctx : * mut fz_context , page : * mut pdf_page , dev : * mut fz_device , ctm : fz_matrix , cookie : * mut fz_cookie ) ; } extern "C" { pub fn pdf_run_page_with_usage ( ctx : * mut fz_context , doc : * mut pdf_document , page : * mut pdf_page , dev : * mut fz_device , ctm : fz_matrix , usage : * const :: std :: os :: raw :: c_char , cookie : * mut fz_cookie ) ; } extern "C" { pub fn pdf_run_page_contents ( ctx : * mut fz_context , page : * mut pdf_page , dev : * mut fz_device , ctm : fz_matrix , cookie : * mut fz_cookie ) ; } extern "C" { pub fn pdf_run_page_annots ( ctx : * mut fz_context , page : * mut pdf_page , dev : * mut fz_device , ctm : fz_matrix , cookie : * mut fz_cookie ) ; } extern "C" { pub fn pdf_run_page_widgets ( ctx : * mut fz_context , page : * mut pdf_page , dev : * mut fz_device , ctm : fz_matrix , cookie : * mut fz_cookie ) ; } pub type pdf_page_contents_process_fn = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * mut fz_context , buffer : * mut fz_buffer , res : * mut pdf_obj , arg : * mut :: std :: os :: raw :: c_void ) > ; extern "C" { pub fn pdf_clean_page_contents ( ctx : * mut fz_context , doc : * mut pdf_document , page : * mut pdf_page , cookie : * mut fz_cookie , proc_ : pdf_page_contents_process_fn , proc_arg : * mut :: std :: os :: raw :: c_void , sanitize : :: std :: os :: raw :: c_int , ascii : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_clean_annot_contents ( ctx : * mut fz_context , doc : * mut pdf_document , annot : * mut pdf_annot , cookie : * mut fz_cookie , proc_ : pdf_page_contents_process_fn , proc_arg : * mut :: std :: os :: raw :: c_void , sanitize : :: std :: os :: raw :: c_int , ascii : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_filter_page_contents ( ctx : * mut fz_context , doc : * mut pdf_document , page : * mut pdf_page , cookie : * mut fz_cookie , proc_fn : pdf_page_contents_process_fn , text_filter : pdf_text_filter_fn , after_text : pdf_after_text_object_fn , arg : * mut :: std :: os :: raw :: c_void , sanitize : :: std :: os :: raw :: c_int , ascii : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_filter_annot_contents ( ctx : * mut fz_context , doc : * mut pdf_document , annot : * mut pdf_annot , cookie : * mut fz_cookie , proc_ : pdf_page_contents_process_fn , text_filter : pdf_text_filter_fn , after_text : pdf_after_text_object_fn , arg : * mut :: std :: os :: raw :: c_void , sanitize : :: std :: os :: raw :: c_int , ascii : :: std :: os :: raw :: c_int ) ; } pub type pdf_redact_options = pdf_redact_options_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_redact_options_s { pub no_black_boxes : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_pdf_redact_options_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_redact_options_s > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( pdf_redact_options_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_redact_options_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( pdf_redact_options_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_redact_options_s > ( ) ) ) . no_black_boxes as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_redact_options_s ) , "::" , stringify ! ( no_black_boxes ) ) ) ; } extern "C" { pub fn pdf_redact_page ( ctx : * mut fz_context , doc : * mut pdf_document , page : * mut pdf_page , opts : * mut pdf_redact_options ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_page_presentation ( ctx : * mut fz_context , page : * mut pdf_page , transition : * mut fz_transition , duration : * mut f32 ) -> * mut fz_transition ; } extern "C" { pub fn pdf_load_default_colorspaces ( ctx : * mut fz_context , doc : * mut pdf_document , page : * mut pdf_page ) -> * mut fz_default_colorspaces ; } extern "C" { pub fn pdf_update_default_colorspaces ( ctx : * mut fz_context , old_cs : * mut fz_default_colorspaces , res : * mut pdf_obj ) -> * mut fz_default_colorspaces ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_page_s { pub super_ : fz_page , pub doc : * mut pdf_document , pub obj : * mut pdf_obj , pub transparency : :: std :: os :: raw :: c_int , pub overprint : :: std :: os :: raw :: c_int , pub links : * mut fz_link , pub annots : * mut pdf_annot , pub annot_tailp : * mut * mut pdf_annot , pub widgets : * mut pdf_widget , pub widget_tailp : * mut * mut pdf_widget , } # [ test ] fn bindgen_test_layout_pdf_page_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_page_s > ( ) , 184usize , concat ! ( "Size of: " , stringify ! ( pdf_page_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_page_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_page_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_page_s > ( ) ) ) . super_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_page_s ) , "::" , stringify ! ( super_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_page_s > ( ) ) ) . doc as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( pdf_page_s ) , "::" , stringify ! ( doc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_page_s > ( ) ) ) . obj as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( pdf_page_s ) , "::" , stringify ! ( obj ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_page_s > ( ) ) ) . transparency as * const _ as usize } , 136usize , concat ! ( "Offset of field: " , stringify ! ( pdf_page_s ) , "::" , stringify ! ( transparency ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_page_s > ( ) ) ) . overprint as * const _ as usize } , 140usize , concat ! ( "Offset of field: " , stringify ! ( pdf_page_s ) , "::" , stringify ! ( overprint ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_page_s > ( ) ) ) . links as * const _ as usize } , 144usize , concat ! ( "Offset of field: " , stringify ! ( pdf_page_s ) , "::" , stringify ! ( links ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_page_s > ( ) ) ) . annots as * const _ as usize } , 152usize , concat ! ( "Offset of field: " , stringify ! ( pdf_page_s ) , "::" , stringify ! ( annots ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_page_s > ( ) ) ) . annot_tailp as * const _ as usize } , 160usize , concat ! ( "Offset of field: " , stringify ! ( pdf_page_s ) , "::" , stringify ! ( annot_tailp ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_page_s > ( ) ) ) . widgets as * const _ as usize } , 168usize , concat ! ( "Offset of field: " , stringify ! ( pdf_page_s ) , "::" , stringify ! ( widgets ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_page_s > ( ) ) ) . widget_tailp as * const _ as usize } , 176usize , concat ! ( "Offset of field: " , stringify ! ( pdf_page_s ) , "::" , stringify ! ( widget_tailp ) ) ) ; } pub const pdf_annot_type_PDF_ANNOT_TEXT : pdf_annot_type = 0 ; pub const pdf_annot_type_PDF_ANNOT_LINK : pdf_annot_type = 1 ; pub const pdf_annot_type_PDF_ANNOT_FREE_TEXT : pdf_annot_type = 2 ; pub const pdf_annot_type_PDF_ANNOT_LINE : pdf_annot_type = 3 ; pub const pdf_annot_type_PDF_ANNOT_SQUARE : pdf_annot_type = 4 ; pub const pdf_annot_type_PDF_ANNOT_CIRCLE : pdf_annot_type = 5 ; pub const pdf_annot_type_PDF_ANNOT_POLYGON : pdf_annot_type = 6 ; pub const pdf_annot_type_PDF_ANNOT_POLY_LINE : pdf_annot_type = 7 ; pub const pdf_annot_type_PDF_ANNOT_HIGHLIGHT : pdf_annot_type = 8 ; pub const pdf_annot_type_PDF_ANNOT_UNDERLINE : pdf_annot_type = 9 ; pub const pdf_annot_type_PDF_ANNOT_SQUIGGLY : pdf_annot_type = 10 ; pub const pdf_annot_type_PDF_ANNOT_STRIKE_OUT : pdf_annot_type = 11 ; pub const pdf_annot_type_PDF_ANNOT_REDACT : pdf_annot_type = 12 ; pub const pdf_annot_type_PDF_ANNOT_STAMP : pdf_annot_type = 13 ; pub const pdf_annot_type_PDF_ANNOT_CARET : pdf_annot_type = 14 ; pub const pdf_annot_type_PDF_ANNOT_INK : pdf_annot_type = 15 ; pub const pdf_annot_type_PDF_ANNOT_POPUP : pdf_annot_type = 16 ; pub const pdf_annot_type_PDF_ANNOT_FILE_ATTACHMENT : pdf_annot_type = 17 ; pub const pdf_annot_type_PDF_ANNOT_SOUND : pdf_annot_type = 18 ; pub const pdf_annot_type_PDF_ANNOT_MOVIE : pdf_annot_type = 19 ; pub const pdf_annot_type_PDF_ANNOT_WIDGET : pdf_annot_type = 20 ; pub const pdf_annot_type_PDF_ANNOT_SCREEN : pdf_annot_type = 21 ; pub const pdf_annot_type_PDF_ANNOT_PRINTER_MARK : pdf_annot_type = 22 ; pub const pdf_annot_type_PDF_ANNOT_TRAP_NET : pdf_annot_type = 23 ; pub const pdf_annot_type_PDF_ANNOT_WATERMARK : pdf_annot_type = 24 ; pub const pdf_annot_type_PDF_ANNOT_3D : pdf_annot_type = 25 ; pub const pdf_annot_type_PDF_ANNOT_UNKNOWN : pdf_annot_type = -1 ; pub type pdf_annot_type = i32 ; extern "C" { pub fn pdf_string_from_annot_type ( ctx : * mut fz_context , type_ : pdf_annot_type ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_annot_type_from_string ( ctx : * mut fz_context , subtype : * const :: std :: os :: raw :: c_char ) -> pdf_annot_type ; } pub const PDF_ANNOT_IS_INVISIBLE : _bindgen_ty_31 = 1 ; pub const PDF_ANNOT_IS_HIDDEN : _bindgen_ty_31 = 2 ; pub const PDF_ANNOT_IS_PRINT : _bindgen_ty_31 = 4 ; pub const PDF_ANNOT_IS_NO_ZOOM : _bindgen_ty_31 = 8 ; pub const PDF_ANNOT_IS_NO_ROTATE : _bindgen_ty_31 = 16 ; pub const PDF_ANNOT_IS_NO_VIEW : _bindgen_ty_31 = 32 ; pub const PDF_ANNOT_IS_READ_ONLY : _bindgen_ty_31 = 64 ; pub const PDF_ANNOT_IS_LOCKED : _bindgen_ty_31 = 128 ; pub const PDF_ANNOT_IS_TOGGLE_NO_VIEW : _bindgen_ty_31 = 256 ; pub const PDF_ANNOT_IS_LOCKED_CONTENTS : _bindgen_ty_31 = 512 ; pub type _bindgen_ty_31 = u32 ; pub const pdf_line_ending_PDF_ANNOT_LE_NONE : pdf_line_ending = 0 ; pub const pdf_line_ending_PDF_ANNOT_LE_SQUARE : pdf_line_ending = 1 ; pub const pdf_line_ending_PDF_ANNOT_LE_CIRCLE : pdf_line_ending = 2 ; pub const pdf_line_ending_PDF_ANNOT_LE_DIAMOND : pdf_line_ending = 3 ; pub const pdf_line_ending_PDF_ANNOT_LE_OPEN_ARROW : pdf_line_ending = 4 ; pub const pdf_line_ending_PDF_ANNOT_LE_CLOSED_ARROW : pdf_line_ending = 5 ; pub const pdf_line_ending_PDF_ANNOT_LE_BUTT : pdf_line_ending = 6 ; pub const pdf_line_ending_PDF_ANNOT_LE_R_OPEN_ARROW : pdf_line_ending = 7 ; pub const pdf_line_ending_PDF_ANNOT_LE_R_CLOSED_ARROW : pdf_line_ending = 8 ; pub const pdf_line_ending_PDF_ANNOT_LE_SLASH : pdf_line_ending = 9 ; pub type pdf_line_ending = u32 ; pub const PDF_ANNOT_Q_LEFT : _bindgen_ty_32 = 0 ; pub const PDF_ANNOT_Q_CENTER : _bindgen_ty_32 = 1 ; pub const PDF_ANNOT_Q_RIGHT : _bindgen_ty_32 = 2 ; pub type _bindgen_ty_32 = u32 ; extern "C" { pub fn pdf_line_ending_from_name ( ctx : * mut fz_context , end : * mut pdf_obj ) -> pdf_line_ending ; } extern "C" { pub fn pdf_line_ending_from_string ( ctx : * mut fz_context , end : * const :: std :: os :: raw :: c_char ) -> pdf_line_ending ; } extern "C" { pub fn pdf_name_from_line_ending ( ctx : * mut fz_context , end : pdf_line_ending ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_string_from_line_ending ( ctx : * mut fz_context , end : pdf_line_ending ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_keep_annot ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> * mut pdf_annot ; } extern "C" { pub fn pdf_drop_annot ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_first_annot ( ctx : * mut fz_context , page : * mut pdf_page ) -> * mut pdf_annot ; } extern "C" { pub fn pdf_next_annot ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> * mut pdf_annot ; } extern "C" { pub fn pdf_bound_annot ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> fz_rect ; } extern "C" { pub fn pdf_annot_type ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> pdf_annot_type ; } extern "C" { pub fn pdf_run_annot ( ctx : * mut fz_context , annot : * mut pdf_annot , dev : * mut fz_device , ctm : fz_matrix , cookie : * mut fz_cookie ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_annot_s { pub refs : :: std :: os :: raw :: c_int , pub page : * mut pdf_page , pub obj : * mut pdf_obj , pub ap : * mut pdf_obj , pub is_hot : :: std :: os :: raw :: c_int , pub is_active : :: std :: os :: raw :: c_int , pub needs_new_ap : :: std :: os :: raw :: c_int , pub has_new_ap : :: std :: os :: raw :: c_int , pub ignore_trigger_events : :: std :: os :: raw :: c_int , pub next : * mut pdf_annot , } # [ test ] fn bindgen_test_layout_pdf_annot_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_annot_s > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( pdf_annot_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_annot_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_annot_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_annot_s > ( ) ) ) . refs as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_annot_s ) , "::" , stringify ! ( refs ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_annot_s > ( ) ) ) . page as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_annot_s ) , "::" , stringify ! ( page ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_annot_s > ( ) ) ) . obj as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_annot_s ) , "::" , stringify ! ( obj ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_annot_s > ( ) ) ) . ap as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_annot_s ) , "::" , stringify ! ( ap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_annot_s > ( ) ) ) . is_hot as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_annot_s ) , "::" , stringify ! ( is_hot ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_annot_s > ( ) ) ) . is_active as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( pdf_annot_s ) , "::" , stringify ! ( is_active ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_annot_s > ( ) ) ) . needs_new_ap as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( pdf_annot_s ) , "::" , stringify ! ( needs_new_ap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_annot_s > ( ) ) ) . has_new_ap as * const _ as usize } , 44usize , concat ! ( "Offset of field: " , stringify ! ( pdf_annot_s ) , "::" , stringify ! ( has_new_ap ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_annot_s > ( ) ) ) . ignore_trigger_events as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( pdf_annot_s ) , "::" , stringify ! ( ignore_trigger_events ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_annot_s > ( ) ) ) . next as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( pdf_annot_s ) , "::" , stringify ! ( next ) ) ) ; } extern "C" { pub fn pdf_parse_file_spec ( ctx : * mut fz_context , doc : * mut pdf_document , file_spec : * mut pdf_obj , dest : * mut pdf_obj ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_parse_link_dest ( ctx : * mut fz_context , doc : * mut pdf_document , obj : * mut pdf_obj ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_parse_link_action ( ctx : * mut fz_context , doc : * mut pdf_document , obj : * mut pdf_obj , pagenum : :: std :: os :: raw :: c_int ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_lookup_dest ( ctx : * mut fz_context , doc : * mut pdf_document , needle : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_lookup_name ( ctx : * mut fz_context , doc : * mut pdf_document , which : * mut pdf_obj , needle : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_load_name_tree ( ctx : * mut fz_context , doc : * mut pdf_document , which : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_lookup_number ( ctx : * mut fz_context , root : * mut pdf_obj , needle : :: std :: os :: raw :: c_int ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_resolve_link ( ctx : * mut fz_context , doc : * mut pdf_document , uri : * const :: std :: os :: raw :: c_char , xp : * mut f32 , yp : * mut f32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_load_link_annots ( ctx : * mut fz_context , arg1 : * mut pdf_document , annots : * mut pdf_obj , pagenum : :: std :: os :: raw :: c_int , page_ctm : fz_matrix ) -> * mut fz_link ; } extern "C" { pub fn pdf_annot_transform ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> fz_matrix ; } extern "C" { pub fn pdf_load_annots ( ctx : * mut fz_context , page : * mut pdf_page , annots : * mut pdf_obj ) ; } extern "C" { pub fn pdf_drop_annots ( ctx : * mut fz_context , annot_list : * mut pdf_annot ) ; } extern "C" { pub fn pdf_drop_widgets ( ctx : * mut fz_context , widget_list : * mut pdf_widget ) ; } extern "C" { pub fn pdf_create_annot_raw ( ctx : * mut fz_context , page : * mut pdf_page , type_ : pdf_annot_type ) -> * mut pdf_annot ; } extern "C" { pub fn pdf_create_annot ( ctx : * mut fz_context , page : * mut pdf_page , type_ : pdf_annot_type ) -> * mut pdf_annot ; } extern "C" { pub fn pdf_delete_annot ( ctx : * mut fz_context , page : * mut pdf_page , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_annot_has_ink_list ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_has_quad_points ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_has_vertices ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_has_line ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_has_interior_color ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_has_line_ending_styles ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_has_icon_name ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_has_open ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_has_author ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_flags ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_rect ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> fz_rect ; } extern "C" { pub fn pdf_annot_border ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> f32 ; } extern "C" { pub fn pdf_annot_opacity ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> f32 ; } extern "C" { pub fn pdf_annot_color ( ctx : * mut fz_context , annot : * mut pdf_annot , n : * mut :: std :: os :: raw :: c_int , color : * mut f32 ) ; } extern "C" { pub fn pdf_annot_interior_color ( ctx : * mut fz_context , annot : * mut pdf_annot , n : * mut :: std :: os :: raw :: c_int , color : * mut f32 ) ; } extern "C" { pub fn pdf_annot_quadding ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_MK_BG ( ctx : * mut fz_context , annot : * mut pdf_annot , n : * mut :: std :: os :: raw :: c_int , color : * mut f32 ) ; } extern "C" { pub fn pdf_annot_MK_BC ( ctx : * mut fz_context , annot : * mut pdf_annot , n : * mut :: std :: os :: raw :: c_int , color : * mut f32 ) ; } extern "C" { pub fn pdf_annot_MK_BG_rgb ( ctx : * mut fz_context , annot : * mut pdf_annot , rgb : * mut f32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_MK_BC_rgb ( ctx : * mut fz_context , annot : * mut pdf_annot , rgb : * mut f32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_quad_point_count ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_quad_point ( ctx : * mut fz_context , annot : * mut pdf_annot , i : :: std :: os :: raw :: c_int , qp : * mut f32 ) ; } extern "C" { pub fn pdf_annot_ink_list_count ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_ink_list_stroke_count ( ctx : * mut fz_context , annot : * mut pdf_annot , i : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_ink_list_stroke_vertex ( ctx : * mut fz_context , annot : * mut pdf_annot , i : :: std :: os :: raw :: c_int , k : :: std :: os :: raw :: c_int ) -> fz_point ; } extern "C" { pub fn pdf_set_annot_flags ( ctx : * mut fz_context , annot : * mut pdf_annot , flags : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_set_annot_rect ( ctx : * mut fz_context , annot : * mut pdf_annot , rect : fz_rect ) ; } extern "C" { pub fn pdf_set_annot_border ( ctx : * mut fz_context , annot : * mut pdf_annot , width : f32 ) ; } extern "C" { pub fn pdf_set_annot_opacity ( ctx : * mut fz_context , annot : * mut pdf_annot , opacity : f32 ) ; } extern "C" { pub fn pdf_set_annot_color ( ctx : * mut fz_context , annot : * mut pdf_annot , n : :: std :: os :: raw :: c_int , color : * const f32 ) ; } extern "C" { pub fn pdf_set_annot_interior_color ( ctx : * mut fz_context , annot : * mut pdf_annot , n : :: std :: os :: raw :: c_int , color : * const f32 ) ; } extern "C" { pub fn pdf_set_annot_quadding ( ctx : * mut fz_context , annot : * mut pdf_annot , q : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_set_annot_quad_points ( ctx : * mut fz_context , annot : * mut pdf_annot , n : :: std :: os :: raw :: c_int , v : * const f32 ) ; } extern "C" { pub fn pdf_clear_annot_quad_points ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_add_annot_quad_point ( ctx : * mut fz_context , annot : * mut pdf_annot , quad : fz_quad ) ; } extern "C" { pub fn pdf_set_annot_ink_list ( ctx : * mut fz_context , annot : * mut pdf_annot , n : :: std :: os :: raw :: c_int , count : * const :: std :: os :: raw :: c_int , v : * const fz_point ) ; } extern "C" { pub fn pdf_clear_annot_ink_list ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_add_annot_ink_list ( ctx : * mut fz_context , annot : * mut pdf_annot , n : :: std :: os :: raw :: c_int , stroke : * mut fz_point ) ; } extern "C" { pub fn pdf_set_annot_icon_name ( ctx : * mut fz_context , annot : * mut pdf_annot , name : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_set_annot_is_open ( ctx : * mut fz_context , annot : * mut pdf_annot , is_open : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_annot_line_start_style ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> pdf_line_ending ; } extern "C" { pub fn pdf_annot_line_end_style ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> pdf_line_ending ; } extern "C" { pub fn pdf_annot_line_ending_styles ( ctx : * mut fz_context , annot : * mut pdf_annot , start_style : * mut pdf_line_ending , end_style : * mut pdf_line_ending ) ; } extern "C" { pub fn pdf_set_annot_line_start_style ( ctx : * mut fz_context , annot : * mut pdf_annot , s : pdf_line_ending ) ; } extern "C" { pub fn pdf_set_annot_line_end_style ( ctx : * mut fz_context , annot : * mut pdf_annot , e : pdf_line_ending ) ; } extern "C" { pub fn pdf_set_annot_line_ending_styles ( ctx : * mut fz_context , annot : * mut pdf_annot , start_style : pdf_line_ending , end_style : pdf_line_ending ) ; } extern "C" { pub fn pdf_annot_icon_name ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_annot_is_open ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_line ( ctx : * mut fz_context , annot : * mut pdf_annot , a : * mut fz_point , b : * mut fz_point ) ; } extern "C" { pub fn pdf_set_annot_line ( ctx : * mut fz_context , annot : * mut pdf_annot , a : fz_point , b : fz_point ) ; } extern "C" { pub fn pdf_annot_vertex_count ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_annot_vertex ( ctx : * mut fz_context , annot : * mut pdf_annot , i : :: std :: os :: raw :: c_int ) -> fz_point ; } extern "C" { pub fn pdf_set_annot_vertices ( ctx : * mut fz_context , annot : * mut pdf_annot , n : :: std :: os :: raw :: c_int , v : * const fz_point ) ; } extern "C" { pub fn pdf_clear_annot_vertices ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_add_annot_vertex ( ctx : * mut fz_context , annot : * mut pdf_annot , p : fz_point ) ; } extern "C" { pub fn pdf_set_annot_vertex ( ctx : * mut fz_context , annot : * mut pdf_annot , i : :: std :: os :: raw :: c_int , p : fz_point ) ; } extern "C" { pub fn pdf_annot_contents ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_set_annot_contents ( ctx : * mut fz_context , annot : * mut pdf_annot , text : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_annot_author ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_set_annot_author ( ctx : * mut fz_context , annot : * mut pdf_annot , author : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_annot_modification_date ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> i64 ; } extern "C" { pub fn pdf_set_annot_modification_date ( ctx : * mut fz_context , annot : * mut pdf_annot , time : i64 ) ; } extern "C" { pub fn pdf_parse_default_appearance ( ctx : * mut fz_context , da : * const :: std :: os :: raw :: c_char , font : * mut * const :: std :: os :: raw :: c_char , size : * mut f32 , color : * mut f32 ) ; } extern "C" { pub fn pdf_print_default_appearance ( ctx : * mut fz_context , buf : * mut :: std :: os :: raw :: c_char , nbuf : :: std :: os :: raw :: c_int , font : * const :: std :: os :: raw :: c_char , size : f32 , color : * const f32 ) ; } extern "C" { pub fn pdf_annot_default_appearance ( ctx : * mut fz_context , annot : * mut pdf_annot , font : * mut * const :: std :: os :: raw :: c_char , size : * mut f32 , color : * mut f32 ) ; } extern "C" { pub fn pdf_set_annot_default_appearance ( ctx : * mut fz_context , annot : * mut pdf_annot , font : * const :: std :: os :: raw :: c_char , size : f32 , color : * const f32 ) ; } extern "C" { pub fn pdf_dirty_annot ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_update_appearance ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_update_signature_appearance ( ctx : * mut fz_context , annot : * mut pdf_annot , name : * const :: std :: os :: raw :: c_char , text : * const :: std :: os :: raw :: c_char , date : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_update_annot ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_update_page ( ctx : * mut fz_context , page : * mut pdf_page ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_set_widget_editing_state ( ctx : * mut fz_context , widget : * mut pdf_widget , editing : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_get_widget_editing_state ( ctx : * mut fz_context , widget : * mut pdf_widget ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_toggle_widget ( ctx : * mut fz_context , widget : * mut pdf_widget ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_new_display_list_from_annot ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> * mut fz_display_list ; } extern "C" { pub fn pdf_new_pixmap_from_annot ( ctx : * mut fz_context , annot : * mut pdf_annot , ctm : fz_matrix , cs : * mut fz_colorspace , seps : * mut fz_separations , alpha : :: std :: os :: raw :: c_int ) -> * mut fz_pixmap ; } extern "C" { pub fn pdf_new_stext_page_from_annot ( ctx : * mut fz_context , annot : * mut pdf_annot , options : * const fz_stext_options ) -> * mut fz_stext_page ; } extern "C" { pub fn pdf_layout_text_widget ( ctx : * mut fz_context , annot : * mut pdf_annot ) -> * mut fz_layout_block ; } pub const pdf_widget_type_PDF_WIDGET_TYPE_UNKNOWN : pdf_widget_type = 0 ; pub const pdf_widget_type_PDF_WIDGET_TYPE_BUTTON : pdf_widget_type = 1 ; pub const pdf_widget_type_PDF_WIDGET_TYPE_CHECKBOX : pdf_widget_type = 2 ; pub const pdf_widget_type_PDF_WIDGET_TYPE_COMBOBOX : pdf_widget_type = 3 ; pub const pdf_widget_type_PDF_WIDGET_TYPE_LISTBOX : pdf_widget_type = 4 ; pub const pdf_widget_type_PDF_WIDGET_TYPE_RADIOBUTTON : pdf_widget_type = 5 ; pub const pdf_widget_type_PDF_WIDGET_TYPE_SIGNATURE : pdf_widget_type = 6 ; pub const pdf_widget_type_PDF_WIDGET_TYPE_TEXT : pdf_widget_type = 7 ; pub type pdf_widget_type = u32 ; pub const pdf_widget_tx_format_PDF_WIDGET_TX_FORMAT_NONE : pdf_widget_tx_format = 0 ; pub const pdf_widget_tx_format_PDF_WIDGET_TX_FORMAT_NUMBER : pdf_widget_tx_format = 1 ; pub const pdf_widget_tx_format_PDF_WIDGET_TX_FORMAT_SPECIAL : pdf_widget_tx_format = 2 ; pub const pdf_widget_tx_format_PDF_WIDGET_TX_FORMAT_DATE : pdf_widget_tx_format = 3 ; pub const pdf_widget_tx_format_PDF_WIDGET_TX_FORMAT_TIME : pdf_widget_tx_format = 4 ; pub type pdf_widget_tx_format = u32 ; extern "C" { pub fn pdf_first_widget ( ctx : * mut fz_context , page : * mut pdf_page ) -> * mut pdf_widget ; } extern "C" { pub fn pdf_next_widget ( ctx : * mut fz_context , previous : * mut pdf_widget ) -> * mut pdf_widget ; } extern "C" { pub fn pdf_widget_type ( ctx : * mut fz_context , widget : * mut pdf_widget ) -> pdf_widget_type ; } extern "C" { pub fn pdf_bound_widget ( ctx : * mut fz_context , widget : * mut pdf_widget ) -> fz_rect ; } extern "C" { pub fn pdf_text_widget_max_len ( ctx : * mut fz_context , doc : * mut pdf_document , tw : * mut pdf_widget ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_text_widget_format ( ctx : * mut fz_context , doc : * mut pdf_document , tw : * mut pdf_widget ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_choice_widget_options ( ctx : * mut fz_context , doc : * mut pdf_document , tw : * mut pdf_widget , exportval : :: std :: os :: raw :: c_int , opts : * mut * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_choice_widget_is_multiselect ( ctx : * mut fz_context , doc : * mut pdf_document , tw : * mut pdf_widget ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_choice_widget_value ( ctx : * mut fz_context , doc : * mut pdf_document , tw : * mut pdf_widget , opts : * mut * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_choice_widget_set_value ( ctx : * mut fz_context , doc : * mut pdf_document , tw : * mut pdf_widget , n : :: std :: os :: raw :: c_int , opts : * mut * const :: std :: os :: raw :: c_char ) ; } pub const PDF_FIELD_IS_READ_ONLY : _bindgen_ty_33 = 1 ; pub const PDF_FIELD_IS_REQUIRED : _bindgen_ty_33 = 2 ; pub const PDF_FIELD_IS_NO_EXPORT : _bindgen_ty_33 = 4 ; pub const PDF_TX_FIELD_IS_MULTILINE : _bindgen_ty_33 = 4096 ; pub const PDF_TX_FIELD_IS_PASSWORD : _bindgen_ty_33 = 8192 ; pub const PDF_TX_FIELD_IS_FILE_SELECT : _bindgen_ty_33 = 1048576 ; pub const PDF_TX_FIELD_IS_DO_NOT_SPELL_CHECK : _bindgen_ty_33 = 4194304 ; pub const PDF_TX_FIELD_IS_DO_NOT_SCROLL : _bindgen_ty_33 = 8388608 ; pub const PDF_TX_FIELD_IS_COMB : _bindgen_ty_33 = 16777216 ; pub const PDF_TX_FIELD_IS_RICH_TEXT : _bindgen_ty_33 = 33554432 ; pub const PDF_BTN_FIELD_IS_NO_TOGGLE_TO_OFF : _bindgen_ty_33 = 16384 ; pub const PDF_BTN_FIELD_IS_RADIO : _bindgen_ty_33 = 32768 ; pub const PDF_BTN_FIELD_IS_PUSHBUTTON : _bindgen_ty_33 = 65536 ; pub const PDF_BTN_FIELD_IS_RADIOS_IN_UNISON : _bindgen_ty_33 = 33554432 ; pub const PDF_CH_FIELD_IS_COMBO : _bindgen_ty_33 = 131072 ; pub const PDF_CH_FIELD_IS_EDIT : _bindgen_ty_33 = 262144 ; pub const PDF_CH_FIELD_IS_SORT : _bindgen_ty_33 = 524288 ; pub const PDF_CH_FIELD_IS_MULTI_SELECT : _bindgen_ty_33 = 2097152 ; pub const PDF_CH_FIELD_IS_DO_NOT_SPELL_CHECK : _bindgen_ty_33 = 4194304 ; pub const PDF_CH_FIELD_IS_COMMIT_ON_SEL_CHANGE : _bindgen_ty_33 = 67108864 ; pub type _bindgen_ty_33 = u32 ; extern "C" { pub fn pdf_calculate_form ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_reset_form ( ctx : * mut fz_context , doc : * mut pdf_document , fields : * mut pdf_obj , exclude : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_field_type ( ctx : * mut fz_context , field : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_field_flags ( ctx : * mut fz_context , field : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_field_name ( ctx : * mut fz_context , field : * mut pdf_obj ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_field_value ( ctx : * mut fz_context , field : * mut pdf_obj ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_field_border_style ( ctx : * mut fz_context , field : * mut pdf_obj ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_field_set_border_style ( ctx : * mut fz_context , field : * mut pdf_obj , text : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_field_set_button_caption ( ctx : * mut fz_context , field : * mut pdf_obj , text : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_field_set_fill_color ( ctx : * mut fz_context , field : * mut pdf_obj , col : * mut pdf_obj ) ; } extern "C" { pub fn pdf_field_set_text_color ( ctx : * mut fz_context , field : * mut pdf_obj , col : * mut pdf_obj ) ; } extern "C" { pub fn pdf_field_display ( ctx : * mut fz_context , field : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_field_set_display ( ctx : * mut fz_context , field : * mut pdf_obj , d : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_field_label ( ctx : * mut fz_context , field : * mut pdf_obj ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_button_field_on_state ( ctx : * mut fz_context , field : * mut pdf_obj ) -> * mut pdf_obj ; } extern "C" { pub fn pdf_set_field_value ( ctx : * mut fz_context , doc : * mut pdf_document , field : * mut pdf_obj , text : * const :: std :: os :: raw :: c_char , ignore_trigger_events : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_set_text_field_value ( ctx : * mut fz_context , widget : * mut pdf_widget , value : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_set_choice_field_value ( ctx : * mut fz_context , widget : * mut pdf_widget , value : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_signature_is_signed ( ctx : * mut fz_context , doc : * mut pdf_document , field : * mut pdf_obj ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_signature_set_value ( ctx : * mut fz_context , doc : * mut pdf_document , field : * mut pdf_obj , signer : * mut pdf_pkcs7_signer ) ; } extern "C" { pub fn pdf_field_reset ( ctx : * mut fz_context , doc : * mut pdf_document , field : * mut pdf_obj ) ; } extern "C" { pub fn pdf_lookup_field ( ctx : * mut fz_context , form : * mut pdf_obj , name : * const :: std :: os :: raw :: c_char ) -> * mut pdf_obj ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_keystroke_event_s { pub value : * const :: std :: os :: raw :: c_char , pub change : * const :: std :: os :: raw :: c_char , pub selStart : :: std :: os :: raw :: c_int , pub selEnd : :: std :: os :: raw :: c_int , pub willCommit : :: std :: os :: raw :: c_int , pub newChange : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_pdf_keystroke_event_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_keystroke_event_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( pdf_keystroke_event_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_keystroke_event_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_keystroke_event_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_keystroke_event_s > ( ) ) ) . value as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_keystroke_event_s ) , "::" , stringify ! ( value ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_keystroke_event_s > ( ) ) ) . change as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_keystroke_event_s ) , "::" , stringify ! ( change ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_keystroke_event_s > ( ) ) ) . selStart as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_keystroke_event_s ) , "::" , stringify ! ( selStart ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_keystroke_event_s > ( ) ) ) . selEnd as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( pdf_keystroke_event_s ) , "::" , stringify ! ( selEnd ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_keystroke_event_s > ( ) ) ) . willCommit as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_keystroke_event_s ) , "::" , stringify ! ( willCommit ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_keystroke_event_s > ( ) ) ) . newChange as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_keystroke_event_s ) , "::" , stringify ! ( newChange ) ) ) ; } pub type pdf_keystroke_event = pdf_keystroke_event_s ; extern "C" { pub fn pdf_field_event_keystroke ( ctx : * mut fz_context , doc : * mut pdf_document , field : * mut pdf_obj , evt : * mut pdf_keystroke_event ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_field_event_validate ( ctx : * mut fz_context , doc : * mut pdf_document , field : * mut pdf_obj , value : * const :: std :: os :: raw :: c_char ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_field_event_calculate ( ctx : * mut fz_context , doc : * mut pdf_document , field : * mut pdf_obj ) ; } extern "C" { pub fn pdf_field_event_format ( ctx : * mut fz_context , doc : * mut pdf_document , field : * mut pdf_obj ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_document_event_will_close ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_document_event_will_save ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_document_event_did_save ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_document_event_will_print ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_document_event_did_print ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_page_event_open ( ctx : * mut fz_context , page : * mut pdf_page ) ; } extern "C" { pub fn pdf_page_event_close ( ctx : * mut fz_context , page : * mut pdf_page ) ; } extern "C" { pub fn pdf_annot_event_enter ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_annot_event_exit ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_annot_event_down ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_annot_event_up ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_annot_event_focus ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_annot_event_blur ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_annot_event_page_open ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_annot_event_page_close ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_annot_event_page_visible ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } extern "C" { pub fn pdf_annot_event_page_invisible ( ctx : * mut fz_context , annot : * mut pdf_annot ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_doc_event_s { pub type_ : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_pdf_doc_event_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_doc_event_s > ( ) , 4usize , concat ! ( "Size of: " , stringify ! ( pdf_doc_event_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_doc_event_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( pdf_doc_event_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_doc_event_s > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_doc_event_s ) , "::" , stringify ! ( type_ ) ) ) ; } pub const PDF_DOCUMENT_EVENT_ALERT : _bindgen_ty_34 = 0 ; pub const PDF_DOCUMENT_EVENT_PRINT : _bindgen_ty_34 = 1 ; pub const PDF_DOCUMENT_EVENT_LAUNCH_URL : _bindgen_ty_34 = 2 ; pub const PDF_DOCUMENT_EVENT_MAIL_DOC : _bindgen_ty_34 = 3 ; pub const PDF_DOCUMENT_EVENT_SUBMIT : _bindgen_ty_34 = 4 ; pub const PDF_DOCUMENT_EVENT_EXEC_MENU_ITEM : _bindgen_ty_34 = 5 ; pub type _bindgen_ty_34 = u32 ; extern "C" { pub fn pdf_set_doc_event_callback ( ctx : * mut fz_context , doc : * mut pdf_document , event_cb : pdf_doc_event_cb , data : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn pdf_get_doc_event_callback_data ( ctx : * mut fz_context , doc : * mut pdf_document ) -> * mut :: std :: os :: raw :: c_void ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_alert_event { pub message : * const :: std :: os :: raw :: c_char , pub icon_type : :: std :: os :: raw :: c_int , pub button_group_type : :: std :: os :: raw :: c_int , pub title : * const :: std :: os :: raw :: c_char , pub check_box_message : * const :: std :: os :: raw :: c_char , pub initially_checked : :: std :: os :: raw :: c_int , pub finally_checked : :: std :: os :: raw :: c_int , pub button_pressed : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_pdf_alert_event ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_alert_event > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( pdf_alert_event ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_alert_event > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_alert_event ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_alert_event > ( ) ) ) . message as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_alert_event ) , "::" , stringify ! ( message ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_alert_event > ( ) ) ) . icon_type as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_alert_event ) , "::" , stringify ! ( icon_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_alert_event > ( ) ) ) . button_group_type as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( pdf_alert_event ) , "::" , stringify ! ( button_group_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_alert_event > ( ) ) ) . title as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_alert_event ) , "::" , stringify ! ( title ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_alert_event > ( ) ) ) . check_box_message as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_alert_event ) , "::" , stringify ! ( check_box_message ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_alert_event > ( ) ) ) . initially_checked as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_alert_event ) , "::" , stringify ! ( initially_checked ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_alert_event > ( ) ) ) . finally_checked as * const _ as usize } , 36usize , concat ! ( "Offset of field: " , stringify ! ( pdf_alert_event ) , "::" , stringify ! ( finally_checked ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_alert_event > ( ) ) ) . button_pressed as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( pdf_alert_event ) , "::" , stringify ! ( button_pressed ) ) ) ; } pub const PDF_ALERT_ICON_ERROR : _bindgen_ty_35 = 0 ; pub const PDF_ALERT_ICON_WARNING : _bindgen_ty_35 = 1 ; pub const PDF_ALERT_ICON_QUESTION : _bindgen_ty_35 = 2 ; pub const PDF_ALERT_ICON_STATUS : _bindgen_ty_35 = 3 ; pub type _bindgen_ty_35 = u32 ; pub const PDF_ALERT_BUTTON_GROUP_OK : _bindgen_ty_36 = 0 ; pub const PDF_ALERT_BUTTON_GROUP_OK_CANCEL : _bindgen_ty_36 = 1 ; pub const PDF_ALERT_BUTTON_GROUP_YES_NO : _bindgen_ty_36 = 2 ; pub const PDF_ALERT_BUTTON_GROUP_YES_NO_CANCEL : _bindgen_ty_36 = 3 ; pub type _bindgen_ty_36 = u32 ; pub const PDF_ALERT_BUTTON_NONE : _bindgen_ty_37 = 0 ; pub const PDF_ALERT_BUTTON_OK : _bindgen_ty_37 = 1 ; pub const PDF_ALERT_BUTTON_CANCEL : _bindgen_ty_37 = 2 ; pub const PDF_ALERT_BUTTON_NO : _bindgen_ty_37 = 3 ; pub const PDF_ALERT_BUTTON_YES : _bindgen_ty_37 = 4 ; pub type _bindgen_ty_37 = u32 ; extern "C" { pub fn pdf_access_alert_event ( ctx : * mut fz_context , event : * mut pdf_doc_event ) -> * mut pdf_alert_event ; } extern "C" { pub fn pdf_access_exec_menu_item_event ( ctx : * mut fz_context , event : * mut pdf_doc_event ) -> * const :: std :: os :: raw :: c_char ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_launch_url_event { pub url : * const :: std :: os :: raw :: c_char , pub new_frame : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_pdf_launch_url_event ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_launch_url_event > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( pdf_launch_url_event ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_launch_url_event > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_launch_url_event ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_launch_url_event > ( ) ) ) . url as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_launch_url_event ) , "::" , stringify ! ( url ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_launch_url_event > ( ) ) ) . new_frame as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_launch_url_event ) , "::" , stringify ! ( new_frame ) ) ) ; } extern "C" { pub fn pdf_access_launch_url_event ( ctx : * mut fz_context , event : * mut pdf_doc_event ) -> * mut pdf_launch_url_event ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct pdf_mail_doc_event { pub ask_user : :: std :: os :: raw :: c_int , pub to : * const :: std :: os :: raw :: c_char , pub cc : * const :: std :: os :: raw :: c_char , pub bcc : * const :: std :: os :: raw :: c_char , pub subject : * const :: std :: os :: raw :: c_char , pub message : * const :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_pdf_mail_doc_event ( ) { assert_eq ! ( :: std :: mem :: size_of :: < pdf_mail_doc_event > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( pdf_mail_doc_event ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < pdf_mail_doc_event > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( pdf_mail_doc_event ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_mail_doc_event > ( ) ) ) . ask_user as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( pdf_mail_doc_event ) , "::" , stringify ! ( ask_user ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_mail_doc_event > ( ) ) ) . to as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( pdf_mail_doc_event ) , "::" , stringify ! ( to ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_mail_doc_event > ( ) ) ) . cc as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( pdf_mail_doc_event ) , "::" , stringify ! ( cc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_mail_doc_event > ( ) ) ) . bcc as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( pdf_mail_doc_event ) , "::" , stringify ! ( bcc ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_mail_doc_event > ( ) ) ) . subject as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( pdf_mail_doc_event ) , "::" , stringify ! ( subject ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < pdf_mail_doc_event > ( ) ) ) . message as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( pdf_mail_doc_event ) , "::" , stringify ! ( message ) ) ) ; } extern "C" { pub fn pdf_access_mail_doc_event ( ctx : * mut fz_context , event : * mut pdf_doc_event ) -> * mut pdf_mail_doc_event ; } extern "C" { pub fn pdf_event_issue_alert ( ctx : * mut fz_context , doc : * mut pdf_document , event : * mut pdf_alert_event ) ; } extern "C" { pub fn pdf_event_issue_print ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_event_issue_exec_menu_item ( ctx : * mut fz_context , doc : * mut pdf_document , item : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_event_issue_launch_url ( ctx : * mut fz_context , doc : * mut pdf_document , url : * const :: std :: os :: raw :: c_char , new_frame : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_event_issue_mail_doc ( ctx : * mut fz_context , doc : * mut pdf_document , event : * mut pdf_mail_doc_event ) ; } extern "C" { pub fn pdf_enable_js ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_disable_js ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_js_supported ( ctx : * mut fz_context , doc : * mut pdf_document ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_drop_js ( ctx : * mut fz_context , js : * mut pdf_js ) ; } extern "C" { pub fn pdf_js_event_init ( js : * mut pdf_js , target : * mut pdf_obj , value : * const :: std :: os :: raw :: c_char , willCommit : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn pdf_js_event_result ( js : * mut pdf_js ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_js_event_value ( js : * mut pdf_js ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn pdf_js_event_init_keystroke ( js : * mut pdf_js , target : * mut pdf_obj , evt : * mut pdf_keystroke_event ) ; } extern "C" { pub fn pdf_js_event_result_keystroke ( js : * mut pdf_js , evt : * mut pdf_keystroke_event ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pdf_js_execute ( js : * mut pdf_js , name : * const :: std :: os :: raw :: c_char , code : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn pdf_new_pdf_device ( ctx : * mut fz_context , doc : * mut pdf_document , topctm : fz_matrix , mediabox : fz_rect , resources : * mut pdf_obj , contents : * mut fz_buffer ) -> * mut fz_device ; } extern "C" { pub fn pdf_localise_page_resources ( ctx : * mut fz_context , doc : * mut pdf_document ) ; } extern "C" { pub fn pdf_clean_file ( ctx : * mut fz_context , infile : * mut :: std :: os :: raw :: c_char , outfile : * mut :: std :: os :: raw :: c_char , password : * mut :: std :: os :: raw :: c_char , opts : * mut pdf_write_options , retainlist : * mut * mut :: std :: os :: raw :: c_char , retainlen : :: std :: os :: raw :: c_int ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct mupdf_error { pub type_ : :: std :: os :: raw :: c_int , pub message : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_mupdf_error ( ) { assert_eq ! ( :: std :: mem :: size_of :: < mupdf_error > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( mupdf_error ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < mupdf_error > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( mupdf_error ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mupdf_error > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( mupdf_error ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < mupdf_error > ( ) ) ) . message as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( mupdf_error ) , "::" , stringify ! ( message ) ) ) ; } pub type mupdf_error_t = mupdf_error ; extern "C" { pub fn mupdf_drop_error ( err : * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_drop_str ( s : * mut :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn mupdf_new_base_context ( ) -> * mut fz_context ; } extern "C" { pub fn mupdf_drop_base_context ( ctx : * mut fz_context ) ; } extern "C" { pub fn mupdf_adjust_rect_for_stroke ( ctx : * mut fz_context , self_ : fz_rect , stroke : * mut fz_stroke_state , ctm : fz_matrix , errptr : * mut * mut mupdf_error_t ) -> fz_rect ; } extern "C" { pub fn mupdf_new_pixmap ( ctx : * mut fz_context , cs : * mut fz_colorspace , x : :: std :: os :: raw :: c_int , y : :: std :: os :: raw :: c_int , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , alpha : bool , errptr : * mut * mut mupdf_error_t ) -> * mut fz_pixmap ; } extern "C" { pub fn mupdf_clone_pixmap ( ctx : * mut fz_context , self_ : * mut fz_pixmap , errptr : * mut * mut mupdf_error_t ) -> * mut fz_pixmap ; } extern "C" { pub fn mupdf_clear_pixmap ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_clear_pixmap_with_value ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , value : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_invert_pixmap ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_gamma_pixmap ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , gamma : f32 , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_tint_pixmap ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , black : :: std :: os :: raw :: c_int , white : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_copy_pixmap_rect ( ctx : * mut fz_context , self_ : * mut fz_pixmap , src : * mut fz_pixmap , bbox : fz_irect , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_save_pixmap_as ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , filename : * const :: std :: os :: raw :: c_char , format : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pixmap_get_image_data ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , format : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_scale_pixmap ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , x : f32 , y : f32 , w : f32 , h : f32 , clip : * const fz_irect , errptr : * mut * mut mupdf_error_t ) -> * mut fz_pixmap ; } extern "C" { pub fn mupdf_new_font ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , index : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut fz_font ; } extern "C" { pub fn mupdf_new_font_from_memory ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , index : :: std :: os :: raw :: c_int , data : * const :: std :: os :: raw :: c_uchar , data_len : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut fz_font ; } extern "C" { pub fn mupdf_encode_character ( ctx : * mut fz_context , font : * mut fz_font , unicode : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mupdf_advance_glyph ( ctx : * mut fz_context , font : * mut fz_font , glyph : :: std :: os :: raw :: c_int , wmode : bool , errptr : * mut * mut mupdf_error_t ) -> f32 ; } extern "C" { pub fn mupdf_outline_glyph ( ctx : * mut fz_context , font : * mut fz_font , glyph : :: std :: os :: raw :: c_int , ctm : fz_matrix , errptr : * mut * mut mupdf_error_t ) -> * mut fz_path ; } extern "C" { pub fn mupdf_new_image_from_pixmap ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , errptr : * mut * mut mupdf_error_t ) -> * mut fz_image ; } extern "C" { pub fn mupdf_new_image_from_file ( ctx : * mut fz_context , filename : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> * mut fz_image ; } extern "C" { pub fn mupdf_new_image_from_display_list ( ctx : * mut fz_context , list : * mut fz_display_list , w : f32 , h : f32 , errptr : * mut * mut mupdf_error_t ) -> * mut fz_image ; } extern "C" { pub fn mupdf_get_pixmap_from_image ( ctx : * mut fz_context , image : * mut fz_image , errptr : * mut * mut mupdf_error_t ) -> * mut fz_pixmap ; } extern "C" { pub fn mupdf_new_text ( ctx : * mut fz_context , errptr : * mut * mut mupdf_error_t ) -> * mut fz_text ; } extern "C" { pub fn mupdf_default_stroke_state ( ctx : * mut fz_context ) -> * mut fz_stroke_state ; } extern "C" { pub fn mupdf_new_stroke_state ( ctx : * mut fz_context , start_cap : u32 , dash_cap : u32 , end_cap : u32 , line_join : u32 , line_width : f32 , miter_limit : f32 , dash_phase : f32 , dash : * const f32 , dash_len : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut fz_stroke_state ; } extern "C" { pub fn mupdf_bound_text ( ctx : * mut fz_context , text : * mut fz_text , stroke : * mut fz_stroke_state , ctm : fz_matrix , errptr : * mut * mut mupdf_error_t ) -> fz_rect ; } extern "C" { pub fn mupdf_new_path ( ctx : * mut fz_context , errptr : * mut * mut mupdf_error_t ) -> * mut fz_path ; } extern "C" { pub fn mupdf_clone_path ( ctx : * mut fz_context , old_path : * mut fz_path , errptr : * mut * mut mupdf_error_t ) -> * mut fz_path ; } extern "C" { pub fn mupdf_trim_path ( ctx : * mut fz_context , path : * mut fz_path , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_moveto ( ctx : * mut fz_context , path : * mut fz_path , x : f32 , y : f32 , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_lineto ( ctx : * mut fz_context , path : * mut fz_path , x : f32 , y : f32 , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_closepath ( ctx : * mut fz_context , path : * mut fz_path , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_rectto ( ctx : * mut fz_context , path : * mut fz_path , x1 : :: std :: os :: raw :: c_int , y1 : :: std :: os :: raw :: c_int , x2 : :: std :: os :: raw :: c_int , y2 : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_curveto ( ctx : * mut fz_context , path : * mut fz_path , cx1 : f32 , cy1 : f32 , cx2 : f32 , cy2 : f32 , ex : f32 , ey : f32 , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_curvetov ( ctx : * mut fz_context , path : * mut fz_path , cx : f32 , cy : f32 , ex : f32 , ey : f32 , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_curvetoy ( ctx : * mut fz_context , path : * mut fz_path , cx : f32 , cy : f32 , ex : f32 , ey : f32 , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_transform_path ( ctx : * mut fz_context , path : * mut fz_path , ctm : fz_matrix , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_bound_path ( ctx : * mut fz_context , path : * mut fz_path , stroke : * mut fz_stroke_state , ctm : fz_matrix , errptr : * mut * mut mupdf_error_t ) -> fz_rect ; } extern "C" { pub fn mupdf_walk_path ( ctx : * mut fz_context , path : * const fz_path , walker : * const fz_path_walker , arg : * mut :: std :: os :: raw :: c_void , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_bound_page ( ctx : * mut fz_context , page : * mut fz_page , errptr : * mut * mut mupdf_error_t ) -> fz_rect ; } extern "C" { pub fn mupdf_page_to_pixmap ( ctx : * mut fz_context , page : * mut fz_page , ctm : fz_matrix , cs : * mut fz_colorspace , alpha : f32 , show_extras : bool , errptr : * mut * mut mupdf_error_t ) -> * mut fz_pixmap ; } extern "C" { pub fn mupdf_page_to_svg ( ctx : * mut fz_context , page : * mut fz_page , ctm : fz_matrix , cookie : * mut fz_cookie , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_page_to_text_page ( ctx : * mut fz_context , page : * mut fz_page , flags : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut fz_stext_page ; } extern "C" { pub fn mupdf_page_to_display_list ( ctx : * mut fz_context , page : * mut fz_page , annots : bool , errptr : * mut * mut mupdf_error_t ) -> * mut fz_display_list ; } extern "C" { pub fn mupdf_run_page ( ctx : * mut fz_context , page : * mut fz_page , device : * mut fz_device , ctm : fz_matrix , cookie : * mut fz_cookie , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_run_page_contents ( ctx : * mut fz_context , page : * mut fz_page , device : * mut fz_device , ctm : fz_matrix , cookie : * mut fz_cookie , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_run_page_annots ( ctx : * mut fz_context , page : * mut fz_page , device : * mut fz_device , ctm : fz_matrix , cookie : * mut fz_cookie , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_run_page_widgets ( ctx : * mut fz_context , page : * mut fz_page , device : * mut fz_device , ctm : fz_matrix , cookie : * mut fz_cookie , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_page_to_html ( ctx : * mut fz_context , page : * mut fz_page , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_page_to_xhtml ( ctx : * mut fz_context , page : * mut fz_page , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_page_to_xml ( ctx : * mut fz_context , page : * mut fz_page , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_page_to_text ( ctx : * mut fz_context , page : * mut fz_page , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_load_links ( ctx : * mut fz_context , page : * mut fz_page , errptr : * mut * mut mupdf_error_t ) -> * mut fz_link ; } extern "C" { pub fn mupdf_stext_page_to_text ( ctx : * mut fz_context , page : * mut fz_stext_page , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_new_cookie ( ctx : * mut fz_context , errptr : * mut * mut mupdf_error_t ) -> * mut fz_cookie ; } extern "C" { pub fn mupdf_new_display_list ( ctx : * mut fz_context , mediabox : fz_rect , errptr : * mut * mut mupdf_error_t ) -> * mut fz_display_list ; } extern "C" { pub fn mupdf_display_list_to_pixmap ( ctx : * mut fz_context , list : * mut fz_display_list , ctm : fz_matrix , cs : * mut fz_colorspace , alpha : bool , errptr : * mut * mut mupdf_error_t ) -> * mut fz_pixmap ; } extern "C" { pub fn mupdf_display_list_to_text_page ( ctx : * mut fz_context , list : * mut fz_display_list , flags : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut fz_stext_page ; } extern "C" { pub fn mupdf_display_list_run ( ctx : * mut fz_context , list : * mut fz_display_list , device : * mut fz_device , ctm : fz_matrix , area : fz_rect , cookie : * mut fz_cookie , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_clone_obj ( ctx : * mut fz_context , self_ : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_get_bound_document ( ctx : * mut fz_context , obj : * mut pdf_obj ) -> * mut pdf_document ; } extern "C" { pub fn mupdf_pdf_is_indirect ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_is_null ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_is_bool ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_is_int ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_is_real ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_is_number ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_is_string ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_is_name ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_is_array ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_is_dict ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_is_stream ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_new_null ( ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_new_bool ( b : bool ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_new_int ( ctx : * mut fz_context , i : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_new_real ( ctx : * mut fz_context , f : f32 , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_new_string ( ctx : * mut fz_context , s : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_new_name ( ctx : * mut fz_context , name : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_new_indirect ( ctx : * mut fz_context , pdf : * mut pdf_document , num : :: std :: os :: raw :: c_int , gen : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_new_array ( ctx : * mut fz_context , pdf : * mut pdf_document , capacity : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_new_dict ( ctx : * mut fz_context , pdf : * mut pdf_document , capacity : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_obj_from_str ( ctx : * mut fz_context , pdf : * mut pdf_document , src : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_to_bool ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_to_int ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mupdf_pdf_to_float ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> f32 ; } extern "C" { pub fn mupdf_pdf_to_indirect ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mupdf_pdf_to_string ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn mupdf_pdf_to_name ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn mupdf_pdf_to_bytes ( ctx : * mut fz_context , obj : * mut pdf_obj , len : * mut usize , errptr : * mut * mut mupdf_error_t ) -> * const :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn mupdf_pdf_resolve_indirect ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_array_get ( ctx : * mut fz_context , obj : * mut pdf_obj , index : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_dict_get ( ctx : * mut fz_context , obj : * mut pdf_obj , key : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_dict_get_inheritable ( ctx : * mut fz_context , obj : * mut pdf_obj , key : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_read_stream ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_pdf_read_raw_stream ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_pdf_write_object ( ctx : * mut fz_context , self_ : * mut pdf_obj , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_write_stream_buffer ( ctx : * mut fz_context , obj : * mut pdf_obj , buf : * mut fz_buffer , compressed : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_array_len ( ctx : * mut fz_context , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mupdf_pdf_array_put ( ctx : * mut fz_context , self_ : * mut pdf_obj , i : :: std :: os :: raw :: c_int , item : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_array_push ( ctx : * mut fz_context , self_ : * mut pdf_obj , item : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_array_delete ( ctx : * mut fz_context , self_ : * mut pdf_obj , i : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_dict_put ( ctx : * mut fz_context , self_ : * mut pdf_obj , key : * mut pdf_obj , value : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_dict_delete ( ctx : * mut fz_context , self_ : * mut pdf_obj , key : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_obj_to_string ( ctx : * mut fz_context , obj : * mut pdf_obj , tight : bool , ascii : bool , errptr : * mut * mut mupdf_error_t ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mupdf_buffer_read_bytes ( ctx : * mut fz_context , buf : * mut fz_buffer , at : usize , output : * mut :: std :: os :: raw :: c_uchar , buf_len : usize , errptr : * mut * mut mupdf_error_t ) -> usize ; } extern "C" { pub fn mupdf_buffer_write_bytes ( ctx : * mut fz_context , buf : * mut fz_buffer , bytes : * const :: std :: os :: raw :: c_uchar , len : usize , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_buffer_from_str ( ctx : * mut fz_context , s : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_buffer_from_base64 ( ctx : * mut fz_context , s : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_open_document ( ctx : * mut fz_context , filename : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> * mut fz_document ; } extern "C" { pub fn mupdf_open_document_from_bytes ( ctx : * mut fz_context , bytes : * mut fz_buffer , magic : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> * mut fz_document ; } extern "C" { pub fn mupdf_recognize_document ( ctx : * mut fz_context , magic : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_needs_password ( ctx : * mut fz_context , doc : * mut fz_document , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_authenticate_password ( ctx : * mut fz_context , doc : * mut fz_document , password : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_document_page_count ( ctx : * mut fz_context , doc : * mut fz_document , errptr : * mut * mut mupdf_error_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mupdf_lookup_metadata ( ctx : * mut fz_context , doc : * mut fz_document , key : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mupdf_is_document_reflowable ( ctx : * mut fz_context , doc : * mut fz_document , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_layout_document ( ctx : * mut fz_context , doc : * mut fz_document , w : f32 , h : f32 , em : f32 , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_load_page ( ctx : * mut fz_context , doc : * mut fz_document , page_no : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut fz_page ; } extern "C" { pub fn mupdf_convert_to_pdf ( ctx : * mut fz_context , doc : * mut fz_document , fp : :: std :: os :: raw :: c_int , tp : :: std :: os :: raw :: c_int , rotate : :: std :: os :: raw :: c_int , cookie : * mut fz_cookie , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_document ; } extern "C" { pub fn mupdf_resolve_link ( ctx : * mut fz_context , doc : * mut fz_document , uri : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mupdf_document_output_intent ( ctx : * mut fz_context , doc : * mut fz_document , errptr : * mut * mut mupdf_error_t ) -> * mut fz_colorspace ; } extern "C" { pub fn mupdf_pdf_open_document_from_bytes ( ctx : * mut fz_context , bytes : * mut fz_buffer , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_document ; } extern "C" { pub fn mupdf_pdf_add_object ( ctx : * mut fz_context , pdf : * mut pdf_document , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_create_object ( ctx : * mut fz_context , pdf : * mut pdf_document , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_delete_object ( ctx : * mut fz_context , pdf : * mut pdf_document , num : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_add_image ( ctx : * mut fz_context , pdf : * mut pdf_document , image : * mut fz_image , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_add_font ( ctx : * mut fz_context , pdf : * mut pdf_document , font : * mut fz_font , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_add_cjk_font ( ctx : * mut fz_context , pdf : * mut pdf_document , font : * mut fz_font , ordering : :: std :: os :: raw :: c_int , wmode : :: std :: os :: raw :: c_int , serif : bool , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_add_simple_font ( ctx : * mut fz_context , pdf : * mut pdf_document , font : * mut fz_font , encoding : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_save_document ( ctx : * mut fz_context , pdf : * mut pdf_document , filename : * const :: std :: os :: raw :: c_char , pwo : pdf_write_options , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_write_document ( ctx : * mut fz_context , pdf : * mut pdf_document , pwo : pdf_write_options , errptr : * mut * mut mupdf_error_t ) -> * mut fz_buffer ; } extern "C" { pub fn mupdf_pdf_enable_js ( ctx : * mut fz_context , pdf : * mut pdf_document , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_disable_js ( ctx : * mut fz_context , pdf : * mut pdf_document , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_js_supported ( ctx : * mut fz_context , pdf : * mut pdf_document , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_calculate_form ( ctx : * mut fz_context , pdf : * mut pdf_document , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_trailer ( ctx : * mut fz_context , pdf : * mut pdf_document , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_catalog ( ctx : * mut fz_context , pdf : * mut pdf_document , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_count_objects ( ctx : * mut fz_context , pdf : * mut pdf_document , errptr : * mut * mut mupdf_error_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mupdf_pdf_new_graft_map ( ctx : * mut fz_context , pdf : * mut pdf_document , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_graft_map ; } extern "C" { pub fn mupdf_pdf_graft_object ( ctx : * mut fz_context , doc : * mut pdf_document , obj : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_new_page ( ctx : * mut fz_context , pdf : * mut pdf_document , page_no : :: std :: os :: raw :: c_int , width : f32 , height : f32 , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_page ; } extern "C" { pub fn mupdf_pdf_lookup_page_obj ( ctx : * mut fz_context , pdf : * mut pdf_document , page_no : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_obj ; } extern "C" { pub fn mupdf_pdf_insert_page ( ctx : * mut fz_context , pdf : * mut pdf_document , page_no : :: std :: os :: raw :: c_int , page : * mut pdf_obj , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_delete_page ( ctx : * mut fz_context , pdf : * mut pdf_document , page_no : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_new_draw_device ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , clip : fz_irect , errptr : * mut * mut mupdf_error_t ) -> * mut fz_device ; } extern "C" { pub fn mupdf_new_display_list_device ( ctx : * mut fz_context , list : * mut fz_display_list , errptr : * mut * mut mupdf_error_t ) -> * mut fz_device ; } extern "C" { pub fn mupdf_new_stext_device ( ctx : * mut fz_context , tp : * mut fz_stext_page , flags : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut fz_device ; } extern "C" { pub fn mupdf_fill_path ( ctx : * mut fz_context , device : * mut fz_device , path : * mut fz_path , even_odd : bool , ctm : fz_matrix , cs : * mut fz_colorspace , color : * const f32 , alpha : f32 , cp : fz_color_params , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_stroke_path ( ctx : * mut fz_context , device : * mut fz_device , path : * mut fz_path , stroke : * mut fz_stroke_state , ctm : fz_matrix , cs : * mut fz_colorspace , color : * const f32 , alpha : f32 , cp : fz_color_params , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_clip_path ( ctx : * mut fz_context , device : * mut fz_device , path : * mut fz_path , even_odd : bool , ctm : fz_matrix , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_clip_stroke_path ( ctx : * mut fz_context , device : * mut fz_device , path : * mut fz_path , stroke : * mut fz_stroke_state , ctm : fz_matrix , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_fill_text ( ctx : * mut fz_context , device : * mut fz_device , text : * mut fz_text , ctm : fz_matrix , cs : * mut fz_colorspace , color : * const f32 , alpha : f32 , cp : fz_color_params , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_stroke_text ( ctx : * mut fz_context , device : * mut fz_device , text : * mut fz_text , stroke : * mut fz_stroke_state , ctm : fz_matrix , cs : * mut fz_colorspace , color : * const f32 , alpha : f32 , cp : fz_color_params , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_clip_text ( ctx : * mut fz_context , device : * mut fz_device , text : * mut fz_text , ctm : fz_matrix , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_clip_stroke_text ( ctx : * mut fz_context , device : * mut fz_device , text : * mut fz_text , stroke : * mut fz_stroke_state , ctm : fz_matrix , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_ignore_text ( ctx : * mut fz_context , device : * mut fz_device , text : * mut fz_text , ctm : fz_matrix , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_fill_shade ( ctx : * mut fz_context , device : * mut fz_device , shade : * mut fz_shade , ctm : fz_matrix , alpha : f32 , cp : fz_color_params , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_fill_image ( ctx : * mut fz_context , device : * mut fz_device , image : * mut fz_image , ctm : fz_matrix , alpha : f32 , cp : fz_color_params , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_fill_image_mask ( ctx : * mut fz_context , device : * mut fz_device , image : * mut fz_image , ctm : fz_matrix , cs : * mut fz_colorspace , color : * const f32 , alpha : f32 , cp : fz_color_params , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_clip_image_mask ( ctx : * mut fz_context , device : * mut fz_device , image : * mut fz_image , ctm : fz_matrix , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pop_clip ( ctx : * mut fz_context , device : * mut fz_device , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_begin_layer ( ctx : * mut fz_context , device : * mut fz_device , name : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_end_layer ( ctx : * mut fz_context , device : * mut fz_device , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_begin_mask ( ctx : * mut fz_context , device : * mut fz_device , area : fz_rect , luminosity : bool , cs : * mut fz_colorspace , color : * const f32 , cp : fz_color_params , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_end_mask ( ctx : * mut fz_context , device : * mut fz_device , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_begin_group ( ctx : * mut fz_context , device : * mut fz_device , area : fz_rect , cs : * mut fz_colorspace , isolated : bool , knockout : bool , blendmode : :: std :: os :: raw :: c_int , alpha : f32 , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_end_group ( ctx : * mut fz_context , device : * mut fz_device , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_begin_tile ( ctx : * mut fz_context , device : * mut fz_device , area : fz_rect , view : fz_rect , xstep : f32 , ystep : f32 , ctm : fz_matrix , id : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mupdf_end_tile ( ctx : * mut fz_context , device : * mut fz_device , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_create_annot ( ctx : * mut fz_context , page : * mut pdf_page , subtype : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) -> * mut pdf_annot ; } extern "C" { pub fn mupdf_pdf_delete_annot ( ctx : * mut fz_context , page : * mut pdf_page , annot : * mut pdf_annot , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_update_page ( ctx : * mut fz_context , page : * mut pdf_page , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_redact_page ( ctx : * mut fz_context , page : * mut pdf_page , errptr : * mut * mut mupdf_error_t ) -> bool ; } extern "C" { pub fn mupdf_pdf_page_set_rotation ( ctx : * mut fz_context , page : * mut pdf_page , rotation : :: std :: os :: raw :: c_int , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_page_set_crop_box ( ctx : * mut fz_context , page : * mut pdf_page , rect : fz_rect , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_pdf_page_crop_box_position ( ctx : * mut fz_context , page : * mut pdf_page ) -> fz_point ; } extern "C" { pub fn mupdf_pdf_page_media_box ( ctx : * mut fz_context , page : * mut pdf_page ) -> fz_rect ; } extern "C" { pub fn mupdf_pdf_page_transform ( ctx : * mut fz_context , page : * mut pdf_page , errptr : * mut * mut mupdf_error_t ) -> fz_matrix ; } extern "C" { pub fn mupdf_pdf_annot_type ( ctx : * mut fz_context , annot : * mut pdf_annot , errptr : * mut * mut mupdf_error_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mupdf_new_document_writer ( ctx : * mut fz_context , filename : * const :: std :: os :: raw :: c_char , format : * const :: std :: os :: raw :: c_char , options : * const :: std :: os :: raw :: c_char , errptr : * mut * mut mupdf_error_t ) -> * mut fz_document_writer ; } extern "C" { pub fn mupdf_document_writer_begin_page ( ctx : * mut fz_context , writer : * mut fz_document_writer , mediabox : fz_rect , errptr : * mut * mut mupdf_error_t ) -> * mut fz_device ; } extern "C" { pub fn mupdf_document_writer_end_page ( ctx : * mut fz_context , writer : * mut fz_document_writer , errptr : * mut * mut mupdf_error_t ) ; } extern "C" { pub fn mupdf_new_glyph_from_pixmap ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , errptr : * mut * mut mupdf_error_t ) -> * mut fz_glyph ; } extern "C" { pub fn mupdf_new_bitmap_from_pixmap ( ctx : * mut fz_context , pixmap : * mut fz_pixmap , errptr : * mut * mut mupdf_error_t ) -> * mut fz_bitmap ; } pub type __builtin_va_list = [ __va_list_tag ; 1usize ] ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout___va_list_tag ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __va_list_tag > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( __va_list_tag ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __va_list_tag > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( __va_list_tag ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . gp_offset as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( gp_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . fp_offset as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( fp_offset ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . overflow_arg_area as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( overflow_arg_area ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __va_list_tag > ( ) ) ) . reg_save_area as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( __va_list_tag ) , "::" , stringify ! ( reg_save_area ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct fz_display_list_s { pub _address : u8 , }