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 > where Storage : AsRef < [ u8 ] > + AsMut < [ u8 ] >, { storage : Storage , align : [ Align ; 0 ] , } impl < Storage , Align > __BindgenBitfieldUnit < Storage , Align > where Storage : AsRef < [ u8 ] > + AsMut < [ u8 ] >, { # [ inline ] pub fn new ( storage : Storage ) -> Self { Self { storage , align : [ ] , } } # [ 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 BL_BUILD_BYTE_ORDER : u32 = 1234 ; pub type va_list = __builtin_va_list ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; 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 ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontVirt { _unused : [ u8 ; 0 ] , } pub type BLResult = u32 ; pub type BLBitWord = usize ; pub type BLTag = u32 ; pub type BLDestroyImplFunc = :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut :: std :: os :: raw :: c_void , destroyData : * mut :: std :: os :: raw :: c_void ) > ; pub type BLPathSinkFunc = :: std :: option :: Option < unsafe extern "C" fn ( path : * mut BLPathCore , info : * const :: std :: os :: raw :: c_void , closure : * mut :: std :: os :: raw :: c_void ) -> BLResult > ; pub type BLGlyphId = u16 ; pub mod BLResultCode { pub type Type = u32 ; pub const BL_SUCCESS : Type = 0 ; pub const BL_ERROR_START_INDEX : Type = 65536 ; pub const BL_ERROR_OUT_OF_MEMORY : Type = 65536 ; pub const BL_ERROR_INVALID_VALUE : Type = 65537 ; pub const BL_ERROR_INVALID_STATE : Type = 65538 ; pub const BL_ERROR_INVALID_HANDLE : Type = 65539 ; pub const BL_ERROR_VALUE_TOO_LARGE : Type = 65540 ; pub const BL_ERROR_NOT_INITIALIZED : Type = 65541 ; pub const BL_ERROR_NOT_IMPLEMENTED : Type = 65542 ; pub const BL_ERROR_NOT_PERMITTED : Type = 65543 ; pub const BL_ERROR_IO : Type = 65544 ; pub const BL_ERROR_BUSY : Type = 65545 ; pub const BL_ERROR_INTERRUPTED : Type = 65546 ; pub const BL_ERROR_TRY_AGAIN : Type = 65547 ; pub const BL_ERROR_BROKEN_PIPE : Type = 65548 ; pub const BL_ERROR_INVALID_SEEK : Type = 65549 ; pub const BL_ERROR_SYMLINK_LOOP : Type = 65550 ; pub const BL_ERROR_FILE_TOO_LARGE : Type = 65551 ; pub const BL_ERROR_ALREADY_EXISTS : Type = 65552 ; pub const BL_ERROR_ACCESS_DENIED : Type = 65553 ; pub const BL_ERROR_MEDIA_CHANGED : Type = 65554 ; pub const BL_ERROR_READ_ONLY_FS : Type = 65555 ; pub const BL_ERROR_NO_DEVICE : Type = 65556 ; pub const BL_ERROR_NO_ENTRY : Type = 65557 ; pub const BL_ERROR_NO_MEDIA : Type = 65558 ; pub const BL_ERROR_NO_MORE_DATA : Type = 65559 ; pub const BL_ERROR_NO_MORE_FILES : Type = 65560 ; pub const BL_ERROR_NO_SPACE_LEFT : Type = 65561 ; pub const BL_ERROR_NOT_EMPTY : Type = 65562 ; pub const BL_ERROR_NOT_FILE : Type = 65563 ; pub const BL_ERROR_NOT_DIRECTORY : Type = 65564 ; pub const BL_ERROR_NOT_SAME_DEVICE : Type = 65565 ; pub const BL_ERROR_NOT_BLOCK_DEVICE : Type = 65566 ; pub const BL_ERROR_INVALID_FILE_NAME : Type = 65567 ; pub const BL_ERROR_FILE_NAME_TOO_LONG : Type = 65568 ; pub const BL_ERROR_TOO_MANY_OPEN_FILES : Type = 65569 ; pub const BL_ERROR_TOO_MANY_OPEN_FILES_BY_OS : Type = 65570 ; pub const BL_ERROR_TOO_MANY_LINKS : Type = 65571 ; pub const BL_ERROR_FILE_EMPTY : Type = 65572 ; pub const BL_ERROR_OPEN_FAILED : Type = 65573 ; pub const BL_ERROR_NOT_ROOT_DEVICE : Type = 65574 ; pub const BL_ERROR_UNKNOWN_SYSTEM_ERROR : Type = 65575 ; pub const BL_ERROR_INVALID_SIGNATURE : Type = 65576 ; pub const BL_ERROR_INVALID_DATA : Type = 65577 ; pub const BL_ERROR_INVALID_STRING : Type = 65578 ; pub const BL_ERROR_DATA_TRUNCATED : Type = 65579 ; pub const BL_ERROR_DATA_TOO_LARGE : Type = 65580 ; pub const BL_ERROR_DECOMPRESSION_FAILED : Type = 65581 ; pub const BL_ERROR_INVALID_GEOMETRY : Type = 65582 ; pub const BL_ERROR_NO_MATCHING_VERTEX : Type = 65583 ; pub const BL_ERROR_NO_MATCHING_COOKIE : Type = 65584 ; pub const BL_ERROR_NO_STATES_TO_RESTORE : Type = 65585 ; pub const BL_ERROR_IMAGE_TOO_LARGE : Type = 65586 ; pub const BL_ERROR_IMAGE_NO_MATCHING_CODEC : Type = 65587 ; pub const BL_ERROR_IMAGE_UNKNOWN_FILE_FORMAT : Type = 65588 ; pub const BL_ERROR_IMAGE_DECODER_NOT_PROVIDED : Type = 65589 ; pub const BL_ERROR_IMAGE_ENCODER_NOT_PROVIDED : Type = 65590 ; pub const BL_ERROR_PNG_MULTIPLE_IHDR : Type = 65591 ; pub const BL_ERROR_PNG_INVALID_IDAT : Type = 65592 ; pub const BL_ERROR_PNG_INVALID_IEND : Type = 65593 ; pub const BL_ERROR_PNG_INVALID_PLTE : Type = 65594 ; pub const BL_ERROR_PNG_INVALID_TRNS : Type = 65595 ; pub const BL_ERROR_PNG_INVALID_FILTER : Type = 65596 ; pub const BL_ERROR_JPEG_UNSUPPORTED_FEATURE : Type = 65597 ; pub const BL_ERROR_JPEG_INVALID_SOS : Type = 65598 ; pub const BL_ERROR_JPEG_INVALID_SOF : Type = 65599 ; pub const BL_ERROR_JPEG_MULTIPLE_SOF : Type = 65600 ; pub const BL_ERROR_JPEG_UNSUPPORTED_SOF : Type = 65601 ; pub const BL_ERROR_FONT_NO_CHARACTER_MAPPING : Type = 65602 ; pub const BL_ERROR_FONT_MISSING_IMPORTANT_TABLE : Type = 65603 ; pub const BL_ERROR_FONT_FEATURE_NOT_AVAILABLE : Type = 65604 ; pub const BL_ERROR_FONT_CFF_INVALID_DATA : Type = 65605 ; pub const BL_ERROR_FONT_PROGRAM_TERMINATED : Type = 65606 ; pub const BL_ERROR_INVALID_GLYPH : Type = 65607 ; } pub mod BLByteOrder { pub type Type = u32 ; pub const BL_BYTE_ORDER_LE : Type = 0 ; pub const BL_BYTE_ORDER_BE : Type = 1 ; pub const BL_BYTE_ORDER_NATIVE : Type = 0 ; pub const BL_BYTE_ORDER_SWAPPED : Type = 1 ; } pub mod BLDataAccessType { pub type Type = u32 ; pub const BL_DATA_ACCESS_TYPE_NONE : Type = 0 ; pub const BL_DATA_ACCESS_TYPE_RO : Type = 1 ; pub const BL_DATA_ACCESS_TYPE_RW : Type = 2 ; pub const BL_DATA_ACCESS_TYPE_COUNT : Type = 3 ; } pub mod BLDataSourceType { pub type Type = u32 ; pub const BL_DATA_SOURCE_TYPE_NONE : Type = 0 ; pub const BL_DATA_SOURCE_TYPE_MEMORY : Type = 1 ; pub const BL_DATA_SOURCE_TYPE_FILE : Type = 2 ; pub const BL_DATA_SOURCE_TYPE_CUSTOM : Type = 3 ; pub const BL_DATA_SOURCE_TYPE_COUNT : Type = 4 ; } pub mod BLModifyOp { pub type Type = u32 ; pub const BL_MODIFY_OP_ASSIGN_FIT : Type = 0 ; pub const BL_MODIFY_OP_ASSIGN_GROW : Type = 1 ; pub const BL_MODIFY_OP_APPEND_FIT : Type = 2 ; pub const BL_MODIFY_OP_APPEND_GROW : Type = 3 ; pub const BL_MODIFY_OP_COUNT : Type = 4 ; } pub mod BLBooleanOp { pub type Type = u32 ; pub const BL_BOOLEAN_OP_COPY : Type = 0 ; pub const BL_BOOLEAN_OP_AND : Type = 1 ; pub const BL_BOOLEAN_OP_OR : Type = 2 ; pub const BL_BOOLEAN_OP_XOR : Type = 3 ; pub const BL_BOOLEAN_OP_SUB : Type = 4 ; pub const BL_BOOLEAN_OP_COUNT : Type = 5 ; } pub mod BLExtendMode { pub type Type = u32 ; pub const BL_EXTEND_MODE_PAD : Type = 0 ; pub const BL_EXTEND_MODE_REPEAT : Type = 1 ; pub const BL_EXTEND_MODE_REFLECT : Type = 2 ; pub const BL_EXTEND_MODE_PAD_X_PAD_Y : Type = 0 ; pub const BL_EXTEND_MODE_REPEAT_X_REPEAT_Y : Type = 1 ; pub const BL_EXTEND_MODE_REFLECT_X_REFLECT_Y : Type = 2 ; pub const BL_EXTEND_MODE_PAD_X_REPEAT_Y : Type = 3 ; pub const BL_EXTEND_MODE_PAD_X_REFLECT_Y : Type = 4 ; pub const BL_EXTEND_MODE_REPEAT_X_PAD_Y : Type = 5 ; pub const BL_EXTEND_MODE_REPEAT_X_REFLECT_Y : Type = 6 ; pub const BL_EXTEND_MODE_REFLECT_X_PAD_Y : Type = 7 ; pub const BL_EXTEND_MODE_REFLECT_X_REPEAT_Y : Type = 8 ; pub const BL_EXTEND_MODE_SIMPLE_COUNT : Type = 3 ; pub const BL_EXTEND_MODE_COMPLEX_COUNT : Type = 9 ; } pub mod BLStyleType { pub type Type = u32 ; pub const BL_STYLE_TYPE_NONE : Type = 0 ; pub const BL_STYLE_TYPE_SOLID : Type = 1 ; pub const BL_STYLE_TYPE_PATTERN : Type = 2 ; pub const BL_STYLE_TYPE_GRADIENT : Type = 3 ; pub const BL_STYLE_TYPE_COUNT : Type = 4 ; } pub mod BLTextEncoding { pub type Type = u32 ; pub const BL_TEXT_ENCODING_UTF8 : Type = 0 ; pub const BL_TEXT_ENCODING_UTF16 : Type = 1 ; pub const BL_TEXT_ENCODING_UTF32 : Type = 2 ; pub const BL_TEXT_ENCODING_LATIN1 : Type = 3 ; pub const BL_TEXT_ENCODING_WCHAR : Type = 2 ; pub const BL_TEXT_ENCODING_COUNT : Type = 4 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRange { pub start : usize , pub end : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLCreateForeignInfo { pub data : * mut :: std :: os :: raw :: c_void , pub size : usize , pub destroyFunc : BLDestroyImplFunc , pub destroyData : * mut :: std :: os :: raw :: c_void , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLArrayView { pub data : * const :: std :: os :: raw :: c_void , pub size : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLStringView { pub data : * const :: std :: os :: raw :: c_char , pub size : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRegionView { pub data : * const BLBoxI , pub size : usize , } pub type BLDataView = BLArrayView ; extern "C" { pub fn blArrayInit ( self_ : * mut BLArrayCore , arrayTypeId : u32 ) -> BLResult ; } extern "C" { pub fn blArrayReset ( self_ : * mut BLArrayCore ) -> BLResult ; } extern "C" { pub fn blArrayGetSize ( self_ : * const BLArrayCore ) -> usize ; } extern "C" { pub fn blArrayGetCapacity ( self_ : * const BLArrayCore ) -> usize ; } extern "C" { pub fn blArrayGetData ( self_ : * const BLArrayCore ) -> * const :: std :: os :: raw :: c_void ; } extern "C" { pub fn blArrayClear ( self_ : * mut BLArrayCore ) -> BLResult ; } extern "C" { pub fn blArrayShrink ( self_ : * mut BLArrayCore ) -> BLResult ; } extern "C" { pub fn blArrayReserve ( self_ : * mut BLArrayCore , n : usize ) -> BLResult ; } extern "C" { pub fn blArrayResize ( self_ : * mut BLArrayCore , n : usize , fill : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blArrayMakeMutable ( self_ : * mut BLArrayCore , dataOut : * mut * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blArrayModifyOp ( self_ : * mut BLArrayCore , op : u32 , n : usize , dataOut : * mut * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blArrayInsertOp ( self_ : * mut BLArrayCore , index : usize , n : usize , dataOut : * mut * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blArrayAssignMove ( self_ : * mut BLArrayCore , other : * mut BLArrayCore ) -> BLResult ; } extern "C" { pub fn blArrayAssignWeak ( self_ : * mut BLArrayCore , other : * const BLArrayCore ) -> BLResult ; } extern "C" { pub fn blArrayAssignDeep ( self_ : * mut BLArrayCore , other : * const BLArrayCore ) -> BLResult ; } extern "C" { pub fn blArrayAssignView ( self_ : * mut BLArrayCore , items : * const :: std :: os :: raw :: c_void , n : usize ) -> BLResult ; } extern "C" { pub fn blArrayAppendU8 ( self_ : * mut BLArrayCore , value : u8 ) -> BLResult ; } extern "C" { pub fn blArrayAppendU16 ( self_ : * mut BLArrayCore , value : u16 ) -> BLResult ; } extern "C" { pub fn blArrayAppendU32 ( self_ : * mut BLArrayCore , value : u32 ) -> BLResult ; } extern "C" { pub fn blArrayAppendU64 ( self_ : * mut BLArrayCore , value : u64 ) -> BLResult ; } extern "C" { pub fn blArrayAppendF32 ( self_ : * mut BLArrayCore , value : f32 ) -> BLResult ; } extern "C" { pub fn blArrayAppendF64 ( self_ : * mut BLArrayCore , value : f64 ) -> BLResult ; } extern "C" { pub fn blArrayAppendItem ( self_ : * mut BLArrayCore , item : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blArrayAppendView ( self_ : * mut BLArrayCore , items : * const :: std :: os :: raw :: c_void , n : usize ) -> BLResult ; } extern "C" { pub fn blArrayInsertU8 ( self_ : * mut BLArrayCore , index : usize , value : u8 ) -> BLResult ; } extern "C" { pub fn blArrayInsertU16 ( self_ : * mut BLArrayCore , index : usize , value : u16 ) -> BLResult ; } extern "C" { pub fn blArrayInsertU32 ( self_ : * mut BLArrayCore , index : usize , value : u32 ) -> BLResult ; } extern "C" { pub fn blArrayInsertU64 ( self_ : * mut BLArrayCore , index : usize , value : u64 ) -> BLResult ; } extern "C" { pub fn blArrayInsertF32 ( self_ : * mut BLArrayCore , index : usize , value : f32 ) -> BLResult ; } extern "C" { pub fn blArrayInsertF64 ( self_ : * mut BLArrayCore , index : usize , value : f64 ) -> BLResult ; } extern "C" { pub fn blArrayInsertItem ( self_ : * mut BLArrayCore , index : usize , item : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blArrayInsertView ( self_ : * mut BLArrayCore , index : usize , items : * const :: std :: os :: raw :: c_void , n : usize ) -> BLResult ; } extern "C" { pub fn blArrayReplaceU8 ( self_ : * mut BLArrayCore , index : usize , value : u8 ) -> BLResult ; } extern "C" { pub fn blArrayReplaceU16 ( self_ : * mut BLArrayCore , index : usize , value : u16 ) -> BLResult ; } extern "C" { pub fn blArrayReplaceU32 ( self_ : * mut BLArrayCore , index : usize , value : u32 ) -> BLResult ; } extern "C" { pub fn blArrayReplaceU64 ( self_ : * mut BLArrayCore , index : usize , value : u64 ) -> BLResult ; } extern "C" { pub fn blArrayReplaceF32 ( self_ : * mut BLArrayCore , index : usize , value : f32 ) -> BLResult ; } extern "C" { pub fn blArrayReplaceF64 ( self_ : * mut BLArrayCore , index : usize , value : f64 ) -> BLResult ; } extern "C" { pub fn blArrayReplaceItem ( self_ : * mut BLArrayCore , index : usize , item : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blArrayReplaceView ( self_ : * mut BLArrayCore , range : * const BLRange , items : * const :: std :: os :: raw :: c_void , n : usize ) -> BLResult ; } extern "C" { pub fn blArrayRemoveIndex ( self_ : * mut BLArrayCore , index : usize ) -> BLResult ; } extern "C" { pub fn blArrayRemoveRange ( self_ : * mut BLArrayCore , range : * const BLRange ) -> BLResult ; } extern "C" { pub fn blArrayEquals ( a : * const BLArrayCore , b : * const BLArrayCore ) -> bool ; } extern "C" { pub fn blContextInit ( self_ : * mut BLContextCore ) -> BLResult ; } extern "C" { pub fn blContextInitAs ( self_ : * mut BLContextCore , image : * mut BLImageCore , options : * const BLContextCreateOptions ) -> BLResult ; } extern "C" { pub fn blContextReset ( self_ : * mut BLContextCore ) -> BLResult ; } extern "C" { pub fn blContextAssignMove ( self_ : * mut BLContextCore , other : * mut BLContextCore ) -> BLResult ; } extern "C" { pub fn blContextAssignWeak ( self_ : * mut BLContextCore , other : * const BLContextCore ) -> BLResult ; } extern "C" { pub fn blContextBegin ( self_ : * mut BLContextCore , image : * mut BLImageCore , options : * const BLContextCreateOptions ) -> BLResult ; } extern "C" { pub fn blContextEnd ( self_ : * mut BLContextCore ) -> BLResult ; } extern "C" { pub fn blContextFlush ( self_ : * mut BLContextCore , flags : u32 ) -> BLResult ; } extern "C" { pub fn blContextSave ( self_ : * mut BLContextCore , cookie : * mut BLContextCookie ) -> BLResult ; } extern "C" { pub fn blContextRestore ( self_ : * mut BLContextCore , cookie : * const BLContextCookie ) -> BLResult ; } extern "C" { pub fn blContextUserToMeta ( self_ : * mut BLContextCore ) -> BLResult ; } extern "C" { pub fn blContextMatrixOp ( self_ : * mut BLContextCore , opType : u32 , opData : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blContextSetHint ( self_ : * mut BLContextCore , hintType : u32 , value : u32 ) -> BLResult ; } extern "C" { pub fn blContextSetHints ( self_ : * mut BLContextCore , hints : * const BLContextHints ) -> BLResult ; } extern "C" { pub fn blContextSetFlattenMode ( self_ : * mut BLContextCore , mode : u32 ) -> BLResult ; } extern "C" { pub fn blContextSetFlattenTolerance ( self_ : * mut BLContextCore , tolerance : f64 ) -> BLResult ; } extern "C" { pub fn blContextSetApproximationOptions ( self_ : * mut BLContextCore , options : * const BLApproximationOptions ) -> BLResult ; } extern "C" { pub fn blContextSetCompOp ( self_ : * mut BLContextCore , compOp : u32 ) -> BLResult ; } extern "C" { pub fn blContextSetGlobalAlpha ( self_ : * mut BLContextCore , alpha : f64 ) -> BLResult ; } extern "C" { pub fn blContextSetFillRule ( self_ : * mut BLContextCore , fillRule : u32 ) -> BLResult ; } extern "C" { pub fn blContextSetFillAlpha ( self_ : * mut BLContextCore , alpha : f64 ) -> BLResult ; } extern "C" { pub fn blContextGetFillStyle ( self_ : * const BLContextCore , object : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blContextGetFillStyleRgba32 ( self_ : * const BLContextCore , rgba32 : * mut u32 ) -> BLResult ; } extern "C" { pub fn blContextGetFillStyleRgba64 ( self_ : * const BLContextCore , rgba64 : * mut u64 ) -> BLResult ; } extern "C" { pub fn blContextSetFillStyle ( self_ : * mut BLContextCore , object : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blContextSetFillStyleRgba32 ( self_ : * mut BLContextCore , rgba32 : u32 ) -> BLResult ; } extern "C" { pub fn blContextSetFillStyleRgba64 ( self_ : * mut BLContextCore , rgba64 : u64 ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeWidth ( self_ : * mut BLContextCore , width : f64 ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeMiterLimit ( self_ : * mut BLContextCore , miterLimit : f64 ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeCap ( self_ : * mut BLContextCore , position : u32 , strokeCap : u32 ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeCaps ( self_ : * mut BLContextCore , strokeCap : u32 ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeJoin ( self_ : * mut BLContextCore , strokeJoin : u32 ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeDashOffset ( self_ : * mut BLContextCore , dashOffset : f64 ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeDashArray ( self_ : * mut BLContextCore , dashArray : * const BLArrayCore ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeTransformOrder ( self_ : * mut BLContextCore , transformOrder : u32 ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeOptions ( self_ : * mut BLContextCore , options : * const BLStrokeOptionsCore ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeAlpha ( self_ : * mut BLContextCore , alpha : f64 ) -> BLResult ; } extern "C" { pub fn blContextGetStrokeStyle ( self_ : * const BLContextCore , object : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blContextGetStrokeStyleRgba32 ( self_ : * const BLContextCore , rgba32 : * mut u32 ) -> BLResult ; } extern "C" { pub fn blContextGetStrokeStyleRgba64 ( self_ : * const BLContextCore , rgba64 : * mut u64 ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeStyle ( self_ : * mut BLContextCore , object : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeStyleRgba32 ( self_ : * mut BLContextCore , rgba32 : u32 ) -> BLResult ; } extern "C" { pub fn blContextSetStrokeStyleRgba64 ( self_ : * mut BLContextCore , rgba64 : u64 ) -> BLResult ; } extern "C" { pub fn blContextClipToRectI ( self_ : * mut BLContextCore , rect : * const BLRectI ) -> BLResult ; } extern "C" { pub fn blContextClipToRectD ( self_ : * mut BLContextCore , rect : * const BLRect ) -> BLResult ; } extern "C" { pub fn blContextRestoreClipping ( self_ : * mut BLContextCore ) -> BLResult ; } extern "C" { pub fn blContextClearAll ( self_ : * mut BLContextCore ) -> BLResult ; } extern "C" { pub fn blContextClearRectI ( self_ : * mut BLContextCore , rect : * const BLRectI ) -> BLResult ; } extern "C" { pub fn blContextClearRectD ( self_ : * mut BLContextCore , rect : * const BLRect ) -> BLResult ; } extern "C" { pub fn blContextFillAll ( self_ : * mut BLContextCore ) -> BLResult ; } extern "C" { pub fn blContextFillRectI ( self_ : * mut BLContextCore , rect : * const BLRectI ) -> BLResult ; } extern "C" { pub fn blContextFillRectD ( self_ : * mut BLContextCore , rect : * const BLRect ) -> BLResult ; } extern "C" { pub fn blContextFillPathD ( self_ : * mut BLContextCore , path : * const BLPathCore ) -> BLResult ; } extern "C" { pub fn blContextFillGeometry ( self_ : * mut BLContextCore , geometryType : u32 , geometryData : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blContextFillTextI ( self_ : * mut BLContextCore , pt : * const BLPointI , font : * const BLFontCore , text : * const :: std :: os :: raw :: c_void , size : usize , encoding : u32 ) -> BLResult ; } extern "C" { pub fn blContextFillTextD ( self_ : * mut BLContextCore , pt : * const BLPoint , font : * const BLFontCore , text : * const :: std :: os :: raw :: c_void , size : usize , encoding : u32 ) -> BLResult ; } extern "C" { pub fn blContextFillGlyphRunI ( self_ : * mut BLContextCore , pt : * const BLPointI , font : * const BLFontCore , glyphRun : * const BLGlyphRun ) -> BLResult ; } extern "C" { pub fn blContextFillGlyphRunD ( self_ : * mut BLContextCore , pt : * const BLPoint , font : * const BLFontCore , glyphRun : * const BLGlyphRun ) -> BLResult ; } extern "C" { pub fn blContextStrokeRectI ( self_ : * mut BLContextCore , rect : * const BLRectI ) -> BLResult ; } extern "C" { pub fn blContextStrokeRectD ( self_ : * mut BLContextCore , rect : * const BLRect ) -> BLResult ; } extern "C" { pub fn blContextStrokePathD ( self_ : * mut BLContextCore , path : * const BLPathCore ) -> BLResult ; } extern "C" { pub fn blContextStrokeGeometry ( self_ : * mut BLContextCore , geometryType : u32 , geometryData : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blContextStrokeTextI ( self_ : * mut BLContextCore , pt : * const BLPointI , font : * const BLFontCore , text : * const :: std :: os :: raw :: c_void , size : usize , encoding : u32 ) -> BLResult ; } extern "C" { pub fn blContextStrokeTextD ( self_ : * mut BLContextCore , pt : * const BLPoint , font : * const BLFontCore , text : * const :: std :: os :: raw :: c_void , size : usize , encoding : u32 ) -> BLResult ; } extern "C" { pub fn blContextStrokeGlyphRunI ( self_ : * mut BLContextCore , pt : * const BLPointI , font : * const BLFontCore , glyphRun : * const BLGlyphRun ) -> BLResult ; } extern "C" { pub fn blContextStrokeGlyphRunD ( self_ : * mut BLContextCore , pt : * const BLPoint , font : * const BLFontCore , glyphRun : * const BLGlyphRun ) -> BLResult ; } extern "C" { pub fn blContextBlitImageI ( self_ : * mut BLContextCore , pt : * const BLPointI , img : * const BLImageCore , imgArea : * const BLRectI ) -> BLResult ; } extern "C" { pub fn blContextBlitImageD ( self_ : * mut BLContextCore , pt : * const BLPoint , img : * const BLImageCore , imgArea : * const BLRectI ) -> BLResult ; } extern "C" { pub fn blContextBlitScaledImageI ( self_ : * mut BLContextCore , rect : * const BLRectI , img : * const BLImageCore , imgArea : * const BLRectI ) -> BLResult ; } extern "C" { pub fn blContextBlitScaledImageD ( self_ : * mut BLContextCore , rect : * const BLRect , img : * const BLImageCore , imgArea : * const BLRectI ) -> BLResult ; } extern "C" { pub fn blFileInit ( self_ : * mut BLFileCore ) -> BLResult ; } extern "C" { pub fn blFileReset ( self_ : * mut BLFileCore ) -> BLResult ; } extern "C" { pub fn blFileOpen ( self_ : * mut BLFileCore , fileName : * const :: std :: os :: raw :: c_char , openFlags : u32 ) -> BLResult ; } extern "C" { pub fn blFileClose ( self_ : * mut BLFileCore ) -> BLResult ; } extern "C" { pub fn blFileSeek ( self_ : * mut BLFileCore , offset : i64 , seekType : u32 , positionOut : * mut i64 ) -> BLResult ; } extern "C" { pub fn blFileRead ( self_ : * mut BLFileCore , buffer : * mut :: std :: os :: raw :: c_void , n : usize , bytesReadOut : * mut usize ) -> BLResult ; } extern "C" { pub fn blFileWrite ( self_ : * mut BLFileCore , buffer : * const :: std :: os :: raw :: c_void , n : usize , bytesWrittenOut : * mut usize ) -> BLResult ; } extern "C" { pub fn blFileTruncate ( self_ : * mut BLFileCore , maxSize : i64 ) -> BLResult ; } extern "C" { pub fn blFileGetSize ( self_ : * mut BLFileCore , fileSizeOut : * mut u64 ) -> BLResult ; } extern "C" { pub fn blFileSystemReadFile ( fileName : * const :: std :: os :: raw :: c_char , dst : * mut BLArrayCore , maxSize : usize ) -> BLResult ; } extern "C" { pub fn blFileSystemWriteFile ( fileName : * const :: std :: os :: raw :: c_char , data : * const :: std :: os :: raw :: c_void , size : usize , bytesWrittenOut : * mut usize ) -> BLResult ; } extern "C" { pub fn blFontInit ( self_ : * mut BLFontCore ) -> BLResult ; } extern "C" { pub fn blFontReset ( self_ : * mut BLFontCore ) -> BLResult ; } extern "C" { pub fn blFontAssignMove ( self_ : * mut BLFontCore , other : * mut BLFontCore ) -> BLResult ; } extern "C" { pub fn blFontAssignWeak ( self_ : * mut BLFontCore , other : * const BLFontCore ) -> BLResult ; } extern "C" { pub fn blFontEquals ( a : * const BLFontCore , b : * const BLFontCore ) -> bool ; } extern "C" { pub fn blFontCreateFromFace ( self_ : * mut BLFontCore , face : * const BLFontFaceCore , size : f32 ) -> BLResult ; } extern "C" { pub fn blFontShape ( self_ : * const BLFontCore , buf : * mut BLGlyphBufferCore ) -> BLResult ; } extern "C" { pub fn blFontMapTextToGlyphs ( self_ : * const BLFontCore , buf : * mut BLGlyphBufferCore , stateOut : * mut BLGlyphMappingState ) -> BLResult ; } extern "C" { pub fn blFontPositionGlyphs ( self_ : * const BLFontCore , buf : * mut BLGlyphBufferCore , positioningFlags : u32 ) -> BLResult ; } extern "C" { pub fn blFontApplyKerning ( self_ : * const BLFontCore , buf : * mut BLGlyphBufferCore ) -> BLResult ; } extern "C" { pub fn blFontApplyGSub ( self_ : * const BLFontCore , buf : * mut BLGlyphBufferCore , index : usize , lookups : BLBitWord ) -> BLResult ; } extern "C" { pub fn blFontApplyGPos ( self_ : * const BLFontCore , buf : * mut BLGlyphBufferCore , index : usize , lookups : BLBitWord ) -> BLResult ; } extern "C" { pub fn blFontGetMatrix ( self_ : * const BLFontCore , out : * mut BLFontMatrix ) -> BLResult ; } extern "C" { pub fn blFontGetMetrics ( self_ : * const BLFontCore , out : * mut BLFontMetrics ) -> BLResult ; } extern "C" { pub fn blFontGetDesignMetrics ( self_ : * const BLFontCore , out : * mut BLFontDesignMetrics ) -> BLResult ; } extern "C" { pub fn blFontGetTextMetrics ( self_ : * const BLFontCore , buf : * mut BLGlyphBufferCore , out : * mut BLTextMetrics ) -> BLResult ; } extern "C" { pub fn blFontGetGlyphBounds ( self_ : * const BLFontCore , glyphIdData : * const :: std :: os :: raw :: c_void , glyphIdAdvance : isize , out : * mut BLBoxI , count : usize ) -> BLResult ; } extern "C" { pub fn blFontGetGlyphAdvances ( self_ : * const BLFontCore , glyphIdData : * const :: std :: os :: raw :: c_void , glyphIdAdvance : isize , out : * mut BLGlyphPlacement , count : usize ) -> BLResult ; } extern "C" { pub fn blFontGetGlyphOutlines ( self_ : * const BLFontCore , glyphId : u32 , userMatrix : * const BLMatrix2D , out : * mut BLPathCore , sink : BLPathSinkFunc , closure : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blFontGetGlyphRunOutlines ( self_ : * const BLFontCore , glyphRun : * const BLGlyphRun , userMatrix : * const BLMatrix2D , out : * mut BLPathCore , sink : BLPathSinkFunc , closure : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blFontDataInit ( self_ : * mut BLFontDataCore ) -> BLResult ; } extern "C" { pub fn blFontDataReset ( self_ : * mut BLFontDataCore ) -> BLResult ; } extern "C" { pub fn blFontDataAssignMove ( self_ : * mut BLFontDataCore , other : * mut BLFontDataCore ) -> BLResult ; } extern "C" { pub fn blFontDataAssignWeak ( self_ : * mut BLFontDataCore , other : * const BLFontDataCore ) -> BLResult ; } extern "C" { pub fn blFontDataEquals ( a : * const BLFontDataCore , b : * const BLFontDataCore ) -> bool ; } extern "C" { pub fn blFontDataListTags ( self_ : * const BLFontDataCore , dst : * mut BLArrayCore ) -> BLResult ; } extern "C" { pub fn blFontDataQueryTables ( self_ : * const BLFontDataCore , dst : * mut BLFontTable , tags : * const BLTag , count : usize ) -> usize ; } extern "C" { pub fn blFontFaceInit ( self_ : * mut BLFontFaceCore ) -> BLResult ; } extern "C" { pub fn blFontFaceReset ( self_ : * mut BLFontFaceCore ) -> BLResult ; } extern "C" { pub fn blFontFaceAssignMove ( self_ : * mut BLFontFaceCore , other : * mut BLFontFaceCore ) -> BLResult ; } extern "C" { pub fn blFontFaceAssignWeak ( self_ : * mut BLFontFaceCore , other : * const BLFontFaceCore ) -> BLResult ; } extern "C" { pub fn blFontFaceEquals ( a : * const BLFontFaceCore , b : * const BLFontFaceCore ) -> bool ; } extern "C" { pub fn blFontFaceCreateFromFile ( self_ : * mut BLFontFaceCore , fileName : * const :: std :: os :: raw :: c_char ) -> BLResult ; } extern "C" { pub fn blFontFaceCreateFromLoader ( self_ : * mut BLFontFaceCore , loader : * const BLFontLoaderCore , faceIndex : u32 ) -> BLResult ; } extern "C" { pub fn blFontFaceGetFaceInfo ( self_ : * const BLFontFaceCore , out : * mut BLFontFaceInfo ) -> BLResult ; } extern "C" { pub fn blFontFaceGetDesignMetrics ( self_ : * const BLFontFaceCore , out : * mut BLFontDesignMetrics ) -> BLResult ; } extern "C" { pub fn blFontFaceGetUnicodeCoverage ( self_ : * const BLFontFaceCore , out : * mut BLFontUnicodeCoverage ) -> BLResult ; } extern "C" { pub fn blFontLoaderInit ( self_ : * mut BLFontLoaderCore ) -> BLResult ; } extern "C" { pub fn blFontLoaderReset ( self_ : * mut BLFontLoaderCore ) -> BLResult ; } extern "C" { pub fn blFontLoaderAssignMove ( self_ : * mut BLFontLoaderCore , other : * mut BLFontLoaderCore ) -> BLResult ; } extern "C" { pub fn blFontLoaderAssignWeak ( self_ : * mut BLFontLoaderCore , other : * const BLFontLoaderCore ) -> BLResult ; } extern "C" { pub fn blFontLoaderEquals ( a : * const BLFontLoaderCore , b : * const BLFontLoaderCore ) -> bool ; } extern "C" { pub fn blFontLoaderCreateFromFile ( self_ : * mut BLFontLoaderCore , fileName : * const :: std :: os :: raw :: c_char ) -> BLResult ; } extern "C" { pub fn blFontLoaderCreateFromDataArray ( self_ : * mut BLFontLoaderCore , dataArray : * const BLArrayCore ) -> BLResult ; } extern "C" { pub fn blFontLoaderCreateFromData ( self_ : * mut BLFontLoaderCore , data : * const :: std :: os :: raw :: c_void , size : usize , destroyFunc : BLDestroyImplFunc , destroyData : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blFontLoaderDataByFaceIndex ( self_ : * mut BLFontLoaderCore , faceIndex : u32 ) -> * mut BLFontDataImpl ; } extern "C" { pub fn blFormatInfoSanitize ( self_ : * mut BLFormatInfo ) -> BLResult ; } extern "C" { pub fn blGlyphBufferInit ( self_ : * mut BLGlyphBufferCore ) -> BLResult ; } extern "C" { pub fn blGlyphBufferReset ( self_ : * mut BLGlyphBufferCore ) -> BLResult ; } extern "C" { pub fn blGlyphBufferClear ( self_ : * mut BLGlyphBufferCore ) -> BLResult ; } extern "C" { pub fn blGlyphBufferSetText ( self_ : * mut BLGlyphBufferCore , data : * const :: std :: os :: raw :: c_void , size : usize , encoding : u32 ) -> BLResult ; } extern "C" { pub fn blGlyphBufferSetGlyphIds ( self_ : * mut BLGlyphBufferCore , data : * const :: std :: os :: raw :: c_void , advance : isize , size : usize ) -> BLResult ; } extern "C" { pub fn blGradientInit ( self_ : * mut BLGradientCore ) -> BLResult ; } extern "C" { pub fn blGradientInitAs ( self_ : * mut BLGradientCore , type_ : u32 , values : * const :: std :: os :: raw :: c_void , extendMode : u32 , stops : * const BLGradientStop , n : usize , m : * const BLMatrix2D ) -> BLResult ; } extern "C" { pub fn blGradientReset ( self_ : * mut BLGradientCore ) -> BLResult ; } extern "C" { pub fn blGradientAssignMove ( self_ : * mut BLGradientCore , other : * mut BLGradientCore ) -> BLResult ; } extern "C" { pub fn blGradientAssignWeak ( self_ : * mut BLGradientCore , other : * const BLGradientCore ) -> BLResult ; } extern "C" { pub fn blGradientCreate ( self_ : * mut BLGradientCore , type_ : u32 , values : * const :: std :: os :: raw :: c_void , extendMode : u32 , stops : * const BLGradientStop , n : usize , m : * const BLMatrix2D ) -> BLResult ; } extern "C" { pub fn blGradientShrink ( self_ : * mut BLGradientCore ) -> BLResult ; } extern "C" { pub fn blGradientReserve ( self_ : * mut BLGradientCore , n : usize ) -> BLResult ; } extern "C" { pub fn blGradientGetType ( self_ : * const BLGradientCore ) -> u32 ; } extern "C" { pub fn blGradientSetType ( self_ : * mut BLGradientCore , type_ : u32 ) -> BLResult ; } extern "C" { pub fn blGradientGetValue ( self_ : * const BLGradientCore , index : usize ) -> f64 ; } extern "C" { pub fn blGradientSetValue ( self_ : * mut BLGradientCore , index : usize , value : f64 ) -> BLResult ; } extern "C" { pub fn blGradientSetValues ( self_ : * mut BLGradientCore , index : usize , values : * const f64 , n : usize ) -> BLResult ; } extern "C" { pub fn blGradientGetExtendMode ( self_ : * mut BLGradientCore ) -> u32 ; } extern "C" { pub fn blGradientSetExtendMode ( self_ : * mut BLGradientCore , extendMode : u32 ) -> BLResult ; } extern "C" { pub fn blGradientGetStops ( self_ : * const BLGradientCore ) -> * const BLGradientStop ; } extern "C" { pub fn blGradientGetSize ( self_ : * const BLGradientCore ) -> usize ; } extern "C" { pub fn blGradientGetCapacity ( self_ : * const BLGradientCore ) -> usize ; } extern "C" { pub fn blGradientResetStops ( self_ : * mut BLGradientCore ) -> BLResult ; } extern "C" { pub fn blGradientAssignStops ( self_ : * mut BLGradientCore , stops : * const BLGradientStop , n : usize ) -> BLResult ; } extern "C" { pub fn blGradientAddStopRgba32 ( self_ : * mut BLGradientCore , offset : f64 , argb32 : u32 ) -> BLResult ; } extern "C" { pub fn blGradientAddStopRgba64 ( self_ : * mut BLGradientCore , offset : f64 , argb64 : u64 ) -> BLResult ; } extern "C" { pub fn blGradientRemoveStop ( self_ : * mut BLGradientCore , index : usize ) -> BLResult ; } extern "C" { pub fn blGradientRemoveStopByOffset ( self_ : * mut BLGradientCore , offset : f64 , all : u32 ) -> BLResult ; } extern "C" { pub fn blGradientRemoveStops ( self_ : * mut BLGradientCore , range : * const BLRange ) -> BLResult ; } extern "C" { pub fn blGradientRemoveStopsFromTo ( self_ : * mut BLGradientCore , offsetMin : f64 , offsetMax : f64 ) -> BLResult ; } extern "C" { pub fn blGradientReplaceStopRgba32 ( self_ : * mut BLGradientCore , index : usize , offset : f64 , rgba32 : u32 ) -> BLResult ; } extern "C" { pub fn blGradientReplaceStopRgba64 ( self_ : * mut BLGradientCore , index : usize , offset : f64 , rgba64 : u64 ) -> BLResult ; } extern "C" { pub fn blGradientIndexOfStop ( self_ : * const BLGradientCore , offset : f64 ) -> usize ; } extern "C" { pub fn blGradientApplyMatrixOp ( self_ : * mut BLGradientCore , opType : u32 , opData : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blGradientEquals ( a : * const BLGradientCore , b : * const BLGradientCore ) -> bool ; } extern "C" { pub fn blImageInit ( self_ : * mut BLImageCore ) -> BLResult ; } extern "C" { pub fn blImageInitAs ( self_ : * mut BLImageCore , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , format : u32 ) -> BLResult ; } extern "C" { pub fn blImageInitAsFromData ( self_ : * mut BLImageCore , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , format : u32 , pixelData : * mut :: std :: os :: raw :: c_void , stride : isize , destroyFunc : BLDestroyImplFunc , destroyData : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blImageReset ( self_ : * mut BLImageCore ) -> BLResult ; } extern "C" { pub fn blImageAssignMove ( self_ : * mut BLImageCore , other : * mut BLImageCore ) -> BLResult ; } extern "C" { pub fn blImageAssignWeak ( self_ : * mut BLImageCore , other : * const BLImageCore ) -> BLResult ; } extern "C" { pub fn blImageAssignDeep ( self_ : * mut BLImageCore , other : * const BLImageCore ) -> BLResult ; } extern "C" { pub fn blImageCreate ( self_ : * mut BLImageCore , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , format : u32 ) -> BLResult ; } extern "C" { pub fn blImageCreateFromData ( self_ : * mut BLImageCore , w : :: std :: os :: raw :: c_int , h : :: std :: os :: raw :: c_int , format : u32 , pixelData : * mut :: std :: os :: raw :: c_void , stride : isize , destroyFunc : BLDestroyImplFunc , destroyData : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blImageGetData ( self_ : * const BLImageCore , dataOut : * mut BLImageData ) -> BLResult ; } extern "C" { pub fn blImageMakeMutable ( self_ : * mut BLImageCore , dataOut : * mut BLImageData ) -> BLResult ; } extern "C" { pub fn blImageEquals ( a : * const BLImageCore , b : * const BLImageCore ) -> bool ; } extern "C" { pub fn blImageScale ( dst : * mut BLImageCore , src : * const BLImageCore , size : * const BLSizeI , filter : u32 , options : * const BLImageScaleOptions ) -> BLResult ; } extern "C" { pub fn blImageReadFromFile ( self_ : * mut BLImageCore , fileName : * const :: std :: os :: raw :: c_char , codecs : * const BLArrayCore ) -> BLResult ; } extern "C" { pub fn blImageReadFromData ( self_ : * mut BLImageCore , data : * const :: std :: os :: raw :: c_void , size : usize , codecs : * const BLArrayCore ) -> BLResult ; } extern "C" { pub fn blImageWriteToFile ( self_ : * const BLImageCore , fileName : * const :: std :: os :: raw :: c_char , codec : * const BLImageCodecCore ) -> BLResult ; } extern "C" { pub fn blImageWriteToData ( self_ : * const BLImageCore , dst : * mut BLArrayCore , codec : * const BLImageCodecCore ) -> BLResult ; } extern "C" { pub fn blImageCodecInit ( self_ : * mut BLImageCodecCore ) -> BLResult ; } extern "C" { pub fn blImageCodecReset ( self_ : * mut BLImageCodecCore ) -> BLResult ; } extern "C" { pub fn blImageCodecAssignWeak ( self_ : * mut BLImageCodecCore , other : * const BLImageCodecCore ) -> BLResult ; } extern "C" { pub fn blImageCodecFindByName ( self_ : * mut BLImageCodecCore , codecs : * const BLArrayCore , name : * const :: std :: os :: raw :: c_char ) -> BLResult ; } extern "C" { pub fn blImageCodecFindByData ( self_ : * mut BLImageCodecCore , codecs : * const BLArrayCore , data : * const :: std :: os :: raw :: c_void , size : usize ) -> BLResult ; } extern "C" { pub fn blImageCodecInspectData ( self_ : * const BLImageCodecCore , data : * const :: std :: os :: raw :: c_void , size : usize ) -> u32 ; } extern "C" { pub fn blImageCodecCreateDecoder ( self_ : * const BLImageCodecCore , dst : * mut BLImageDecoderCore ) -> BLResult ; } extern "C" { pub fn blImageCodecCreateEncoder ( self_ : * const BLImageCodecCore , dst : * mut BLImageEncoderCore ) -> BLResult ; } extern "C" { pub fn blImageCodecBuiltInCodecs ( ) -> * mut BLArrayCore ; } extern "C" { pub fn blImageDecoderInit ( self_ : * mut BLImageDecoderCore ) -> BLResult ; } extern "C" { pub fn blImageDecoderReset ( self_ : * mut BLImageDecoderCore ) -> BLResult ; } extern "C" { pub fn blImageDecoderAssignMove ( self_ : * mut BLImageDecoderCore , other : * mut BLImageDecoderCore ) -> BLResult ; } extern "C" { pub fn blImageDecoderAssignWeak ( self_ : * mut BLImageDecoderCore , other : * const BLImageDecoderCore ) -> BLResult ; } extern "C" { pub fn blImageDecoderRestart ( self_ : * mut BLImageDecoderCore ) -> BLResult ; } extern "C" { pub fn blImageDecoderReadInfo ( self_ : * mut BLImageDecoderCore , infoOut : * mut BLImageInfo , data : * const u8 , size : usize ) -> BLResult ; } extern "C" { pub fn blImageDecoderReadFrame ( self_ : * mut BLImageDecoderCore , imageOut : * mut BLImageCore , data : * const u8 , size : usize ) -> BLResult ; } extern "C" { pub fn blImageEncoderInit ( self_ : * mut BLImageEncoderCore ) -> BLResult ; } extern "C" { pub fn blImageEncoderReset ( self_ : * mut BLImageEncoderCore ) -> BLResult ; } extern "C" { pub fn blImageEncoderAssignMove ( self_ : * mut BLImageEncoderCore , other : * mut BLImageEncoderCore ) -> BLResult ; } extern "C" { pub fn blImageEncoderAssignWeak ( self_ : * mut BLImageEncoderCore , other : * const BLImageEncoderCore ) -> BLResult ; } extern "C" { pub fn blImageEncoderRestart ( self_ : * mut BLImageEncoderCore ) -> BLResult ; } extern "C" { pub fn blImageEncoderWriteFrame ( self_ : * mut BLImageEncoderCore , dst : * mut BLArrayCore , image : * const BLImageCore ) -> BLResult ; } extern "C" { pub fn blMatrix2DSetIdentity ( self_ : * mut BLMatrix2D ) -> BLResult ; } extern "C" { pub fn blMatrix2DSetTranslation ( self_ : * mut BLMatrix2D , x : f64 , y : f64 ) -> BLResult ; } extern "C" { pub fn blMatrix2DSetScaling ( self_ : * mut BLMatrix2D , x : f64 , y : f64 ) -> BLResult ; } extern "C" { pub fn blMatrix2DSetSkewing ( self_ : * mut BLMatrix2D , x : f64 , y : f64 ) -> BLResult ; } extern "C" { pub fn blMatrix2DSetRotation ( self_ : * mut BLMatrix2D , angle : f64 , cx : f64 , cy : f64 ) -> BLResult ; } extern "C" { pub fn blMatrix2DApplyOp ( self_ : * mut BLMatrix2D , opType : u32 , opData : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blMatrix2DInvert ( dst : * mut BLMatrix2D , src : * const BLMatrix2D ) -> BLResult ; } extern "C" { pub fn blMatrix2DGetType ( self_ : * const BLMatrix2D ) -> u32 ; } extern "C" { pub fn blMatrix2DMapPointDArray ( self_ : * const BLMatrix2D , dst : * mut BLPoint , src : * const BLPoint , count : usize ) -> BLResult ; } extern "C" { pub fn blPathInit ( self_ : * mut BLPathCore ) -> BLResult ; } extern "C" { pub fn blPathReset ( self_ : * mut BLPathCore ) -> BLResult ; } extern "C" { pub fn blPathGetSize ( self_ : * const BLPathCore ) -> usize ; } extern "C" { pub fn blPathGetCapacity ( self_ : * const BLPathCore ) -> usize ; } extern "C" { pub fn blPathGetCommandData ( self_ : * const BLPathCore ) -> * const u8 ; } extern "C" { pub fn blPathGetVertexdData ( self_ : * const BLPathCore ) -> * const BLPoint ; } extern "C" { pub fn blPathClear ( self_ : * mut BLPathCore ) -> BLResult ; } extern "C" { pub fn blPathShrink ( self_ : * mut BLPathCore ) -> BLResult ; } extern "C" { pub fn blPathReserve ( self_ : * mut BLPathCore , n : usize ) -> BLResult ; } extern "C" { pub fn blPathModifyOp ( self_ : * mut BLPathCore , op : u32 , n : usize , cmdDataOut : * mut * mut u8 , vtxDataOut : * mut * mut BLPoint ) -> BLResult ; } extern "C" { pub fn blPathAssignMove ( self_ : * mut BLPathCore , other : * mut BLPathCore ) -> BLResult ; } extern "C" { pub fn blPathAssignWeak ( self_ : * mut BLPathCore , other : * const BLPathCore ) -> BLResult ; } extern "C" { pub fn blPathAssignDeep ( self_ : * mut BLPathCore , other : * const BLPathCore ) -> BLResult ; } extern "C" { pub fn blPathSetVertexAt ( self_ : * mut BLPathCore , index : usize , cmd : u32 , x : f64 , y : f64 ) -> BLResult ; } extern "C" { pub fn blPathMoveTo ( self_ : * mut BLPathCore , x0 : f64 , y0 : f64 ) -> BLResult ; } extern "C" { pub fn blPathLineTo ( self_ : * mut BLPathCore , x1 : f64 , y1 : f64 ) -> BLResult ; } extern "C" { pub fn blPathPolyTo ( self_ : * mut BLPathCore , poly : * const BLPoint , count : usize ) -> BLResult ; } extern "C" { pub fn blPathQuadTo ( self_ : * mut BLPathCore , x1 : f64 , y1 : f64 , x2 : f64 , y2 : f64 ) -> BLResult ; } extern "C" { pub fn blPathCubicTo ( self_ : * mut BLPathCore , x1 : f64 , y1 : f64 , x2 : f64 , y2 : f64 , x3 : f64 , y3 : f64 ) -> BLResult ; } extern "C" { pub fn blPathSmoothQuadTo ( self_ : * mut BLPathCore , x2 : f64 , y2 : f64 ) -> BLResult ; } extern "C" { pub fn blPathSmoothCubicTo ( self_ : * mut BLPathCore , x2 : f64 , y2 : f64 , x3 : f64 , y3 : f64 ) -> BLResult ; } extern "C" { pub fn blPathArcTo ( self_ : * mut BLPathCore , x : f64 , y : f64 , rx : f64 , ry : f64 , start : f64 , sweep : f64 , forceMoveTo : bool ) -> BLResult ; } extern "C" { pub fn blPathArcQuadrantTo ( self_ : * mut BLPathCore , x1 : f64 , y1 : f64 , x2 : f64 , y2 : f64 ) -> BLResult ; } extern "C" { pub fn blPathEllipticArcTo ( self_ : * mut BLPathCore , rx : f64 , ry : f64 , xAxisRotation : f64 , largeArcFlag : bool , sweepFlag : bool , x1 : f64 , y1 : f64 ) -> BLResult ; } extern "C" { pub fn blPathClose ( self_ : * mut BLPathCore ) -> BLResult ; } extern "C" { pub fn blPathAddGeometry ( self_ : * mut BLPathCore , geometryType : u32 , geometryData : * const :: std :: os :: raw :: c_void , m : * const BLMatrix2D , dir : u32 ) -> BLResult ; } extern "C" { pub fn blPathAddBoxI ( self_ : * mut BLPathCore , box_ : * const BLBoxI , dir : u32 ) -> BLResult ; } extern "C" { pub fn blPathAddBoxD ( self_ : * mut BLPathCore , box_ : * const BLBox , dir : u32 ) -> BLResult ; } extern "C" { pub fn blPathAddRectI ( self_ : * mut BLPathCore , rect : * const BLRectI , dir : u32 ) -> BLResult ; } extern "C" { pub fn blPathAddRectD ( self_ : * mut BLPathCore , rect : * const BLRect , dir : u32 ) -> BLResult ; } extern "C" { pub fn blPathAddPath ( self_ : * mut BLPathCore , other : * const BLPathCore , range : * const BLRange ) -> BLResult ; } extern "C" { pub fn blPathAddTranslatedPath ( self_ : * mut BLPathCore , other : * const BLPathCore , range : * const BLRange , p : * const BLPoint ) -> BLResult ; } extern "C" { pub fn blPathAddTransformedPath ( self_ : * mut BLPathCore , other : * const BLPathCore , range : * const BLRange , m : * const BLMatrix2D ) -> BLResult ; } extern "C" { pub fn blPathAddReversedPath ( self_ : * mut BLPathCore , other : * const BLPathCore , range : * const BLRange , reverseMode : u32 ) -> BLResult ; } extern "C" { pub fn blPathAddStrokedPath ( self_ : * mut BLPathCore , other : * const BLPathCore , range : * const BLRange , options : * const BLStrokeOptionsCore , approx : * const BLApproximationOptions ) -> BLResult ; } extern "C" { pub fn blPathTranslate ( self_ : * mut BLPathCore , range : * const BLRange , p : * const BLPoint ) -> BLResult ; } extern "C" { pub fn blPathTransform ( self_ : * mut BLPathCore , range : * const BLRange , m : * const BLMatrix2D ) -> BLResult ; } extern "C" { pub fn blPathFitTo ( self_ : * mut BLPathCore , range : * const BLRange , rect : * const BLRect , fitFlags : u32 ) -> BLResult ; } extern "C" { pub fn blPathEquals ( a : * const BLPathCore , b : * const BLPathCore ) -> bool ; } extern "C" { pub fn blPathGetInfoFlags ( self_ : * const BLPathCore , flagsOut : * mut u32 ) -> BLResult ; } extern "C" { pub fn blPathGetControlBox ( self_ : * const BLPathCore , boxOut : * mut BLBox ) -> BLResult ; } extern "C" { pub fn blPathGetBoundingBox ( self_ : * const BLPathCore , boxOut : * mut BLBox ) -> BLResult ; } extern "C" { pub fn blPathGetFigureRange ( self_ : * const BLPathCore , index : usize , rangeOut : * mut BLRange ) -> BLResult ; } extern "C" { pub fn blPathGetLastVertex ( self_ : * const BLPathCore , vtxOut : * mut BLPoint ) -> BLResult ; } extern "C" { pub fn blPathGetClosestVertex ( self_ : * const BLPathCore , p : * const BLPoint , maxDistance : f64 , indexOut : * mut usize , distanceOut : * mut f64 ) -> BLResult ; } extern "C" { pub fn blPathHitTest ( self_ : * const BLPathCore , p : * const BLPoint , fillRule : u32 ) -> u32 ; } extern "C" { pub fn blPatternInit ( self_ : * mut BLPatternCore ) -> BLResult ; } extern "C" { pub fn blPatternInitAs ( self_ : * mut BLPatternCore , image : * const BLImageCore , area : * const BLRectI , extendMode : u32 , m : * const BLMatrix2D ) -> BLResult ; } extern "C" { pub fn blPatternReset ( self_ : * mut BLPatternCore ) -> BLResult ; } extern "C" { pub fn blPatternAssignMove ( self_ : * mut BLPatternCore , other : * mut BLPatternCore ) -> BLResult ; } extern "C" { pub fn blPatternAssignWeak ( self_ : * mut BLPatternCore , other : * const BLPatternCore ) -> BLResult ; } extern "C" { pub fn blPatternAssignDeep ( self_ : * mut BLPatternCore , other : * const BLPatternCore ) -> BLResult ; } extern "C" { pub fn blPatternCreate ( self_ : * mut BLPatternCore , image : * const BLImageCore , area : * const BLRectI , extendMode : u32 , m : * const BLMatrix2D ) -> BLResult ; } extern "C" { pub fn blPatternSetImage ( self_ : * mut BLPatternCore , image : * const BLImageCore , area : * const BLRectI ) -> BLResult ; } extern "C" { pub fn blPatternSetArea ( self_ : * mut BLPatternCore , area : * const BLRectI ) -> BLResult ; } extern "C" { pub fn blPatternSetExtendMode ( self_ : * mut BLPatternCore , extendMode : u32 ) -> BLResult ; } extern "C" { pub fn blPatternApplyMatrixOp ( self_ : * mut BLPatternCore , opType : u32 , opData : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blPatternEquals ( a : * const BLPatternCore , b : * const BLPatternCore ) -> bool ; } extern "C" { pub fn blPixelConverterInit ( self_ : * mut BLPixelConverterCore ) -> BLResult ; } extern "C" { pub fn blPixelConverterInitWeak ( self_ : * mut BLPixelConverterCore , other : * const BLPixelConverterCore ) -> BLResult ; } extern "C" { pub fn blPixelConverterReset ( self_ : * mut BLPixelConverterCore ) -> BLResult ; } extern "C" { pub fn blPixelConverterAssign ( self_ : * mut BLPixelConverterCore , other : * const BLPixelConverterCore ) -> BLResult ; } extern "C" { pub fn blPixelConverterCreate ( self_ : * mut BLPixelConverterCore , dstInfo : * const BLFormatInfo , srcInfo : * const BLFormatInfo ) -> BLResult ; } extern "C" { pub fn blPixelConverterConvert ( self_ : * const BLPixelConverterCore , dstData : * mut :: std :: os :: raw :: c_void , dstStride : isize , srcData : * const :: std :: os :: raw :: c_void , srcStride : isize , w : u32 , h : u32 , options : * const BLPixelConverterOptions ) -> BLResult ; } extern "C" { pub fn blRandomReset ( self_ : * mut BLRandom , seed : u64 ) ; } extern "C" { pub fn blRandomNextUInt32 ( self_ : * mut BLRandom ) -> u32 ; } extern "C" { pub fn blRandomNextUInt64 ( self_ : * mut BLRandom ) -> u64 ; } extern "C" { pub fn blRandomNextDouble ( self_ : * mut BLRandom ) -> f64 ; } extern "C" { pub fn blRegionInit ( self_ : * mut BLRegionCore ) -> BLResult ; } extern "C" { pub fn blRegionReset ( self_ : * mut BLRegionCore ) -> BLResult ; } extern "C" { pub fn blRegionClear ( self_ : * mut BLRegionCore ) -> BLResult ; } extern "C" { pub fn blRegionShrink ( self_ : * mut BLRegionCore ) -> BLResult ; } extern "C" { pub fn blRegionReserve ( self_ : * mut BLRegionCore , n : usize ) -> BLResult ; } extern "C" { pub fn blRegionAssignMove ( self_ : * mut BLRegionCore , other : * mut BLRegionCore ) -> BLResult ; } extern "C" { pub fn blRegionAssignWeak ( self_ : * mut BLRegionCore , other : * const BLRegionCore ) -> BLResult ; } extern "C" { pub fn blRegionAssignDeep ( self_ : * mut BLRegionCore , other : * const BLRegionCore ) -> BLResult ; } extern "C" { pub fn blRegionAssignBoxI ( self_ : * mut BLRegionCore , src : * const BLBoxI ) -> BLResult ; } extern "C" { pub fn blRegionAssignBoxIArray ( self_ : * mut BLRegionCore , data : * const BLBoxI , n : usize ) -> BLResult ; } extern "C" { pub fn blRegionAssignRectI ( self_ : * mut BLRegionCore , rect : * const BLRectI ) -> BLResult ; } extern "C" { pub fn blRegionAssignRectIArray ( self_ : * mut BLRegionCore , data : * const BLRectI , n : usize ) -> BLResult ; } extern "C" { pub fn blRegionCombine ( self_ : * mut BLRegionCore , a : * const BLRegionCore , b : * const BLRegionCore , op : u32 ) -> BLResult ; } extern "C" { pub fn blRegionCombineRB ( self_ : * mut BLRegionCore , a : * const BLRegionCore , b : * const BLBoxI , op : u32 ) -> BLResult ; } extern "C" { pub fn blRegionCombineBR ( self_ : * mut BLRegionCore , a : * const BLBoxI , b : * const BLRegionCore , op : u32 ) -> BLResult ; } extern "C" { pub fn blRegionCombineBB ( self_ : * mut BLRegionCore , a : * const BLBoxI , b : * const BLBoxI , op : u32 ) -> BLResult ; } extern "C" { pub fn blRegionTranslate ( self_ : * mut BLRegionCore , r : * const BLRegionCore , pt : * const BLPointI ) -> BLResult ; } extern "C" { pub fn blRegionTranslateAndClip ( self_ : * mut BLRegionCore , r : * const BLRegionCore , pt : * const BLPointI , clipBox : * const BLBoxI ) -> BLResult ; } extern "C" { pub fn blRegionIntersectAndClip ( self_ : * mut BLRegionCore , a : * const BLRegionCore , b : * const BLRegionCore , clipBox : * const BLBoxI ) -> BLResult ; } extern "C" { pub fn blRegionEquals ( a : * const BLRegionCore , b : * const BLRegionCore ) -> bool ; } extern "C" { pub fn blRegionGetType ( self_ : * const BLRegionCore ) -> u32 ; } extern "C" { pub fn blRegionHitTest ( self_ : * const BLRegionCore , pt : * const BLPointI ) -> u32 ; } extern "C" { pub fn blRegionHitTestBoxI ( self_ : * const BLRegionCore , box_ : * const BLBoxI ) -> u32 ; } extern "C" { pub fn blRuntimeInit ( ) -> BLResult ; } extern "C" { pub fn blRuntimeShutdown ( ) -> BLResult ; } extern "C" { pub fn blRuntimeCleanup ( cleanupFlags : u32 ) -> BLResult ; } extern "C" { pub fn blRuntimeQueryInfo ( infoType : u32 , infoOut : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blRuntimeMessageOut ( msg : * const :: std :: os :: raw :: c_char ) -> BLResult ; } extern "C" { pub fn blRuntimeMessageFmt ( fmt : * const :: std :: os :: raw :: c_char , ... ) -> BLResult ; } extern "C" { pub fn blRuntimeMessageVFmt ( fmt : * const :: std :: os :: raw :: c_char , ap : * mut __va_list_tag ) -> BLResult ; } extern "C" { pub fn blRuntimeGetTickCount ( ) -> u32 ; } extern "C" { pub fn blRuntimeAssertionFailure ( file : * const :: std :: os :: raw :: c_char , line : :: std :: os :: raw :: c_int , msg : * const :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn blResultFromPosixError ( e : :: std :: os :: raw :: c_int ) -> BLResult ; } extern "C" { pub fn blStringInit ( self_ : * mut BLStringCore ) -> BLResult ; } extern "C" { pub fn blStringReset ( self_ : * mut BLStringCore ) -> BLResult ; } extern "C" { pub fn blStringGetSize ( self_ : * const BLStringCore ) -> usize ; } extern "C" { pub fn blStringGetCapacity ( self_ : * const BLStringCore ) -> usize ; } extern "C" { pub fn blStringGetData ( self_ : * const BLStringCore ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn blStringClear ( self_ : * mut BLStringCore ) -> BLResult ; } extern "C" { pub fn blStringShrink ( self_ : * mut BLStringCore ) -> BLResult ; } extern "C" { pub fn blStringReserve ( self_ : * mut BLStringCore , n : usize ) -> BLResult ; } extern "C" { pub fn blStringResize ( self_ : * mut BLStringCore , n : usize , fill : :: std :: os :: raw :: c_char ) -> BLResult ; } extern "C" { pub fn blStringMakeMutable ( self_ : * mut BLStringCore , dataOut : * mut * mut :: std :: os :: raw :: c_char ) -> BLResult ; } extern "C" { pub fn blStringModifyOp ( self_ : * mut BLStringCore , op : u32 , n : usize , dataOut : * mut * mut :: std :: os :: raw :: c_char ) -> BLResult ; } extern "C" { pub fn blStringInsertOp ( self_ : * mut BLStringCore , index : usize , n : usize , dataOut : * mut * mut :: std :: os :: raw :: c_char ) -> BLResult ; } extern "C" { pub fn blStringAssignMove ( self_ : * mut BLStringCore , other : * mut BLStringCore ) -> BLResult ; } extern "C" { pub fn blStringAssignWeak ( self_ : * mut BLStringCore , other : * const BLStringCore ) -> BLResult ; } extern "C" { pub fn blStringAssignDeep ( self_ : * mut BLStringCore , other : * const BLStringCore ) -> BLResult ; } extern "C" { pub fn blStringAssignData ( self_ : * mut BLStringCore , str : * const :: std :: os :: raw :: c_char , n : usize ) -> BLResult ; } extern "C" { pub fn blStringApplyOpChar ( self_ : * mut BLStringCore , op : u32 , c : :: std :: os :: raw :: c_char , n : usize ) -> BLResult ; } extern "C" { pub fn blStringApplyOpData ( self_ : * mut BLStringCore , op : u32 , str : * const :: std :: os :: raw :: c_char , n : usize ) -> BLResult ; } extern "C" { pub fn blStringApplyOpString ( self_ : * mut BLStringCore , op : u32 , other : * const BLStringCore ) -> BLResult ; } extern "C" { pub fn blStringApplyOpFormat ( self_ : * mut BLStringCore , op : u32 , fmt : * const :: std :: os :: raw :: c_char , ... ) -> BLResult ; } extern "C" { pub fn blStringApplyOpFormatV ( self_ : * mut BLStringCore , op : u32 , fmt : * const :: std :: os :: raw :: c_char , ap : * mut __va_list_tag ) -> BLResult ; } extern "C" { pub fn blStringInsertChar ( self_ : * mut BLStringCore , index : usize , c : :: std :: os :: raw :: c_char , n : usize ) -> BLResult ; } extern "C" { pub fn blStringInsertData ( self_ : * mut BLStringCore , index : usize , str : * const :: std :: os :: raw :: c_char , n : usize ) -> BLResult ; } extern "C" { pub fn blStringInsertString ( self_ : * mut BLStringCore , index : usize , other : * const BLStringCore ) -> BLResult ; } extern "C" { pub fn blStringRemoveRange ( self_ : * mut BLStringCore , range : * const BLRange ) -> BLResult ; } extern "C" { pub fn blStringEquals ( self_ : * const BLStringCore , other : * const BLStringCore ) -> bool ; } extern "C" { pub fn blStringEqualsData ( self_ : * const BLStringCore , str : * const :: std :: os :: raw :: c_char , n : usize ) -> bool ; } extern "C" { pub fn blStringCompare ( self_ : * const BLStringCore , other : * const BLStringCore ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn blStringCompareData ( self_ : * const BLStringCore , str : * const :: std :: os :: raw :: c_char , n : usize ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn blStrokeOptionsInit ( self_ : * mut BLStrokeOptionsCore ) -> BLResult ; } extern "C" { pub fn blStrokeOptionsInitMove ( self_ : * mut BLStrokeOptionsCore , other : * mut BLStrokeOptionsCore ) -> BLResult ; } extern "C" { pub fn blStrokeOptionsInitWeak ( self_ : * mut BLStrokeOptionsCore , other : * const BLStrokeOptionsCore ) -> BLResult ; } extern "C" { pub fn blStrokeOptionsReset ( self_ : * mut BLStrokeOptionsCore ) -> BLResult ; } extern "C" { pub fn blStrokeOptionsAssignMove ( self_ : * mut BLStrokeOptionsCore , other : * mut BLStrokeOptionsCore ) -> BLResult ; } extern "C" { pub fn blStrokeOptionsAssignWeak ( self_ : * mut BLStrokeOptionsCore , other : * const BLStrokeOptionsCore ) -> BLResult ; } extern "C" { pub fn blVariantInit ( self_ : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blVariantInitMove ( self_ : * mut :: std :: os :: raw :: c_void , other : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blVariantInitWeak ( self_ : * mut :: std :: os :: raw :: c_void , other : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blVariantReset ( self_ : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blVariantGetImplType ( self_ : * const :: std :: os :: raw :: c_void ) -> u32 ; } extern "C" { pub fn blVariantAssignMove ( self_ : * mut :: std :: os :: raw :: c_void , other : * mut :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blVariantAssignWeak ( self_ : * mut :: std :: os :: raw :: c_void , other : * const :: std :: os :: raw :: c_void ) -> BLResult ; } extern "C" { pub fn blVariantEquals ( a : * const :: std :: os :: raw :: c_void , b : * const :: std :: os :: raw :: c_void ) -> bool ; } pub mod BLImplType { pub type Type = u32 ; pub const BL_IMPL_TYPE_NULL : Type = 0 ; pub const BL_IMPL_TYPE_BIT_ARRAY : Type = 1 ; pub const BL_IMPL_TYPE_STRING : Type = 2 ; pub const BL_IMPL_TYPE_ARRAY_VAR : Type = 3 ; pub const BL_IMPL_TYPE_ARRAY_I8 : Type = 4 ; pub const BL_IMPL_TYPE_ARRAY_U8 : Type = 5 ; pub const BL_IMPL_TYPE_ARRAY_I16 : Type = 6 ; pub const BL_IMPL_TYPE_ARRAY_U16 : Type = 7 ; pub const BL_IMPL_TYPE_ARRAY_I32 : Type = 8 ; pub const BL_IMPL_TYPE_ARRAY_U32 : Type = 9 ; pub const BL_IMPL_TYPE_ARRAY_I64 : Type = 10 ; pub const BL_IMPL_TYPE_ARRAY_U64 : Type = 11 ; pub const BL_IMPL_TYPE_ARRAY_F32 : Type = 12 ; pub const BL_IMPL_TYPE_ARRAY_F64 : Type = 13 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_1 : Type = 14 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_2 : Type = 15 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_3 : Type = 16 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_4 : Type = 17 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_6 : Type = 18 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_8 : Type = 19 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_10 : Type = 20 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_12 : Type = 21 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_16 : Type = 22 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_20 : Type = 23 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_24 : Type = 24 ; pub const BL_IMPL_TYPE_ARRAY_STRUCT_32 : Type = 25 ; pub const BL_IMPL_TYPE_PATH2D : Type = 32 ; pub const BL_IMPL_TYPE_REGION : Type = 33 ; pub const BL_IMPL_TYPE_IMAGE : Type = 34 ; pub const BL_IMPL_TYPE_IMAGE_CODEC : Type = 35 ; pub const BL_IMPL_TYPE_IMAGE_DECODER : Type = 36 ; pub const BL_IMPL_TYPE_IMAGE_ENCODER : Type = 37 ; pub const BL_IMPL_TYPE_GRADIENT : Type = 38 ; pub const BL_IMPL_TYPE_PATTERN : Type = 39 ; pub const BL_IMPL_TYPE_CONTEXT : Type = 40 ; pub const BL_IMPL_TYPE_FONT : Type = 50 ; pub const BL_IMPL_TYPE_FONT_FACE : Type = 51 ; pub const BL_IMPL_TYPE_FONT_DATA : Type = 52 ; pub const BL_IMPL_TYPE_FONT_LOADER : Type = 53 ; pub const BL_IMPL_TYPE_FONT_FEATURE_OPTIONS : Type = 54 ; pub const BL_IMPL_TYPE_FONT_VARIATION_OPTIONS : Type = 55 ; pub const BL_IMPL_TYPE_COUNT : Type = 64 ; } pub mod BLImplTraits { pub type Type = u32 ; pub const BL_IMPL_TRAIT_NULL : Type = 1 ; pub const BL_IMPL_TRAIT_VIRT : Type = 2 ; pub const BL_IMPL_TRAIT_EXTERNAL : Type = 16 ; pub const BL_IMPL_TRAIT_FOREIGN : Type = 128 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLVariantImpl { pub __bindgen_anon_1 : BLVariantImpl__bindgen_ty_1 , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub reserved : [ u8 ; 4usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLVariantImpl__bindgen_ty_1 { pub virt : * const :: std :: os :: raw :: c_void , pub header : [ usize ; 3usize ] , _bindgen_union_align : [ u64 ; 3usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLVariantCore { pub impl_ : * mut BLVariantImpl , } extern "C" { # [ link_name = "\u{1}blNone" ] pub static mut blNone : [ BLVariantCore ; 64usize ] ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLArrayImpl { pub __bindgen_anon_1 : BLArrayImpl__bindgen_ty_1 , pub capacity : usize , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub itemSize : u8 , pub dispatchType : u8 , pub reserved : [ u8 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLArrayImpl__bindgen_ty_1 { pub __bindgen_anon_1 : BLArrayImpl__bindgen_ty_1__bindgen_ty_1 , pub view : BLDataView , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLArrayImpl__bindgen_ty_1__bindgen_ty_1 { pub data : * mut :: std :: os :: raw :: c_void , pub size : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLArrayCore { pub impl_ : * mut BLArrayImpl , } pub mod BLGeometryDirection { pub type Type = u32 ; pub const BL_GEOMETRY_DIRECTION_NONE : Type = 0 ; pub const BL_GEOMETRY_DIRECTION_CW : Type = 1 ; pub const BL_GEOMETRY_DIRECTION_CCW : Type = 2 ; } pub mod BLGeometryType { pub type Type = u32 ; pub const BL_GEOMETRY_TYPE_NONE : Type = 0 ; pub const BL_GEOMETRY_TYPE_BOXI : Type = 1 ; pub const BL_GEOMETRY_TYPE_BOXD : Type = 2 ; pub const BL_GEOMETRY_TYPE_RECTI : Type = 3 ; pub const BL_GEOMETRY_TYPE_RECTD : Type = 4 ; pub const BL_GEOMETRY_TYPE_CIRCLE : Type = 5 ; pub const BL_GEOMETRY_TYPE_ELLIPSE : Type = 6 ; pub const BL_GEOMETRY_TYPE_ROUND_RECT : Type = 7 ; pub const BL_GEOMETRY_TYPE_ARC : Type = 8 ; pub const BL_GEOMETRY_TYPE_CHORD : Type = 9 ; pub const BL_GEOMETRY_TYPE_PIE : Type = 10 ; pub const BL_GEOMETRY_TYPE_LINE : Type = 11 ; pub const BL_GEOMETRY_TYPE_TRIANGLE : Type = 12 ; pub const BL_GEOMETRY_TYPE_POLYLINEI : Type = 13 ; pub const BL_GEOMETRY_TYPE_POLYLINED : Type = 14 ; pub const BL_GEOMETRY_TYPE_POLYGONI : Type = 15 ; pub const BL_GEOMETRY_TYPE_POLYGOND : Type = 16 ; pub const BL_GEOMETRY_TYPE_ARRAY_VIEW_BOXI : Type = 17 ; pub const BL_GEOMETRY_TYPE_ARRAY_VIEW_BOXD : Type = 18 ; pub const BL_GEOMETRY_TYPE_ARRAY_VIEW_RECTI : Type = 19 ; pub const BL_GEOMETRY_TYPE_ARRAY_VIEW_RECTD : Type = 20 ; pub const BL_GEOMETRY_TYPE_PATH : Type = 21 ; pub const BL_GEOMETRY_TYPE_REGION : Type = 22 ; pub const BL_GEOMETRY_TYPE_COUNT : Type = 23 ; } pub mod BLFillRule { pub type Type = u32 ; pub const BL_FILL_RULE_NON_ZERO : Type = 0 ; pub const BL_FILL_RULE_EVEN_ODD : Type = 1 ; pub const BL_FILL_RULE_COUNT : Type = 2 ; } pub mod BLHitTest { pub type Type = u32 ; pub const BL_HIT_TEST_IN : Type = 0 ; pub const BL_HIT_TEST_PART : Type = 1 ; pub const BL_HIT_TEST_OUT : Type = 2 ; pub const BL_HIT_TEST_INVALID : Type = 4294967295 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLPointI { pub x : :: std :: os :: raw :: c_int , pub y : :: std :: os :: raw :: c_int , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLSizeI { pub w : :: std :: os :: raw :: c_int , pub h : :: std :: os :: raw :: c_int , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLBoxI { 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 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRectI { 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 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLPoint { pub x : f64 , pub y : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLSize { pub w : f64 , pub h : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLBox { pub x0 : f64 , pub y0 : f64 , pub x1 : f64 , pub y1 : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRect { pub x : f64 , pub y : f64 , pub w : f64 , pub h : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLLine { pub __bindgen_anon_1 : BLLine__bindgen_ty_1 , pub __bindgen_anon_2 : BLLine__bindgen_ty_2 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLLine__bindgen_ty_1 { pub __bindgen_anon_1 : BLLine__bindgen_ty_1__bindgen_ty_1 , pub p0 : BLPoint , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLLine__bindgen_ty_1__bindgen_ty_1 { pub x0 : f64 , pub y0 : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLLine__bindgen_ty_2 { pub __bindgen_anon_1 : BLLine__bindgen_ty_2__bindgen_ty_1 , pub p1 : BLPoint , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLLine__bindgen_ty_2__bindgen_ty_1 { pub x1 : f64 , pub y1 : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLTriangle { pub __bindgen_anon_1 : BLTriangle__bindgen_ty_1 , pub __bindgen_anon_2 : BLTriangle__bindgen_ty_2 , pub __bindgen_anon_3 : BLTriangle__bindgen_ty_3 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLTriangle__bindgen_ty_1 { pub __bindgen_anon_1 : BLTriangle__bindgen_ty_1__bindgen_ty_1 , pub p0 : BLPoint , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLTriangle__bindgen_ty_1__bindgen_ty_1 { pub x0 : f64 , pub y0 : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLTriangle__bindgen_ty_2 { pub __bindgen_anon_1 : BLTriangle__bindgen_ty_2__bindgen_ty_1 , pub p1 : BLPoint , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLTriangle__bindgen_ty_2__bindgen_ty_1 { pub x1 : f64 , pub y1 : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLTriangle__bindgen_ty_3 { pub __bindgen_anon_1 : BLTriangle__bindgen_ty_3__bindgen_ty_1 , pub p2 : BLPoint , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLTriangle__bindgen_ty_3__bindgen_ty_1 { pub x2 : f64 , pub y2 : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRoundRect { pub __bindgen_anon_1 : BLRoundRect__bindgen_ty_1 , pub __bindgen_anon_2 : BLRoundRect__bindgen_ty_2 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLRoundRect__bindgen_ty_1 { pub __bindgen_anon_1 : BLRoundRect__bindgen_ty_1__bindgen_ty_1 , pub rect : BLRect , _bindgen_union_align : [ u64 ; 4usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRoundRect__bindgen_ty_1__bindgen_ty_1 { pub x : f64 , pub y : f64 , pub w : f64 , pub h : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLRoundRect__bindgen_ty_2 { pub __bindgen_anon_1 : BLRoundRect__bindgen_ty_2__bindgen_ty_1 , pub radius : BLPoint , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRoundRect__bindgen_ty_2__bindgen_ty_1 { pub rx : f64 , pub ry : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLCircle { pub __bindgen_anon_1 : BLCircle__bindgen_ty_1 , pub r : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLCircle__bindgen_ty_1 { pub __bindgen_anon_1 : BLCircle__bindgen_ty_1__bindgen_ty_1 , pub center : BLPoint , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLCircle__bindgen_ty_1__bindgen_ty_1 { pub cx : f64 , pub cy : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLEllipse { pub __bindgen_anon_1 : BLEllipse__bindgen_ty_1 , pub __bindgen_anon_2 : BLEllipse__bindgen_ty_2 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLEllipse__bindgen_ty_1 { pub __bindgen_anon_1 : BLEllipse__bindgen_ty_1__bindgen_ty_1 , pub center : BLPoint , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLEllipse__bindgen_ty_1__bindgen_ty_1 { pub cx : f64 , pub cy : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLEllipse__bindgen_ty_2 { pub __bindgen_anon_1 : BLEllipse__bindgen_ty_2__bindgen_ty_1 , pub radius : BLPoint , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLEllipse__bindgen_ty_2__bindgen_ty_1 { pub rx : f64 , pub ry : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLArc { pub __bindgen_anon_1 : BLArc__bindgen_ty_1 , pub __bindgen_anon_2 : BLArc__bindgen_ty_2 , pub start : f64 , pub sweep : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLArc__bindgen_ty_1 { pub __bindgen_anon_1 : BLArc__bindgen_ty_1__bindgen_ty_1 , pub center : BLPoint , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLArc__bindgen_ty_1__bindgen_ty_1 { pub cx : f64 , pub cy : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLArc__bindgen_ty_2 { pub __bindgen_anon_1 : BLArc__bindgen_ty_2__bindgen_ty_1 , pub radius : BLPoint , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLArc__bindgen_ty_2__bindgen_ty_1 { pub rx : f64 , pub ry : f64 , } pub mod BLGlyphItemFlags { pub type Type = u32 ; pub const BL_GLYPH_ITEM_FLAG_MARK : Type = 2147483648 ; } pub mod BLGlyphPlacementType { pub type Type = u32 ; pub const BL_GLYPH_PLACEMENT_TYPE_NONE : Type = 0 ; pub const BL_GLYPH_PLACEMENT_TYPE_ADVANCE_OFFSET : Type = 1 ; pub const BL_GLYPH_PLACEMENT_TYPE_DESIGN_UNITS : Type = 2 ; pub const BL_GLYPH_PLACEMENT_TYPE_USER_UNITS : Type = 3 ; pub const BL_GLYPH_PLACEMENT_TYPE_ABSOLUTE_UNITS : Type = 4 ; } pub mod BLGlyphRunFlags { pub type Type = u32 ; pub const BL_GLYPH_RUN_FLAG_UCS4_CONTENT : Type = 268435456 ; pub const BL_GLYPH_RUN_FLAG_INVALID_TEXT : Type = 536870912 ; pub const BL_GLYPH_RUN_FLAG_UNDEFINED_GLYPHS : Type = 1073741824 ; pub const BL_GLYPH_RUN_FLAG_INVALID_FONT_DATA : Type = 2147483648 ; } pub mod BLFontFaceType { pub type Type = u32 ; pub const BL_FONT_FACE_TYPE_NONE : Type = 0 ; pub const BL_FONT_FACE_TYPE_OPENTYPE : Type = 1 ; pub const BL_FONT_FACE_TYPE_COUNT : Type = 2 ; } pub mod BLFontFaceFlags { pub type Type = u32 ; pub const BL_FONT_FACE_FLAG_TYPOGRAPHIC_NAMES : Type = 1 ; pub const BL_FONT_FACE_FLAG_TYPOGRAPHIC_METRICS : Type = 2 ; pub const BL_FONT_FACE_FLAG_CHAR_TO_GLYPH_MAPPING : Type = 4 ; pub const BL_FONT_FACE_FLAG_HORIZONTAL_METIRCS : Type = 16 ; pub const BL_FONT_FACE_FLAG_VERTICAL_METRICS : Type = 32 ; pub const BL_FONT_FACE_FLAG_HORIZONTAL_KERNING : Type = 64 ; pub const BL_FONT_FACE_FLAG_VERTICAL_KERNING : Type = 128 ; pub const BL_FONT_FACE_FLAG_OPENTYPE_FEATURES : Type = 256 ; pub const BL_FONT_FACE_FLAG_OPENTYPE_VARIATIONS : Type = 536870912 ; pub const BL_FONT_FACE_FLAG_PANOSE_DATA : Type = 512 ; pub const BL_FONT_FACE_FLAG_UNICODE_COVERAGE : Type = 1024 ; pub const BL_FONT_FACE_FLAG_VARIATION_SEQUENCES : Type = 268435456 ; pub const BL_FONT_FACE_FLAG_SYMBOL_FONT : Type = 1073741824 ; pub const BL_FONT_FACE_FLAG_LAST_RESORT_FONT : Type = 2147483648 ; } pub mod BLFontFaceDiagFlags { pub type Type = u32 ; pub const BL_FONT_FACE_DIAG_WRONG_NAME_DATA : Type = 1 ; pub const BL_FONT_FACE_DIAG_FIXED_NAME_DATA : Type = 2 ; pub const BL_FONT_FACE_DIAG_WRONG_KERN_DATA : Type = 4 ; pub const BL_FONT_FACE_DIAG_FIXED_KERN_DATA : Type = 8 ; pub const BL_FONT_FACE_DIAG_WRONG_CMAP_DATA : Type = 16 ; pub const BL_FONT_FACE_DIAG_WRONG_CMAP_FORMAT : Type = 32 ; pub const BL_FONT_FACE_DIAG_WRONG_GDEF_DATA : Type = 256 ; pub const BL_FONT_FACE_DIAG_WRONG_GPOS_DATA : Type = 1024 ; pub const BL_FONT_FACE_DIAG_WRONG_GSUB_DATA : Type = 4096 ; } pub mod BLFontLoaderFlags { pub type Type = u32 ; pub const BL_FONT_LOADER_FLAG_COLLECTION : Type = 1 ; } pub mod BLFontOutlineType { pub type Type = u32 ; pub const BL_FONT_OUTLINE_TYPE_NONE : Type = 0 ; pub const BL_FONT_OUTLINE_TYPE_TRUETYPE : Type = 1 ; pub const BL_FONT_OUTLINE_TYPE_CFF : Type = 2 ; pub const BL_FONT_OUTLINE_TYPE_CFF2 : Type = 3 ; } pub mod BLFontStretch { pub type Type = u32 ; pub const BL_FONT_STRETCH_ULTRA_CONDENSED : Type = 1 ; pub const BL_FONT_STRETCH_EXTRA_CONDENSED : Type = 2 ; pub const BL_FONT_STRETCH_CONDENSED : Type = 3 ; pub const BL_FONT_STRETCH_SEMI_CONDENSED : Type = 4 ; pub const BL_FONT_STRETCH_NORMAL : Type = 5 ; pub const BL_FONT_STRETCH_SEMI_EXPANDED : Type = 6 ; pub const BL_FONT_STRETCH_EXPANDED : Type = 7 ; pub const BL_FONT_STRETCH_EXTRA_EXPANDED : Type = 8 ; pub const BL_FONT_STRETCH_ULTRA_EXPANDED : Type = 9 ; } pub mod BLFontStyle { pub type Type = u32 ; pub const BL_FONT_STYLE_NORMAL : Type = 0 ; pub const BL_FONT_STYLE_OBLIQUE : Type = 1 ; pub const BL_FONT_STYLE_ITALIC : Type = 2 ; pub const BL_FONT_STYLE_COUNT : Type = 3 ; } pub mod BLFontWeight { pub type Type = u32 ; pub const BL_FONT_WEIGHT_THIN : Type = 100 ; pub const BL_FONT_WEIGHT_EXTRA_LIGHT : Type = 200 ; pub const BL_FONT_WEIGHT_LIGHT : Type = 300 ; pub const BL_FONT_WEIGHT_SEMI_LIGHT : Type = 350 ; pub const BL_FONT_WEIGHT_NORMAL : Type = 400 ; pub const BL_FONT_WEIGHT_MEDIUM : Type = 500 ; pub const BL_FONT_WEIGHT_SEMI_BOLD : Type = 600 ; pub const BL_FONT_WEIGHT_BOLD : Type = 700 ; pub const BL_FONT_WEIGHT_EXTRA_BOLD : Type = 800 ; pub const BL_FONT_WEIGHT_BLACK : Type = 900 ; pub const BL_FONT_WEIGHT_EXTRA_BLACK : Type = 950 ; } pub mod BLFontStringId { pub type Type = u32 ; pub const BL_FONT_STRING_COPYRIGHT_NOTICE : Type = 0 ; pub const BL_FONT_STRING_FAMILY_NAME : Type = 1 ; pub const BL_FONT_STRING_SUBFAMILY_NAME : Type = 2 ; pub const BL_FONT_STRING_UNIQUE_IDENTIFIER : Type = 3 ; pub const BL_FONT_STRING_FULL_NAME : Type = 4 ; pub const BL_FONT_STRING_VERSION_STRING : Type = 5 ; pub const BL_FONT_STRING_POST_SCRIPT_NAME : Type = 6 ; pub const BL_FONT_STRING_TRADEMARK : Type = 7 ; pub const BL_FONT_STRING_MANUFACTURER_NAME : Type = 8 ; pub const BL_FONT_STRING_DESIGNER_NAME : Type = 9 ; pub const BL_FONT_STRING_DESCRIPTION : Type = 10 ; pub const BL_FONT_STRING_VENDOR_URL : Type = 11 ; pub const BL_FONT_STRING_DESIGNER_URL : Type = 12 ; pub const BL_FONT_STRING_LICENSE_DESCRIPTION : Type = 13 ; pub const BL_FONT_STRING_LICENSE_INFO_URL : Type = 14 ; pub const BL_FONT_STRING_RESERVED : Type = 15 ; pub const BL_FONT_STRING_TYPOGRAPHIC_FAMILY_NAME : Type = 16 ; pub const BL_FONT_STRING_TYPOGRAPHIC_SUBFAMILY_NAME : Type = 17 ; pub const BL_FONT_STRING_COMPATIBLE_FULL_NAME : Type = 18 ; pub const BL_FONT_STRING_SAMPLE_TEXT : Type = 19 ; pub const BL_FONT_STRING_POST_SCRIPT_CID_NAME : Type = 20 ; pub const BL_FONT_STRING_WWS_FAMILY_NAME : Type = 21 ; pub const BL_FONT_STRING_WWS_SUBFAMILY_NAME : Type = 22 ; pub const BL_FONT_STRING_LIGHT_BACKGROUND_PALETTE : Type = 23 ; pub const BL_FONT_STRING_DARK_BACKGROUND_PALETTE : Type = 24 ; pub const BL_FONT_STRING_VARIATIONS_POST_SCRIPT_PREFIX : Type = 25 ; pub const BL_FONT_STRING_COMMON_COUNT : Type = 26 ; pub const BL_FONT_STRING_CUSTOM_START_INDEX : Type = 255 ; } pub mod BLFontUnicodeCoverageIndex { pub type Type = u32 ; pub const BL_FONT_UC_INDEX_BASIC_LATIN : Type = 0 ; pub const BL_FONT_UC_INDEX_LATIN1_SUPPLEMENT : Type = 1 ; pub const BL_FONT_UC_INDEX_LATIN_EXTENDED_A : Type = 2 ; pub const BL_FONT_UC_INDEX_LATIN_EXTENDED_B : Type = 3 ; pub const BL_FONT_UC_INDEX_IPA_EXTENSIONS : Type = 4 ; pub const BL_FONT_UC_INDEX_SPACING_MODIFIER_LETTERS : Type = 5 ; pub const BL_FONT_UC_INDEX_COMBINING_DIACRITICAL_MARKS : Type = 6 ; pub const BL_FONT_UC_INDEX_GREEK_AND_COPTIC : Type = 7 ; pub const BL_FONT_UC_INDEX_COPTIC : Type = 8 ; pub const BL_FONT_UC_INDEX_CYRILLIC : Type = 9 ; pub const BL_FONT_UC_INDEX_ARMENIAN : Type = 10 ; pub const BL_FONT_UC_INDEX_HEBREW : Type = 11 ; pub const BL_FONT_UC_INDEX_VAI : Type = 12 ; pub const BL_FONT_UC_INDEX_ARABIC : Type = 13 ; pub const BL_FONT_UC_INDEX_NKO : Type = 14 ; pub const BL_FONT_UC_INDEX_DEVANAGARI : Type = 15 ; pub const BL_FONT_UC_INDEX_BENGALI : Type = 16 ; pub const BL_FONT_UC_INDEX_GURMUKHI : Type = 17 ; pub const BL_FONT_UC_INDEX_GUJARATI : Type = 18 ; pub const BL_FONT_UC_INDEX_ORIYA : Type = 19 ; pub const BL_FONT_UC_INDEX_TAMIL : Type = 20 ; pub const BL_FONT_UC_INDEX_TELUGU : Type = 21 ; pub const BL_FONT_UC_INDEX_KANNADA : Type = 22 ; pub const BL_FONT_UC_INDEX_MALAYALAM : Type = 23 ; pub const BL_FONT_UC_INDEX_THAI : Type = 24 ; pub const BL_FONT_UC_INDEX_LAO : Type = 25 ; pub const BL_FONT_UC_INDEX_GEORGIAN : Type = 26 ; pub const BL_FONT_UC_INDEX_BALINESE : Type = 27 ; pub const BL_FONT_UC_INDEX_HANGUL_JAMO : Type = 28 ; pub const BL_FONT_UC_INDEX_LATIN_EXTENDED_ADDITIONAL : Type = 29 ; pub const BL_FONT_UC_INDEX_GREEK_EXTENDED : Type = 30 ; pub const BL_FONT_UC_INDEX_GENERAL_PUNCTUATION : Type = 31 ; pub const BL_FONT_UC_INDEX_SUPERSCRIPTS_AND_SUBSCRIPTS : Type = 32 ; pub const BL_FONT_UC_INDEX_CURRENCY_SYMBOLS : Type = 33 ; pub const BL_FONT_UC_INDEX_COMBINING_DIACRITICAL_MARKS_FOR_SYMBOLS : Type = 34 ; pub const BL_FONT_UC_INDEX_LETTERLIKE_SYMBOLS : Type = 35 ; pub const BL_FONT_UC_INDEX_NUMBER_FORMS : Type = 36 ; pub const BL_FONT_UC_INDEX_ARROWS : Type = 37 ; pub const BL_FONT_UC_INDEX_MATHEMATICAL_OPERATORS : Type = 38 ; pub const BL_FONT_UC_INDEX_MISCELLANEOUS_TECHNICAL : Type = 39 ; pub const BL_FONT_UC_INDEX_CONTROL_PICTURES : Type = 40 ; pub const BL_FONT_UC_INDEX_OPTICAL_CHARACTER_RECOGNITION : Type = 41 ; pub const BL_FONT_UC_INDEX_ENCLOSED_ALPHANUMERICS : Type = 42 ; pub const BL_FONT_UC_INDEX_BOX_DRAWING : Type = 43 ; pub const BL_FONT_UC_INDEX_BLOCK_ELEMENTS : Type = 44 ; pub const BL_FONT_UC_INDEX_GEOMETRIC_SHAPES : Type = 45 ; pub const BL_FONT_UC_INDEX_MISCELLANEOUS_SYMBOLS : Type = 46 ; pub const BL_FONT_UC_INDEX_DINGBATS : Type = 47 ; pub const BL_FONT_UC_INDEX_CJK_SYMBOLS_AND_PUNCTUATION : Type = 48 ; pub const BL_FONT_UC_INDEX_HIRAGANA : Type = 49 ; pub const BL_FONT_UC_INDEX_KATAKANA : Type = 50 ; pub const BL_FONT_UC_INDEX_BOPOMOFO : Type = 51 ; pub const BL_FONT_UC_INDEX_HANGUL_COMPATIBILITY_JAMO : Type = 52 ; pub const BL_FONT_UC_INDEX_PHAGS_PA : Type = 53 ; pub const BL_FONT_UC_INDEX_ENCLOSED_CJK_LETTERS_AND_MONTHS : Type = 54 ; pub const BL_FONT_UC_INDEX_CJK_COMPATIBILITY : Type = 55 ; pub const BL_FONT_UC_INDEX_HANGUL_SYLLABLES : Type = 56 ; pub const BL_FONT_UC_INDEX_NON_PLANE : Type = 57 ; pub const BL_FONT_UC_INDEX_PHOENICIAN : Type = 58 ; pub const BL_FONT_UC_INDEX_CJK_UNIFIED_IDEOGRAPHS : Type = 59 ; pub const BL_FONT_UC_INDEX_PRIVATE_USE_PLANE0 : Type = 60 ; pub const BL_FONT_UC_INDEX_CJK_STROKES : Type = 61 ; pub const BL_FONT_UC_INDEX_ALPHABETIC_PRESENTATION_FORMS : Type = 62 ; pub const BL_FONT_UC_INDEX_ARABIC_PRESENTATION_FORMS_A : Type = 63 ; pub const BL_FONT_UC_INDEX_COMBINING_HALF_MARKS : Type = 64 ; pub const BL_FONT_UC_INDEX_VERTICAL_FORMS : Type = 65 ; pub const BL_FONT_UC_INDEX_SMALL_FORM_VARIANTS : Type = 66 ; pub const BL_FONT_UC_INDEX_ARABIC_PRESENTATION_FORMS_B : Type = 67 ; pub const BL_FONT_UC_INDEX_HALFWIDTH_AND_FULLWIDTH_FORMS : Type = 68 ; pub const BL_FONT_UC_INDEX_SPECIALS : Type = 69 ; pub const BL_FONT_UC_INDEX_TIBETAN : Type = 70 ; pub const BL_FONT_UC_INDEX_SYRIAC : Type = 71 ; pub const BL_FONT_UC_INDEX_THAANA : Type = 72 ; pub const BL_FONT_UC_INDEX_SINHALA : Type = 73 ; pub const BL_FONT_UC_INDEX_MYANMAR : Type = 74 ; pub const BL_FONT_UC_INDEX_ETHIOPIC : Type = 75 ; pub const BL_FONT_UC_INDEX_CHEROKEE : Type = 76 ; pub const BL_FONT_UC_INDEX_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS : Type = 77 ; pub const BL_FONT_UC_INDEX_OGHAM : Type = 78 ; pub const BL_FONT_UC_INDEX_RUNIC : Type = 79 ; pub const BL_FONT_UC_INDEX_KHMER : Type = 80 ; pub const BL_FONT_UC_INDEX_MONGOLIAN : Type = 81 ; pub const BL_FONT_UC_INDEX_BRAILLE_PATTERNS : Type = 82 ; pub const BL_FONT_UC_INDEX_YI_SYLLABLES_AND_RADICALS : Type = 83 ; pub const BL_FONT_UC_INDEX_TAGALOG_HANUNOO_BUHID_TAGBANWA : Type = 84 ; pub const BL_FONT_UC_INDEX_OLD_ITALIC : Type = 85 ; pub const BL_FONT_UC_INDEX_GOTHIC : Type = 86 ; pub const BL_FONT_UC_INDEX_DESERET : Type = 87 ; pub const BL_FONT_UC_INDEX_MUSICAL_SYMBOLS : Type = 88 ; pub const BL_FONT_UC_INDEX_MATHEMATICAL_ALPHANUMERIC_SYMBOLS : Type = 89 ; pub const BL_FONT_UC_INDEX_PRIVATE_USE_PLANE_15_16 : Type = 90 ; pub const BL_FONT_UC_INDEX_VARIATION_SELECTORS : Type = 91 ; pub const BL_FONT_UC_INDEX_TAGS : Type = 92 ; pub const BL_FONT_UC_INDEX_LIMBU : Type = 93 ; pub const BL_FONT_UC_INDEX_TAI_LE : Type = 94 ; pub const BL_FONT_UC_INDEX_NEW_TAI_LUE : Type = 95 ; pub const BL_FONT_UC_INDEX_BUGINESE : Type = 96 ; pub const BL_FONT_UC_INDEX_GLAGOLITIC : Type = 97 ; pub const BL_FONT_UC_INDEX_TIFINAGH : Type = 98 ; pub const BL_FONT_UC_INDEX_YIJING_HEXAGRAM_SYMBOLS : Type = 99 ; pub const BL_FONT_UC_INDEX_SYLOTI_NAGRI : Type = 100 ; pub const BL_FONT_UC_INDEX_LINEAR_B_SYLLABARY_AND_IDEOGRAMS : Type = 101 ; pub const BL_FONT_UC_INDEX_ANCIENT_GREEK_NUMBERS : Type = 102 ; pub const BL_FONT_UC_INDEX_UGARITIC : Type = 103 ; pub const BL_FONT_UC_INDEX_OLD_PERSIAN : Type = 104 ; pub const BL_FONT_UC_INDEX_SHAVIAN : Type = 105 ; pub const BL_FONT_UC_INDEX_OSMANYA : Type = 106 ; pub const BL_FONT_UC_INDEX_CYPRIOT_SYLLABARY : Type = 107 ; pub const BL_FONT_UC_INDEX_KHAROSHTHI : Type = 108 ; pub const BL_FONT_UC_INDEX_TAI_XUAN_JING_SYMBOLS : Type = 109 ; pub const BL_FONT_UC_INDEX_CUNEIFORM : Type = 110 ; pub const BL_FONT_UC_INDEX_COUNTING_ROD_NUMERALS : Type = 111 ; pub const BL_FONT_UC_INDEX_SUNDANESE : Type = 112 ; pub const BL_FONT_UC_INDEX_LEPCHA : Type = 113 ; pub const BL_FONT_UC_INDEX_OL_CHIKI : Type = 114 ; pub const BL_FONT_UC_INDEX_SAURASHTRA : Type = 115 ; pub const BL_FONT_UC_INDEX_KAYAH_LI : Type = 116 ; pub const BL_FONT_UC_INDEX_REJANG : Type = 117 ; pub const BL_FONT_UC_INDEX_CHAM : Type = 118 ; pub const BL_FONT_UC_INDEX_ANCIENT_SYMBOLS : Type = 119 ; pub const BL_FONT_UC_INDEX_PHAISTOS_DISC : Type = 120 ; pub const BL_FONT_UC_INDEX_CARIAN_LYCIAN_LYDIAN : Type = 121 ; pub const BL_FONT_UC_INDEX_DOMINO_AND_MAHJONG_TILES : Type = 122 ; pub const BL_FONT_UC_INDEX_INTERNAL_USAGE_123 : Type = 123 ; pub const BL_FONT_UC_INDEX_INTERNAL_USAGE_124 : Type = 124 ; pub const BL_FONT_UC_INDEX_INTERNAL_USAGE_125 : Type = 125 ; pub const BL_FONT_UC_INDEX_INTERNAL_USAGE_126 : Type = 126 ; pub const BL_FONT_UC_INDEX_INTERNAL_USAGE_127 : Type = 127 ; } pub mod BLTextDirection { pub type Type = u32 ; pub const BL_TEXT_DIRECTION_LTR : Type = 0 ; pub const BL_TEXT_DIRECTION_RTL : Type = 1 ; pub const BL_TEXT_DIRECTION_COUNT : Type = 2 ; } pub mod BLTextOrientation { pub type Type = u32 ; pub const BL_TEXT_ORIENTATION_HORIZONTAL : Type = 0 ; pub const BL_TEXT_ORIENTATION_VERTICAL : Type = 1 ; pub const BL_TEXT_ORIENTATION_COUNT : Type = 2 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGlyphItem { pub __bindgen_anon_1 : BLGlyphItem__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLGlyphItem__bindgen_ty_1 { pub value : u32 , pub __bindgen_anon_1 : BLGlyphItem__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : u32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGlyphItem__bindgen_ty_1__bindgen_ty_1 { pub glyphId : BLGlyphId , pub reserved : u16 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGlyphInfo { pub cluster : u32 , pub reserved : [ u32 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGlyphPlacement { pub placement : BLPointI , pub advance : BLPointI , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGlyphMappingState { pub glyphCount : usize , pub undefinedFirst : usize , pub undefinedCount : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGlyphOutlineSinkInfo { pub glyphIndex : usize , pub contourCount : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGlyphRun { pub glyphIdData : * mut :: std :: os :: raw :: c_void , pub placementData : * mut :: std :: os :: raw :: c_void , pub size : usize , pub glyphIdSize : u8 , pub placementType : u8 , pub glyphIdAdvance : i8 , pub placementAdvance : i8 , pub flags : u32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontFaceInfo { pub faceType : u8 , pub outlineType : u8 , pub glyphCount : u16 , pub faceIndex : u32 , pub faceFlags : u32 , pub diagFlags : u32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontTable { pub data : * const u8 , pub size : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontFeature { pub tag : BLTag , pub value : u32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontVariation { pub tag : BLTag , pub value : f32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontUnicodeCoverage { pub data : [ u32 ; 4usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontPanose { pub __bindgen_anon_1 : BLFontPanose__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLFontPanose__bindgen_ty_1 { pub data : [ u8 ; 10usize ] , pub familyKind : u8 , pub text : BLFontPanose__bindgen_ty_1__bindgen_ty_1 , pub script : BLFontPanose__bindgen_ty_1__bindgen_ty_2 , pub decorative : BLFontPanose__bindgen_ty_1__bindgen_ty_3 , pub symbol : BLFontPanose__bindgen_ty_1__bindgen_ty_4 , _bindgen_union_align : [ u8 ; 10usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontPanose__bindgen_ty_1__bindgen_ty_1 { pub familyKind : u8 , pub serifStyle : u8 , pub weight : u8 , pub proportion : u8 , pub contrast : u8 , pub strokeVariation : u8 , pub armStyle : u8 , pub letterform : u8 , pub midline : u8 , pub xHeight : u8 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontPanose__bindgen_ty_1__bindgen_ty_2 { pub familyKind : u8 , pub toolKind : u8 , pub weight : u8 , pub spacing : u8 , pub aspectRatio : u8 , pub contrast : u8 , pub topology : u8 , pub form : u8 , pub finials : u8 , pub xAscent : u8 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontPanose__bindgen_ty_1__bindgen_ty_3 { pub familyKind : u8 , pub decorativeClass : u8 , pub weight : u8 , pub aspect : u8 , pub contrast : u8 , pub serifVariant : u8 , pub treatment : u8 , pub lining : u8 , pub topology : u8 , pub characterRange : u8 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontPanose__bindgen_ty_1__bindgen_ty_4 { pub familyKind : u8 , pub symbolKind : u8 , pub weight : u8 , pub spacing : u8 , pub aspectRatioAndContrast : u8 , pub aspectRatio94 : u8 , pub aspectRatio119 : u8 , pub aspectRatio157 : u8 , pub aspectRatio163 : u8 , pub aspectRatio211 : u8 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontMatrix { pub __bindgen_anon_1 : BLFontMatrix__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLFontMatrix__bindgen_ty_1 { pub m : [ f64 ; 4usize ] , pub __bindgen_anon_1 : BLFontMatrix__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : [ u64 ; 4usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontMatrix__bindgen_ty_1__bindgen_ty_1 { pub m00 : f64 , pub m01 : f64 , pub m10 : f64 , pub m11 : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontMetrics { pub size : f32 , pub __bindgen_anon_1 : BLFontMetrics__bindgen_ty_1 , pub lineGap : f32 , pub xHeight : f32 , pub capHeight : f32 , pub underlinePosition : f32 , pub underlineThickness : f32 , pub strikethroughPosition : f32 , pub strikethroughThickness : f32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLFontMetrics__bindgen_ty_1 { pub __bindgen_anon_1 : BLFontMetrics__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : BLFontMetrics__bindgen_ty_1__bindgen_ty_2 , _bindgen_union_align : [ u32 ; 4usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontMetrics__bindgen_ty_1__bindgen_ty_1 { pub ascent : f32 , pub vAscent : f32 , pub descent : f32 , pub vDescent : f32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontMetrics__bindgen_ty_1__bindgen_ty_2 { pub ascentByOrientation : [ f32 ; 2usize ] , pub descentByOrientation : [ f32 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontDesignMetrics { pub unitsPerEm : :: std :: os :: raw :: c_int , pub lineGap : :: std :: os :: raw :: c_int , pub xHeight : :: std :: os :: raw :: c_int , pub capHeight : :: std :: os :: raw :: c_int , pub __bindgen_anon_1 : BLFontDesignMetrics__bindgen_ty_1 , pub underlinePosition : :: std :: os :: raw :: c_int , pub underlineThickness : :: std :: os :: raw :: c_int , pub strikethroughPosition : :: std :: os :: raw :: c_int , pub strikethroughThickness : :: std :: os :: raw :: c_int , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLFontDesignMetrics__bindgen_ty_1 { pub __bindgen_anon_1 : BLFontDesignMetrics__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : BLFontDesignMetrics__bindgen_ty_1__bindgen_ty_2 , _bindgen_union_align : [ u32 ; 10usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontDesignMetrics__bindgen_ty_1__bindgen_ty_1 { pub ascent : :: std :: os :: raw :: c_int , pub vAscent : :: std :: os :: raw :: c_int , pub descent : :: std :: os :: raw :: c_int , pub vDescent : :: std :: os :: raw :: c_int , pub hMinLSB : :: std :: os :: raw :: c_int , pub vMinLSB : :: std :: os :: raw :: c_int , pub hMinTSB : :: std :: os :: raw :: c_int , pub vMinTSB : :: std :: os :: raw :: c_int , pub hMaxAdvance : :: std :: os :: raw :: c_int , pub vMaxAdvance : :: std :: os :: raw :: c_int , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontDesignMetrics__bindgen_ty_1__bindgen_ty_2 { pub ascentByOrientation : [ :: std :: os :: raw :: c_int ; 2usize ] , pub descentByOrientation : [ :: std :: os :: raw :: c_int ; 2usize ] , pub minLSBByOrientation : [ :: std :: os :: raw :: c_int ; 2usize ] , pub minTSBByOrientation : [ :: std :: os :: raw :: c_int ; 2usize ] , pub maxAdvanceByOrientation : [ :: std :: os :: raw :: c_int ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLTextMetrics { pub advance : BLPoint , pub boundingBox : BLBox , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGlyphBufferData { pub __bindgen_anon_1 : BLGlyphBufferData__bindgen_ty_1 , pub glyphInfoData : * mut BLGlyphInfo , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLGlyphBufferData__bindgen_ty_1 { pub __bindgen_anon_1 : BLGlyphBufferData__bindgen_ty_1__bindgen_ty_1 , pub glyphRun : BLGlyphRun , _bindgen_union_align : [ u64 ; 4usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGlyphBufferData__bindgen_ty_1__bindgen_ty_1 { pub glyphItemData : * mut BLGlyphItem , pub placementData : * mut BLGlyphPlacement , pub size : usize , pub reserved : u32 , pub flags : u32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGlyphBufferCore { pub data : * mut BLGlyphBufferData , } pub mod BLPathCmd { pub type Type = u32 ; pub const BL_PATH_CMD_MOVE : Type = 0 ; pub const BL_PATH_CMD_ON : Type = 1 ; pub const BL_PATH_CMD_QUAD : Type = 2 ; pub const BL_PATH_CMD_CUBIC : Type = 3 ; pub const BL_PATH_CMD_CLOSE : Type = 4 ; pub const BL_PATH_CMD_COUNT : Type = 5 ; } pub mod BLPathCmdExtra { pub type Type = u32 ; pub const BL_PATH_CMD_PRESERVE : Type = 4294967295 ; } pub mod BLPathFlags { pub type Type = u32 ; pub const BL_PATH_FLAG_EMPTY : Type = 1 ; pub const BL_PATH_FLAG_MULTIPLE : Type = 2 ; pub const BL_PATH_FLAG_QUADS : Type = 4 ; pub const BL_PATH_FLAG_CUBICS : Type = 8 ; pub const BL_PATH_FLAG_INVALID : Type = 1073741824 ; pub const BL_PATH_FLAG_DIRTY : Type = 2147483648 ; } pub mod BLPathReverseMode { pub type Type = u32 ; pub const BL_PATH_REVERSE_MODE_COMPLETE : Type = 0 ; pub const BL_PATH_REVERSE_MODE_SEPARATE : Type = 1 ; pub const BL_PATH_REVERSE_MODE_COUNT : Type = 2 ; } pub mod BLStrokeJoin { pub type Type = u32 ; pub const BL_STROKE_JOIN_MITER_CLIP : Type = 0 ; pub const BL_STROKE_JOIN_MITER_BEVEL : Type = 1 ; pub const BL_STROKE_JOIN_MITER_ROUND : Type = 2 ; pub const BL_STROKE_JOIN_BEVEL : Type = 3 ; pub const BL_STROKE_JOIN_ROUND : Type = 4 ; pub const BL_STROKE_JOIN_COUNT : Type = 5 ; } pub mod BLStrokeCapPosition { pub type Type = u32 ; pub const BL_STROKE_CAP_POSITION_START : Type = 0 ; pub const BL_STROKE_CAP_POSITION_END : Type = 1 ; pub const BL_STROKE_CAP_POSITION_COUNT : Type = 2 ; } pub mod BLStrokeCap { pub type Type = u32 ; pub const BL_STROKE_CAP_BUTT : Type = 0 ; pub const BL_STROKE_CAP_SQUARE : Type = 1 ; pub const BL_STROKE_CAP_ROUND : Type = 2 ; pub const BL_STROKE_CAP_ROUND_REV : Type = 3 ; pub const BL_STROKE_CAP_TRIANGLE : Type = 4 ; pub const BL_STROKE_CAP_TRIANGLE_REV : Type = 5 ; pub const BL_STROKE_CAP_COUNT : Type = 6 ; } pub mod BLStrokeTransformOrder { pub type Type = u32 ; pub const BL_STROKE_TRANSFORM_ORDER_AFTER : Type = 0 ; pub const BL_STROKE_TRANSFORM_ORDER_BEFORE : Type = 1 ; pub const BL_STROKE_TRANSFORM_ORDER_COUNT : Type = 2 ; } pub mod BLFlattenMode { pub type Type = u32 ; pub const BL_FLATTEN_MODE_DEFAULT : Type = 0 ; pub const BL_FLATTEN_MODE_RECURSIVE : Type = 1 ; pub const BL_FLATTEN_MODE_COUNT : Type = 2 ; } pub mod BLOffsetMode { pub type Type = u32 ; pub const BL_OFFSET_MODE_DEFAULT : Type = 0 ; pub const BL_OFFSET_MODE_ITERATIVE : Type = 1 ; pub const BL_OFFSET_MODE_COUNT : Type = 2 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLApproximationOptions { pub flattenMode : u8 , pub offsetMode : u8 , pub reservedFlags : [ u8 ; 6usize ] , pub flattenTolerance : f64 , pub simplifyTolerance : f64 , pub offsetParameter : f64 , } extern "C" { # [ link_name = "\u{1}blDefaultApproximationOptions" ] pub static blDefaultApproximationOptions : BLApproximationOptions ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLStrokeOptionsCore { pub __bindgen_anon_1 : BLStrokeOptionsCore__bindgen_ty_1 , pub width : f64 , pub miterLimit : f64 , pub dashOffset : f64 , pub dashArray : BLArrayCore , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLStrokeOptionsCore__bindgen_ty_1 { pub __bindgen_anon_1 : BLStrokeOptionsCore__bindgen_ty_1__bindgen_ty_1 , pub caps : [ u8 ; 2usize ] , pub hints : u64 , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLStrokeOptionsCore__bindgen_ty_1__bindgen_ty_1 { pub startCap : u8 , pub endCap : u8 , pub join : u8 , pub transformOrder : u8 , pub reserved : [ u8 ; 4usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLPathView { pub commandData : * const u8 , pub vertexData : * const BLPoint , pub size : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLPathImpl { pub __bindgen_anon_1 : BLPathImpl__bindgen_ty_1 , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub flags : u32 , pub capacity : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLPathImpl__bindgen_ty_1 { pub __bindgen_anon_1 : BLPathImpl__bindgen_ty_1__bindgen_ty_1 , pub view : BLPathView , _bindgen_union_align : [ u64 ; 3usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLPathImpl__bindgen_ty_1__bindgen_ty_1 { pub commandData : * mut u8 , pub vertexData : * mut BLPoint , pub size : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLPathCore { pub impl_ : * mut BLPathImpl , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLStringImpl { pub __bindgen_anon_1 : BLStringImpl__bindgen_ty_1 , pub capacity : usize , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub reserved : [ u8 ; 4usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLStringImpl__bindgen_ty_1 { pub __bindgen_anon_1 : BLStringImpl__bindgen_ty_1__bindgen_ty_1 , pub view : BLStringView , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLStringImpl__bindgen_ty_1__bindgen_ty_1 { pub data : * mut :: std :: os :: raw :: c_char , pub size : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLStringCore { pub impl_ : * mut BLStringImpl , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontDataVirt { pub destroy : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLFontDataImpl ) -> BLResult > , pub listTags : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * const BLFontDataImpl , out : * mut BLArrayCore ) -> BLResult > , pub queryTables : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * const BLFontDataImpl , dst : * mut BLFontTable , tags : * const BLTag , n : usize ) -> usize > , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontDataImpl { pub virt : * const BLFontDataVirt , pub data : * mut :: std :: os :: raw :: c_void , pub size : usize , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub flags : u32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontDataCore { pub impl_ : * mut BLFontDataImpl , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontLoaderVirt { pub destroy : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLFontLoaderImpl ) -> BLResult > , pub dataByFaceIndex : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLFontLoaderImpl , faceIndex : u32 ) -> * mut BLFontDataImpl > , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontLoaderImpl { pub virt : * const BLFontLoaderVirt , pub data : * mut :: std :: os :: raw :: c_void , pub size : usize , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub faceType : u8 , pub faceCount : u32 , pub loaderFlags : u32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontLoaderCore { pub impl_ : * mut BLFontLoaderImpl , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontFaceVirt { pub destroy : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLFontFaceImpl ) -> BLResult > , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontFaceImpl { pub virt : * const BLFontFaceVirt , pub data : BLFontDataCore , pub loader : BLFontLoaderCore , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub weight : u16 , pub stretch : u8 , pub style : u8 , pub faceInfo : BLFontFaceInfo , pub faceUniqueId : u64 , pub fullName : BLStringCore , pub familyName : BLStringCore , pub subfamilyName : BLStringCore , pub postScriptName : BLStringCore , pub designMetrics : BLFontDesignMetrics , pub unicodeCoverage : BLFontUnicodeCoverage , pub panose : BLFontPanose , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontFaceCore { pub impl_ : * mut BLFontFaceImpl , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontImpl { pub face : BLFontFaceCore , pub features : BLArrayCore , pub variations : BLArrayCore , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub weight : u16 , pub stretch : u8 , pub style : u8 , pub metrics : BLFontMetrics , pub matrix : BLFontMatrix , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFontCore { pub impl_ : * mut BLFontImpl , } pub mod BLFormat { pub type Type = u32 ; pub const BL_FORMAT_NONE : Type = 0 ; pub const BL_FORMAT_PRGB32 : Type = 1 ; pub const BL_FORMAT_XRGB32 : Type = 2 ; pub const BL_FORMAT_A8 : Type = 3 ; pub const BL_FORMAT_COUNT : Type = 4 ; pub const BL_FORMAT_RESERVED_COUNT : Type = 8 ; } pub mod BLFormatFlags { pub type Type = u32 ; pub const BL_FORMAT_FLAG_RGB : Type = 1 ; pub const BL_FORMAT_FLAG_ALPHA : Type = 2 ; pub const BL_FORMAT_FLAG_RGBA : Type = 3 ; pub const BL_FORMAT_FLAG_LUM : Type = 4 ; pub const BL_FORMAT_FLAG_LUMA : Type = 6 ; pub const BL_FORMAT_FLAG_INDEXED : Type = 16 ; pub const BL_FORMAT_FLAG_PREMULTIPLIED : Type = 256 ; pub const BL_FORMAT_FLAG_BYTE_SWAP : Type = 512 ; pub const BL_FORMAT_FLAG_BYTE_ALIGNED : Type = 65536 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFormatInfo { pub depth : u32 , pub flags : u32 , pub __bindgen_anon_1 : BLFormatInfo__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLFormatInfo__bindgen_ty_1 { pub __bindgen_anon_1 : BLFormatInfo__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : BLFormatInfo__bindgen_ty_1__bindgen_ty_2 , pub palette : * const BLRgba32 , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFormatInfo__bindgen_ty_1__bindgen_ty_1 { pub sizes : [ u8 ; 4usize ] , pub shifts : [ u8 ; 4usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFormatInfo__bindgen_ty_1__bindgen_ty_2 { pub rSize : u8 , pub gSize : u8 , pub bSize : u8 , pub aSize : u8 , pub rShift : u8 , pub gShift : u8 , pub bShift : u8 , pub aShift : u8 , } extern "C" { # [ link_name = "\u{1}blFormatInfo" ] pub static mut blFormatInfo : [ BLFormatInfo ; 8usize ] ; } pub mod BLImageCodecFeatures { pub type Type = u32 ; pub const BL_IMAGE_CODEC_FEATURE_READ : Type = 1 ; pub const BL_IMAGE_CODEC_FEATURE_WRITE : Type = 2 ; pub const BL_IMAGE_CODEC_FEATURE_LOSSLESS : Type = 4 ; pub const BL_IMAGE_CODEC_FEATURE_LOSSY : Type = 8 ; pub const BL_IMAGE_CODEC_FEATURE_MULTI_FRAME : Type = 16 ; pub const BL_IMAGE_CODEC_FEATURE_IPTC : Type = 268435456 ; pub const BL_IMAGE_CODEC_FEATURE_EXIF : Type = 536870912 ; pub const BL_IMAGE_CODEC_FEATURE_XMP : Type = 1073741824 ; } pub mod BLImageInfoFlags { pub type Type = u32 ; pub const BL_IMAGE_INFO_FLAG_PROGRESSIVE : Type = 1 ; } pub mod BLImageScaleFilter { pub type Type = u32 ; pub const BL_IMAGE_SCALE_FILTER_NONE : Type = 0 ; pub const BL_IMAGE_SCALE_FILTER_NEAREST : Type = 1 ; pub const BL_IMAGE_SCALE_FILTER_BILINEAR : Type = 2 ; pub const BL_IMAGE_SCALE_FILTER_BICUBIC : Type = 3 ; pub const BL_IMAGE_SCALE_FILTER_BELL : Type = 4 ; pub const BL_IMAGE_SCALE_FILTER_GAUSS : Type = 5 ; pub const BL_IMAGE_SCALE_FILTER_HERMITE : Type = 6 ; pub const BL_IMAGE_SCALE_FILTER_HANNING : Type = 7 ; pub const BL_IMAGE_SCALE_FILTER_CATROM : Type = 8 ; pub const BL_IMAGE_SCALE_FILTER_BESSEL : Type = 9 ; pub const BL_IMAGE_SCALE_FILTER_SINC : Type = 10 ; pub const BL_IMAGE_SCALE_FILTER_LANCZOS : Type = 11 ; pub const BL_IMAGE_SCALE_FILTER_BLACKMAN : Type = 12 ; pub const BL_IMAGE_SCALE_FILTER_MITCHELL : Type = 13 ; pub const BL_IMAGE_SCALE_FILTER_USER : Type = 14 ; pub const BL_IMAGE_SCALE_FILTER_COUNT : Type = 15 ; } pub type BLImageScaleUserFunc = :: std :: option :: Option < unsafe extern "C" fn ( dst : * mut f64 , tArray : * const f64 , n : usize , data : * const :: std :: os :: raw :: c_void ) -> BLResult > ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageData { pub pixelData : * mut :: std :: os :: raw :: c_void , pub stride : isize , pub size : BLSizeI , pub format : u32 , pub flags : u32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageInfo { pub size : BLSizeI , pub density : BLSize , pub flags : u32 , pub depth : u16 , pub planeCount : u16 , pub frameCount : u64 , pub format : [ :: std :: os :: raw :: c_char ; 16usize ] , pub compression : [ :: std :: os :: raw :: c_char ; 16usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageScaleOptions { pub userFunc : BLImageScaleUserFunc , pub userData : * mut :: std :: os :: raw :: c_void , pub radius : f64 , pub __bindgen_anon_1 : BLImageScaleOptions__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLImageScaleOptions__bindgen_ty_1 { pub data : [ f64 ; 3usize ] , pub mitchell : BLImageScaleOptions__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : [ u64 ; 3usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageScaleOptions__bindgen_ty_1__bindgen_ty_1 { pub b : f64 , pub c : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageImpl { pub pixelData : * mut :: std :: os :: raw :: c_void , pub stride : isize , pub writer : * mut :: std :: os :: raw :: c_void , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub format : u8 , pub flags : u8 , pub depth : u16 , pub size : BLSizeI , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageCore { pub impl_ : * mut BLImageImpl , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageCodecVirt { pub destroy : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLImageCodecImpl ) -> BLResult > , pub inspectData : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * const BLImageCodecImpl , data : * const u8 , size : usize ) -> u32 > , pub createDecoder : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * const BLImageCodecImpl , dst : * mut BLImageDecoderCore ) -> BLResult > , pub createEncoder : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * const BLImageCodecImpl , dst : * mut BLImageEncoderCore ) -> BLResult > , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageCodecImpl { pub virt : * const BLImageCodecVirt , pub name : * const :: std :: os :: raw :: c_char , pub vendor : * const :: std :: os :: raw :: c_char , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub features : u32 , pub mimeType : * const :: std :: os :: raw :: c_char , pub extensions : * const :: std :: os :: raw :: c_char , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageCodecCore { pub impl_ : * mut BLImageCodecImpl , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageDecoderVirt { pub destroy : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLImageDecoderImpl ) -> BLResult > , pub restart : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLImageDecoderImpl ) -> BLResult > , pub readInfo : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLImageDecoderImpl , infoOut : * mut BLImageInfo , data : * const u8 , size : usize ) -> BLResult > , pub readFrame : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLImageDecoderImpl , imageOut : * mut BLImageCore , data : * const u8 , size : usize ) -> BLResult > , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageDecoderImpl { pub virt : * const BLImageDecoderVirt , pub codec : BLImageCodecCore , pub handle : * mut :: std :: os :: raw :: c_void , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub lastResult : BLResult , pub frameIndex : u64 , pub bufferIndex : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageDecoderCore { pub impl_ : * mut BLImageDecoderImpl , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageEncoderVirt { pub destroy : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLImageEncoderImpl ) -> BLResult > , pub restart : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLImageEncoderImpl ) -> BLResult > , pub writeFrame : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLImageEncoderImpl , dst : * mut BLArrayCore , image : * const BLImageCore ) -> BLResult > , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageEncoderImpl { pub virt : * const BLImageEncoderVirt , pub codec : BLImageCodecCore , pub handle : * mut :: std :: os :: raw :: c_void , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub lastResult : BLResult , pub frameIndex : u64 , pub bufferIndex : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLImageEncoderCore { pub impl_ : * mut BLImageEncoderImpl , } pub type BLMapPointDArrayFunc = :: std :: option :: Option < unsafe extern "C" fn ( ctx : * const :: std :: os :: raw :: c_void , dst : * mut BLPoint , src : * const BLPoint , count : usize ) -> BLResult > ; pub mod BLMatrix2DType { pub type Type = u32 ; pub const BL_MATRIX2D_TYPE_IDENTITY : Type = 0 ; pub const BL_MATRIX2D_TYPE_TRANSLATE : Type = 1 ; pub const BL_MATRIX2D_TYPE_SCALE : Type = 2 ; pub const BL_MATRIX2D_TYPE_SWAP : Type = 3 ; pub const BL_MATRIX2D_TYPE_AFFINE : Type = 4 ; pub const BL_MATRIX2D_TYPE_INVALID : Type = 5 ; pub const BL_MATRIX2D_TYPE_COUNT : Type = 6 ; } pub mod BLMatrix2DValue { pub type Type = u32 ; pub const BL_MATRIX2D_VALUE_00 : Type = 0 ; pub const BL_MATRIX2D_VALUE_01 : Type = 1 ; pub const BL_MATRIX2D_VALUE_10 : Type = 2 ; pub const BL_MATRIX2D_VALUE_11 : Type = 3 ; pub const BL_MATRIX2D_VALUE_20 : Type = 4 ; pub const BL_MATRIX2D_VALUE_21 : Type = 5 ; pub const BL_MATRIX2D_VALUE_COUNT : Type = 6 ; } pub mod BLMatrix2DOp { pub type Type = u32 ; pub const BL_MATRIX2D_OP_RESET : Type = 0 ; pub const BL_MATRIX2D_OP_ASSIGN : Type = 1 ; pub const BL_MATRIX2D_OP_TRANSLATE : Type = 2 ; pub const BL_MATRIX2D_OP_SCALE : Type = 3 ; pub const BL_MATRIX2D_OP_SKEW : Type = 4 ; pub const BL_MATRIX2D_OP_ROTATE : Type = 5 ; pub const BL_MATRIX2D_OP_ROTATE_PT : Type = 6 ; pub const BL_MATRIX2D_OP_TRANSFORM : Type = 7 ; pub const BL_MATRIX2D_OP_POST_TRANSLATE : Type = 8 ; pub const BL_MATRIX2D_OP_POST_SCALE : Type = 9 ; pub const BL_MATRIX2D_OP_POST_SKEW : Type = 10 ; pub const BL_MATRIX2D_OP_POST_ROTATE : Type = 11 ; pub const BL_MATRIX2D_OP_POST_ROTATE_PT : Type = 12 ; pub const BL_MATRIX2D_OP_POST_TRANSFORM : Type = 13 ; pub const BL_MATRIX2D_OP_COUNT : Type = 14 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLMatrix2D { pub __bindgen_anon_1 : BLMatrix2D__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLMatrix2D__bindgen_ty_1 { pub m : [ f64 ; 6usize ] , pub __bindgen_anon_1 : BLMatrix2D__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : [ u64 ; 6usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLMatrix2D__bindgen_ty_1__bindgen_ty_1 { pub m00 : f64 , pub m01 : f64 , pub m10 : f64 , pub m11 : f64 , pub m20 : f64 , pub m21 : f64 , } extern "C" { # [ link_name = "\u{1}blMatrix2DMapPointDArrayFuncs" ] pub static mut blMatrix2DMapPointDArrayFuncs : [ BLMapPointDArrayFunc ; 6usize ] ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRgba32 { pub __bindgen_anon_1 : BLRgba32__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLRgba32__bindgen_ty_1 { pub value : u32 , pub __bindgen_anon_1 : BLRgba32__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : u32 , } # [ repr ( C ) ] # [ repr ( align ( 4 ) ) ] # [ derive ( Copy , Clone ) ] pub struct BLRgba32__bindgen_ty_1__bindgen_ty_1 { pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 4usize ] , u8 > , } impl BLRgba32__bindgen_ty_1__bindgen_ty_1 { # [ inline ] pub fn b ( & self ) -> u32 { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 0usize , 8u8 ) as u32 ) } } # [ inline ] pub fn set_b ( & mut self , val : u32 ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 0usize , 8u8 , val as u64 ) } } # [ inline ] pub fn g ( & self ) -> u32 { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 8usize , 8u8 ) as u32 ) } } # [ inline ] pub fn set_g ( & mut self , val : u32 ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 8usize , 8u8 , val as u64 ) } } # [ inline ] pub fn r ( & self ) -> u32 { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 16usize , 8u8 ) as u32 ) } } # [ inline ] pub fn set_r ( & mut self , val : u32 ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 16usize , 8u8 , val as u64 ) } } # [ inline ] pub fn a ( & self ) -> u32 { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 24usize , 8u8 ) as u32 ) } } # [ inline ] pub fn set_a ( & mut self , val : u32 ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 24usize , 8u8 , val as u64 ) } } # [ inline ] pub fn new_bitfield_1 ( b : u32 , g : u32 , r : u32 , a : u32 ) -> __BindgenBitfieldUnit < [ u8 ; 4usize ] , u8 > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [ u8 ; 4usize ] , u8 > = Default :: default ( ) ; __bindgen_bitfield_unit . set ( 0usize , 8u8 , { let b : u32 = unsafe { :: std :: mem :: transmute ( b ) } ; b as u64 } ) ; __bindgen_bitfield_unit . set ( 8usize , 8u8 , { let g : u32 = unsafe { :: std :: mem :: transmute ( g ) } ; g as u64 } ) ; __bindgen_bitfield_unit . set ( 16usize , 8u8 , { let r : u32 = unsafe { :: std :: mem :: transmute ( r ) } ; r as u64 } ) ; __bindgen_bitfield_unit . set ( 24usize , 8u8 , { let a : u32 = unsafe { :: std :: mem :: transmute ( a ) } ; a as u64 } ) ; __bindgen_bitfield_unit } } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRgba64 { pub __bindgen_anon_1 : BLRgba64__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLRgba64__bindgen_ty_1 { pub value : u64 , pub __bindgen_anon_1 : BLRgba64__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : u64 , } # [ repr ( C ) ] # [ repr ( align ( 4 ) ) ] # [ derive ( Copy , Clone ) ] pub struct BLRgba64__bindgen_ty_1__bindgen_ty_1 { pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 8usize ] , u16 > , } impl BLRgba64__bindgen_ty_1__bindgen_ty_1 { # [ inline ] pub fn b ( & self ) -> u32 { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 0usize , 16u8 ) as u32 ) } } # [ inline ] pub fn set_b ( & mut self , val : u32 ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 0usize , 16u8 , val as u64 ) } } # [ inline ] pub fn g ( & self ) -> u32 { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 16usize , 16u8 ) as u32 ) } } # [ inline ] pub fn set_g ( & mut self , val : u32 ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 16usize , 16u8 , val as u64 ) } } # [ inline ] pub fn r ( & self ) -> u32 { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 32usize , 16u8 ) as u32 ) } } # [ inline ] pub fn set_r ( & mut self , val : u32 ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 32usize , 16u8 , val as u64 ) } } # [ inline ] pub fn a ( & self ) -> u32 { unsafe { :: std :: mem :: transmute ( self . _bitfield_1 . get ( 48usize , 16u8 ) as u32 ) } } # [ inline ] pub fn set_a ( & mut self , val : u32 ) { unsafe { let val : u32 = :: std :: mem :: transmute ( val ) ; self . _bitfield_1 . set ( 48usize , 16u8 , val as u64 ) } } # [ inline ] pub fn new_bitfield_1 ( b : u32 , g : u32 , r : u32 , a : u32 ) -> __BindgenBitfieldUnit < [ u8 ; 8usize ] , u16 > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [ u8 ; 8usize ] , u16 > = Default :: default ( ) ; __bindgen_bitfield_unit . set ( 0usize , 16u8 , { let b : u32 = unsafe { :: std :: mem :: transmute ( b ) } ; b as u64 } ) ; __bindgen_bitfield_unit . set ( 16usize , 16u8 , { let g : u32 = unsafe { :: std :: mem :: transmute ( g ) } ; g as u64 } ) ; __bindgen_bitfield_unit . set ( 32usize , 16u8 , { let r : u32 = unsafe { :: std :: mem :: transmute ( r ) } ; r as u64 } ) ; __bindgen_bitfield_unit . set ( 48usize , 16u8 , { let a : u32 = unsafe { :: std :: mem :: transmute ( a ) } ; a as u64 } ) ; __bindgen_bitfield_unit } } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRgba128 { pub r : f32 , pub g : f32 , pub b : f32 , pub a : f32 , } pub mod BLRegionType { pub type Type = u32 ; pub const BL_REGION_TYPE_EMPTY : Type = 0 ; pub const BL_REGION_TYPE_RECT : Type = 1 ; pub const BL_REGION_TYPE_COMPLEX : Type = 2 ; pub const BL_REGION_TYPE_COUNT : Type = 3 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRegionImpl { pub __bindgen_anon_1 : BLRegionImpl__bindgen_ty_1 , pub capacity : usize , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub reserved : [ u8 ; 4usize ] , pub boundingBox : BLBoxI , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLRegionImpl__bindgen_ty_1 { pub __bindgen_anon_1 : BLRegionImpl__bindgen_ty_1__bindgen_ty_1 , pub view : BLRegionView , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRegionImpl__bindgen_ty_1__bindgen_ty_1 { pub data : * mut BLBoxI , pub size : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRegionCore { pub impl_ : * mut BLRegionImpl , } pub mod BLContextType { pub type Type = u32 ; pub const BL_CONTEXT_TYPE_NONE : Type = 0 ; pub const BL_CONTEXT_TYPE_DUMMY : Type = 1 ; pub const BL_CONTEXT_TYPE_RASTER : Type = 2 ; pub const BL_CONTEXT_TYPE_RASTER_ASYNC : Type = 3 ; pub const BL_CONTEXT_TYPE_COUNT : Type = 4 ; } pub mod BLContextHint { pub type Type = u32 ; pub const BL_CONTEXT_HINT_RENDERING_QUALITY : Type = 0 ; pub const BL_CONTEXT_HINT_GRADIENT_QUALITY : Type = 1 ; pub const BL_CONTEXT_HINT_PATTERN_QUALITY : Type = 2 ; pub const BL_CONTEXT_HINT_COUNT : Type = 8 ; } pub mod BLContextOpType { pub type Type = u32 ; pub const BL_CONTEXT_OP_TYPE_FILL : Type = 0 ; pub const BL_CONTEXT_OP_TYPE_STROKE : Type = 1 ; pub const BL_CONTEXT_OP_TYPE_COUNT : Type = 2 ; } pub mod BLContextFlushFlags { pub type Type = u32 ; pub const BL_CONTEXT_FLUSH_SYNC : Type = 2147483648 ; } pub mod BLContextCreateFlags { pub type Type = u32 ; pub const BL_CONTEXT_CREATE_FLAG_ISOLATED_RUNTIME : Type = 268435456 ; pub const BL_CONTEXT_CREATE_FLAG_OVERRIDE_FEATURES : Type = 536870912 ; } pub mod BLClipOp { pub type Type = u32 ; pub const BL_CLIP_OP_REPLACE : Type = 0 ; pub const BL_CLIP_OP_INTERSECT : Type = 1 ; pub const BL_CLIP_OP_COUNT : Type = 2 ; } pub mod BLClipMode { pub type Type = u32 ; pub const BL_CLIP_MODE_ALIGNED_RECT : Type = 0 ; pub const BL_CLIP_MODE_UNALIGNED_RECT : Type = 1 ; pub const BL_CLIP_MODE_MASK : Type = 2 ; pub const BL_CLIP_MODE_COUNT : Type = 3 ; } pub mod BLCompOp { pub type Type = u32 ; pub const BL_COMP_OP_SRC_OVER : Type = 0 ; pub const BL_COMP_OP_SRC_COPY : Type = 1 ; pub const BL_COMP_OP_SRC_IN : Type = 2 ; pub const BL_COMP_OP_SRC_OUT : Type = 3 ; pub const BL_COMP_OP_SRC_ATOP : Type = 4 ; pub const BL_COMP_OP_DST_OVER : Type = 5 ; pub const BL_COMP_OP_DST_COPY : Type = 6 ; pub const BL_COMP_OP_DST_IN : Type = 7 ; pub const BL_COMP_OP_DST_OUT : Type = 8 ; pub const BL_COMP_OP_DST_ATOP : Type = 9 ; pub const BL_COMP_OP_XOR : Type = 10 ; pub const BL_COMP_OP_CLEAR : Type = 11 ; pub const BL_COMP_OP_PLUS : Type = 12 ; pub const BL_COMP_OP_MINUS : Type = 13 ; pub const BL_COMP_OP_MULTIPLY : Type = 14 ; pub const BL_COMP_OP_SCREEN : Type = 15 ; pub const BL_COMP_OP_OVERLAY : Type = 16 ; pub const BL_COMP_OP_DARKEN : Type = 17 ; pub const BL_COMP_OP_LIGHTEN : Type = 18 ; pub const BL_COMP_OP_COLOR_DODGE : Type = 19 ; pub const BL_COMP_OP_COLOR_BURN : Type = 20 ; pub const BL_COMP_OP_LINEAR_BURN : Type = 21 ; pub const BL_COMP_OP_LINEAR_LIGHT : Type = 22 ; pub const BL_COMP_OP_PIN_LIGHT : Type = 23 ; pub const BL_COMP_OP_HARD_LIGHT : Type = 24 ; pub const BL_COMP_OP_SOFT_LIGHT : Type = 25 ; pub const BL_COMP_OP_DIFFERENCE : Type = 26 ; pub const BL_COMP_OP_EXCLUSION : Type = 27 ; pub const BL_COMP_OP_COUNT : Type = 28 ; } pub mod BLGradientQuality { pub type Type = u32 ; pub const BL_GRADIENT_QUALITY_NEAREST : Type = 0 ; pub const BL_GRADIENT_QUALITY_COUNT : Type = 1 ; } pub mod BLPatternQuality { pub type Type = u32 ; pub const BL_PATTERN_QUALITY_NEAREST : Type = 0 ; pub const BL_PATTERN_QUALITY_BILINEAR : Type = 1 ; pub const BL_PATTERN_QUALITY_COUNT : Type = 2 ; } pub mod BLRenderingQuality { pub type Type = u32 ; pub const BL_RENDERING_QUALITY_ANTIALIAS : Type = 0 ; pub const BL_RENDERING_QUALITY_COUNT : Type = 1 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextCreateOptions { pub flags : u32 , pub cpuFeatures : u32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextCookie { pub data : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextHints { pub __bindgen_anon_1 : BLContextHints__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLContextHints__bindgen_ty_1 { pub __bindgen_anon_1 : BLContextHints__bindgen_ty_1__bindgen_ty_1 , pub hints : [ u8 ; 8usize ] , _bindgen_union_align : [ u8 ; 8usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextHints__bindgen_ty_1__bindgen_ty_1 { pub renderingQuality : u8 , pub gradientQuality : u8 , pub patternQuality : u8 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextState { pub __bindgen_anon_1 : BLContextState__bindgen_ty_1 , pub compOp : u8 , pub fillRule : u8 , pub __bindgen_anon_2 : BLContextState__bindgen_ty_2 , pub reserved : [ u8 ; 4usize ] , pub approximationOptions : BLApproximationOptions , pub globalAlpha : f64 , pub __bindgen_anon_3 : BLContextState__bindgen_ty_3 , pub strokeOptions : BLStrokeOptionsCore , pub metaMatrix : BLMatrix2D , pub userMatrix : BLMatrix2D , pub savedStateCount : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLContextState__bindgen_ty_1 { pub hints : BLContextHints , pub __bindgen_anon_1 : BLContextState__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : [ u8 ; 8usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextState__bindgen_ty_1__bindgen_ty_1 { pub renderingQuality : u8 , pub gradientQuality : u8 , pub patternQuality : u8 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLContextState__bindgen_ty_2 { pub opStyleType : [ u8 ; 2usize ] , pub __bindgen_anon_1 : BLContextState__bindgen_ty_2__bindgen_ty_1 , _bindgen_union_align : [ u8 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextState__bindgen_ty_2__bindgen_ty_1 { pub fillStyleType : u8 , pub strokeStyleType : u8 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLContextState__bindgen_ty_3 { pub opAlpha : [ f64 ; 2usize ] , pub __bindgen_anon_1 : BLContextState__bindgen_ty_3__bindgen_ty_1 , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextState__bindgen_ty_3__bindgen_ty_1 { pub fillAlpha : f64 , pub strokeAlpha : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextVirt { pub destroy : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl ) -> BLResult > , pub flush : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , flags : u32 ) -> BLResult > , pub save : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , cookie : * mut BLContextCookie ) -> BLResult > , pub restore : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , cookie : * const BLContextCookie ) -> BLResult > , pub matrixOp : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , opType : u32 , opData : * const :: std :: os :: raw :: c_void ) -> BLResult > , pub userToMeta : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl ) -> BLResult > , pub setHint : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , hintType : u32 , value : u32 ) -> BLResult > , pub setHints : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , hints : * const BLContextHints ) -> BLResult > , pub setFlattenMode : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , mode : u32 ) -> BLResult > , pub setFlattenTolerance : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , tolerance : f64 ) -> BLResult > , pub setApproximationOptions : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , options : * const BLApproximationOptions ) -> BLResult > , pub setCompOp : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , compOp : u32 ) -> BLResult > , pub setGlobalAlpha : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , alpha : f64 ) -> BLResult > , pub setFillRule : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , fillRule : u32 ) -> BLResult > , pub setStrokeWidth : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , width : f64 ) -> BLResult > , pub setStrokeMiterLimit : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , miterLimit : f64 ) -> BLResult > , pub setStrokeCap : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , position : u32 , strokeCap : u32 ) -> BLResult > , pub setStrokeCaps : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , strokeCap : u32 ) -> BLResult > , pub setStrokeJoin : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , strokeJoin : u32 ) -> BLResult > , pub setStrokeDashOffset : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , dashOffset : f64 ) -> BLResult > , pub setStrokeDashArray : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , dashArray : * const BLArrayCore ) -> BLResult > , pub setStrokeTransformOrder : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , transformOrder : u32 ) -> BLResult > , pub setStrokeOptions : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , options : * const BLStrokeOptionsCore ) -> BLResult > , pub __bindgen_anon_1 : BLContextVirt__bindgen_ty_1 , pub clipToRectI : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rect : * const BLRectI ) -> BLResult > , pub clipToRectD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rect : * const BLRect ) -> BLResult > , pub restoreClipping : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl ) -> BLResult > , pub clearAll : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl ) -> BLResult > , pub clearRectI : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rect : * const BLRectI ) -> BLResult > , pub clearRectD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rect : * const BLRect ) -> BLResult > , pub fillAll : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl ) -> BLResult > , pub fillRectI : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rect : * const BLRectI ) -> BLResult > , pub fillRectD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rect : * const BLRect ) -> BLResult > , pub fillPathD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , path : * const BLPathCore ) -> BLResult > , pub fillGeometry : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , geometryType : u32 , geometryData : * const :: std :: os :: raw :: c_void ) -> BLResult > , pub fillTextI : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , pt : * const BLPointI , font : * const BLFontCore , text : * const :: std :: os :: raw :: c_void , size : usize , encoding : u32 ) -> BLResult > , pub fillTextD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , pt : * const BLPoint , font : * const BLFontCore , text : * const :: std :: os :: raw :: c_void , size : usize , encoding : u32 ) -> BLResult > , pub fillGlyphRunI : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , pt : * const BLPointI , font : * const BLFontCore , glyphRun : * const BLGlyphRun ) -> BLResult > , pub fillGlyphRunD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , pt : * const BLPoint , font : * const BLFontCore , glyphRun : * const BLGlyphRun ) -> BLResult > , pub strokeRectI : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rect : * const BLRectI ) -> BLResult > , pub strokeRectD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rect : * const BLRect ) -> BLResult > , pub strokePathD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , path : * const BLPathCore ) -> BLResult > , pub strokeGeometry : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , geometryType : u32 , geometryData : * const :: std :: os :: raw :: c_void ) -> BLResult > , pub strokeTextI : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , pt : * const BLPointI , font : * const BLFontCore , text : * const :: std :: os :: raw :: c_void , size : usize , encoding : u32 ) -> BLResult > , pub strokeTextD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , pt : * const BLPoint , font : * const BLFontCore , text : * const :: std :: os :: raw :: c_void , size : usize , encoding : u32 ) -> BLResult > , pub strokeGlyphRunI : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , pt : * const BLPointI , font : * const BLFontCore , glyphRun : * const BLGlyphRun ) -> BLResult > , pub strokeGlyphRunD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , pt : * const BLPoint , font : * const BLFontCore , glyphRun : * const BLGlyphRun ) -> BLResult > , pub blitImageI : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , pt : * const BLPointI , img : * const BLImageCore , imgArea : * const BLRectI ) -> BLResult > , pub blitImageD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , pt : * const BLPoint , img : * const BLImageCore , imgArea : * const BLRectI ) -> BLResult > , pub blitScaledImageI : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rect : * const BLRectI , img : * const BLImageCore , imgArea : * const BLRectI ) -> BLResult > , pub blitScaledImageD : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rect : * const BLRect , img : * const BLImageCore , imgArea : * const BLRectI ) -> BLResult > , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLContextVirt__bindgen_ty_1 { pub __bindgen_anon_1 : BLContextVirt__bindgen_ty_1__bindgen_ty_1 , pub __bindgen_anon_2 : BLContextVirt__bindgen_ty_1__bindgen_ty_2 , _bindgen_union_align : [ u64 ; 14usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextVirt__bindgen_ty_1__bindgen_ty_1 { pub setFillAlpha : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , alpha : f64 ) -> BLResult > , pub setStrokeAlpha : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , alpha : f64 ) -> BLResult > , pub getFillStyle : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , object : * mut :: std :: os :: raw :: c_void ) -> BLResult > , pub getStrokeStyle : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , object : * mut :: std :: os :: raw :: c_void ) -> BLResult > , pub getFillStyleRgba32 : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba32 : * mut u32 ) -> BLResult > , pub getStrokeStyleRgba32 : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba32 : * mut u32 ) -> BLResult > , pub getFillStyleRgba64 : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba64 : * mut u64 ) -> BLResult > , pub getStrokeStyleRgba64 : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba64 : * mut u64 ) -> BLResult > , pub setFillStyle : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , object : * const :: std :: os :: raw :: c_void ) -> BLResult > , pub setStrokeStyle : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , object : * const :: std :: os :: raw :: c_void ) -> BLResult > , pub setFillStyleRgba32 : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba32 : u32 ) -> BLResult > , pub setStrokeStyleRgba32 : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba32 : u32 ) -> BLResult > , pub setFillStyleRgba64 : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba64 : u64 ) -> BLResult > , pub setStrokeStyleRgba64 : :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba64 : u64 ) -> BLResult > , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextVirt__bindgen_ty_1__bindgen_ty_2 { pub setOpAlpha : [ :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , alpha : f64 ) -> BLResult > ; 2usize ] , pub getOpStyle : [ :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , object : * mut :: std :: os :: raw :: c_void ) -> BLResult > ; 2usize ] , pub getOpStyleRgba32 : [ :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba32 : * mut u32 ) -> BLResult > ; 2usize ] , pub getOpStyleRgba64 : [ :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba64 : * mut u64 ) -> BLResult > ; 2usize ] , pub setOpStyle : [ :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , object : * const :: std :: os :: raw :: c_void ) -> BLResult > ; 2usize ] , pub setOpStyleRgba32 : [ :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba32 : u32 ) -> BLResult > ; 2usize ] , pub setOpStyleRgba64 : [ :: std :: option :: Option < unsafe extern "C" fn ( impl_ : * mut BLContextImpl , rgba64 : u64 ) -> BLResult > ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextImpl { pub virt : * const BLContextVirt , pub state : * const BLContextState , pub reservedHeader : [ * mut :: std :: os :: raw :: c_void ; 1usize ] , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub contextType : u32 , pub targetSize : BLSize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLContextCore { pub impl_ : * mut BLContextImpl , } pub mod BLFileOpenFlags { pub type Type = u32 ; pub const BL_FILE_OPEN_READ : Type = 1 ; pub const BL_FILE_OPEN_WRITE : Type = 2 ; pub const BL_FILE_OPEN_RW : Type = 3 ; pub const BL_FILE_OPEN_CREATE : Type = 4 ; pub const BL_FILE_OPEN_CREATE_ONLY : Type = 8 ; pub const BL_FILE_OPEN_TRUNCATE : Type = 16 ; pub const BL_FILE_OPEN_SHARE_READ : Type = 268435456 ; pub const BL_FILE_OPEN_SHARE_WRITE : Type = 536870912 ; pub const BL_FILE_OPEN_SHARE_RW : Type = 805306368 ; pub const BL_FILE_OPEN_SHARE_DELETE : Type = 1073741824 ; } pub mod BLFileSeek { pub type Type = u32 ; pub const BL_FILE_SEEK_SET : Type = 0 ; pub const BL_FILE_SEEK_CUR : Type = 1 ; pub const BL_FILE_SEEK_END : Type = 2 ; pub const BL_FILE_SEEK_COUNT : Type = 3 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLFileCore { pub handle : isize , } pub mod BLGradientType { pub type Type = u32 ; pub const BL_GRADIENT_TYPE_LINEAR : Type = 0 ; pub const BL_GRADIENT_TYPE_RADIAL : Type = 1 ; pub const BL_GRADIENT_TYPE_CONICAL : Type = 2 ; pub const BL_GRADIENT_TYPE_COUNT : Type = 3 ; } pub mod BLGradientValue { pub type Type = u32 ; pub const BL_GRADIENT_VALUE_COMMON_X0 : Type = 0 ; pub const BL_GRADIENT_VALUE_COMMON_Y0 : Type = 1 ; pub const BL_GRADIENT_VALUE_COMMON_X1 : Type = 2 ; pub const BL_GRADIENT_VALUE_COMMON_Y1 : Type = 3 ; pub const BL_GRADIENT_VALUE_RADIAL_R0 : Type = 4 ; pub const BL_GRADIENT_VALUE_CONICAL_ANGLE : Type = 2 ; pub const BL_GRADIENT_VALUE_COUNT : Type = 6 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGradientStop { pub offset : f64 , pub rgba : BLRgba64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLLinearGradientValues { pub x0 : f64 , pub y0 : f64 , pub x1 : f64 , pub y1 : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRadialGradientValues { pub x0 : f64 , pub y0 : f64 , pub x1 : f64 , pub y1 : f64 , pub r0 : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLConicalGradientValues { pub x0 : f64 , pub y0 : f64 , pub angle : f64 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGradientImpl { pub __bindgen_anon_1 : BLGradientImpl__bindgen_ty_1 , pub capacity : usize , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub gradientType : u8 , pub extendMode : u8 , pub matrixType : u8 , pub reserved : [ u8 ; 1usize ] , pub matrix : BLMatrix2D , pub __bindgen_anon_2 : BLGradientImpl__bindgen_ty_2 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLGradientImpl__bindgen_ty_1 { pub __bindgen_anon_1 : BLGradientImpl__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGradientImpl__bindgen_ty_1__bindgen_ty_1 { pub stops : * mut BLGradientStop , pub size : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLGradientImpl__bindgen_ty_2 { pub values : [ f64 ; 6usize ] , pub linear : BLLinearGradientValues , pub radial : BLRadialGradientValues , pub conical : BLConicalGradientValues , _bindgen_union_align : [ u64 ; 6usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLGradientCore { pub impl_ : * mut BLGradientImpl , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLPatternImpl { pub image : BLImageCore , pub reservedHeader : [ * mut :: std :: os :: raw :: c_void ; 2usize ] , pub refCount : usize , pub implType : u8 , pub implTraits : u8 , pub memPoolData : u16 , pub patternType : u8 , pub extendMode : u8 , pub matrixType : u8 , pub reserved : [ u8 ; 1usize ] , pub matrix : BLMatrix2D , pub area : BLRectI , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLPatternCore { pub impl_ : * mut BLPatternImpl , } pub type BLPixelConverterFunc = :: std :: option :: Option < unsafe extern "C" fn ( self_ : * const BLPixelConverterCore , dstData : * mut u8 , dstStride : isize , srcData : * const u8 , srcStride : isize , w : u32 , h : u32 , options : * const BLPixelConverterOptions ) -> BLResult > ; # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLPixelConverterOptions { pub origin : BLPointI , pub gap : usize , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLPixelConverterCore { pub convertFunc : BLPixelConverterFunc , pub __bindgen_anon_1 : BLPixelConverterCore__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLPixelConverterCore__bindgen_ty_1 { pub strategy : u8 , pub data : [ u8 ; 64usize ] , _bindgen_union_align : [ u8 ; 64usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRandom { pub data : [ u64 ; 2usize ] , } pub mod BLRuntimeLimits { pub type Type = u32 ; pub const BL_RUNTIME_MAX_IMAGE_SIZE : Type = 65535 ; } pub mod BLRuntimeInfoType { pub type Type = u32 ; pub const BL_RUNTIME_INFO_TYPE_BUILD : Type = 0 ; pub const BL_RUNTIME_INFO_TYPE_CPU : Type = 1 ; pub const BL_RUNTIME_INFO_TYPE_MEMORY : Type = 2 ; pub const BL_RUNTIME_INFO_TYPE_COUNT : Type = 3 ; } pub mod BLRuntimeBuildType { pub type Type = u32 ; pub const BL_RUNTIME_BUILD_TYPE_DEBUG : Type = 0 ; pub const BL_RUNTIME_BUILD_TYPE_RELEASE : Type = 1 ; } pub mod BLRuntimeCpuArch { pub type Type = u32 ; pub const BL_RUNTIME_CPU_ARCH_UNKNOWN : Type = 0 ; pub const BL_RUNTIME_CPU_ARCH_X86 : Type = 1 ; pub const BL_RUNTIME_CPU_ARCH_ARM : Type = 2 ; pub const BL_RUNTIME_CPU_ARCH_MIPS : Type = 3 ; } pub mod BLRuntimeCpuFeatures { pub type Type = u32 ; pub const BL_RUNTIME_CPU_FEATURE_X86_SSE : Type = 1 ; pub const BL_RUNTIME_CPU_FEATURE_X86_SSE2 : Type = 2 ; pub const BL_RUNTIME_CPU_FEATURE_X86_SSE3 : Type = 4 ; pub const BL_RUNTIME_CPU_FEATURE_X86_SSSE3 : Type = 8 ; pub const BL_RUNTIME_CPU_FEATURE_X86_SSE4_1 : Type = 16 ; pub const BL_RUNTIME_CPU_FEATURE_X86_SSE4_2 : Type = 32 ; pub const BL_RUNTIME_CPU_FEATURE_X86_AVX : Type = 64 ; pub const BL_RUNTIME_CPU_FEATURE_X86_AVX2 : Type = 128 ; } pub mod BLRuntimeCleanupFlags { pub type Type = u32 ; pub const BL_RUNTIME_CLEANUP_OBJECT_POOL : Type = 1 ; pub const BL_RUNTIME_CLEANUP_ZEROED_POOL : Type = 2 ; pub const BL_RUNTIME_CLEANUP_EVERYTHING : Type = 4294967295 ; } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRuntimeBuildInfo { pub __bindgen_anon_1 : BLRuntimeBuildInfo__bindgen_ty_1 , pub buildType : u32 , pub compilerInfo : [ :: std :: os :: raw :: c_char ; 24usize ] , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union BLRuntimeBuildInfo__bindgen_ty_1 { pub version : u32 , pub __bindgen_anon_1 : BLRuntimeBuildInfo__bindgen_ty_1__bindgen_ty_1 , _bindgen_union_align : u32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRuntimeBuildInfo__bindgen_ty_1__bindgen_ty_1 { pub patchVersion : u8 , pub minorVersion : u8 , pub majorVersion : u16 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRuntimeCpuInfo { pub arch : u32 , pub features : u32 , pub threadCount : u32 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct BLRuntimeMemoryInfo { pub vmUsed : usize , pub vmReserved : usize , pub vmOverhead : usize , pub vmBlockCount : usize , pub zmUsed : usize , pub zmReserved : usize , pub zmOverhead : usize , pub zmBlockCount : usize , pub dynamicPipelineCount : usize , } pub type __builtin_va_list = [ __va_list_tag ; 1usize ] ; # [ repr ( C ) ] # [ derive ( 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 , }