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

pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2X : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __TIMESIZE : u32 = 64 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 37 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const ChangeFlagNone : u32 = 0 ; pub const ChangeFlagPath : u32 = 1 ; pub const ChangeFlagPaint : u32 = 16 ; pub const ChangeFlagAll : u32 = 0 ; pub type wchar_t = :: core :: ffi :: c_int ; # [repr (C)] # [repr (align (16))] # [derive (Debug , Copy , Clone)] pub struct max_align_t { pub __clang_max_align_nonce1 : :: core :: ffi :: c_longlong , pub __bindgen_padding_0 : u64 , pub __clang_max_align_nonce2 : u128 , } # [test] fn bindgen_test_layout_max_align_t () { const UNINIT : :: core :: mem :: MaybeUninit < max_align_t > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < max_align_t > () , 32usize , concat ! ("Size of: " , stringify ! (max_align_t))) ; assert_eq ! (:: core :: mem :: align_of :: < max_align_t > () , 16usize , concat ! ("Alignment of " , stringify ! (max_align_t))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce1) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce1))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . __clang_max_align_nonce2) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (max_align_t) , "::" , stringify ! (__clang_max_align_nonce2))) ; } pub type __u_char = :: core :: ffi :: c_uchar ; pub type __u_short = :: core :: ffi :: c_ushort ; pub type __u_int = :: core :: ffi :: c_uint ; pub type __u_long = :: core :: ffi :: c_ulong ; pub type __int8_t = :: core :: ffi :: c_schar ; pub type __uint8_t = :: core :: ffi :: c_uchar ; pub type __int16_t = :: core :: ffi :: c_short ; pub type __uint16_t = :: core :: ffi :: c_ushort ; pub type __int32_t = :: core :: ffi :: c_int ; pub type __uint32_t = :: core :: ffi :: c_uint ; pub type __int64_t = :: core :: ffi :: c_long ; pub type __uint64_t = :: core :: ffi :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: core :: ffi :: c_long ; pub type __u_quad_t = :: core :: ffi :: c_ulong ; pub type __intmax_t = :: core :: ffi :: c_long ; pub type __uintmax_t = :: core :: ffi :: c_ulong ; pub type __dev_t = :: core :: ffi :: c_ulong ; pub type __uid_t = :: core :: ffi :: c_uint ; pub type __gid_t = :: core :: ffi :: c_uint ; pub type __ino_t = :: core :: ffi :: c_ulong ; pub type __ino64_t = :: core :: ffi :: c_ulong ; pub type __mode_t = :: core :: ffi :: c_uint ; pub type __nlink_t = :: core :: ffi :: c_ulong ; pub type __off_t = :: core :: ffi :: c_long ; pub type __off64_t = :: core :: ffi :: c_long ; pub type __pid_t = :: core :: ffi :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: core :: ffi :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: core :: mem :: MaybeUninit < __fsid_t > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: core :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: core :: ffi :: c_long ; pub type __rlim_t = :: core :: ffi :: c_ulong ; pub type __rlim64_t = :: core :: ffi :: c_ulong ; pub type __id_t = :: core :: ffi :: c_uint ; pub type __time_t = :: core :: ffi :: c_long ; pub type __useconds_t = :: core :: ffi :: c_uint ; pub type __suseconds_t = :: core :: ffi :: c_long ; pub type __suseconds64_t = :: core :: ffi :: c_long ; pub type __daddr_t = :: core :: ffi :: c_int ; pub type __key_t = :: core :: ffi :: c_int ; pub type __clockid_t = :: core :: ffi :: c_int ; pub type __timer_t = * mut :: core :: ffi :: c_void ; pub type __blksize_t = :: core :: ffi :: c_long ; pub type __blkcnt_t = :: core :: ffi :: c_long ; pub type __blkcnt64_t = :: core :: ffi :: c_long ; pub type __fsblkcnt_t = :: core :: ffi :: c_ulong ; pub type __fsblkcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt_t = :: core :: ffi :: c_ulong ; pub type __fsfilcnt64_t = :: core :: ffi :: c_ulong ; pub type __fsword_t = :: core :: ffi :: c_long ; pub type __ssize_t = :: core :: ffi :: c_long ; pub type __syscall_slong_t = :: core :: ffi :: c_long ; pub type __syscall_ulong_t = :: core :: ffi :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: core :: ffi :: c_char ; pub type __intptr_t = :: core :: ffi :: c_long ; pub type __socklen_t = :: core :: ffi :: c_uint ; pub type __sig_atomic_t = :: core :: ffi :: c_int ; pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: core :: ffi :: c_schar ; pub type int_fast16_t = :: core :: ffi :: c_long ; pub type int_fast32_t = :: core :: ffi :: c_long ; pub type int_fast64_t = :: core :: ffi :: c_long ; pub type uint_fast8_t = :: core :: ffi :: c_uchar ; pub type uint_fast16_t = :: core :: ffi :: c_ulong ; pub type uint_fast32_t = :: core :: ffi :: c_ulong ; pub type uint_fast64_t = :: core :: ffi :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; impl LOTBrushType { pub const BrushSolid : LOTBrushType = LOTBrushType (0) ; } impl LOTBrushType { pub const BrushGradient : LOTBrushType = LOTBrushType (1) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LOTBrushType (pub :: core :: ffi :: c_uint) ; impl LOTFillRule { pub const FillEvenOdd : LOTFillRule = LOTFillRule (0) ; } impl LOTFillRule { pub const FillWinding : LOTFillRule = LOTFillRule (1) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LOTFillRule (pub :: core :: ffi :: c_uint) ; impl LOTJoinStyle { pub const JoinMiter : LOTJoinStyle = LOTJoinStyle (0) ; } impl LOTJoinStyle { pub const JoinBevel : LOTJoinStyle = LOTJoinStyle (1) ; } impl LOTJoinStyle { pub const JoinRound : LOTJoinStyle = LOTJoinStyle (2) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LOTJoinStyle (pub :: core :: ffi :: c_uint) ; impl LOTCapStyle { pub const CapFlat : LOTCapStyle = LOTCapStyle (0) ; } impl LOTCapStyle { pub const CapSquare : LOTCapStyle = LOTCapStyle (1) ; } impl LOTCapStyle { pub const CapRound : LOTCapStyle = LOTCapStyle (2) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LOTCapStyle (pub :: core :: ffi :: c_uint) ; impl LOTGradientType { pub const GradientLinear : LOTGradientType = LOTGradientType (0) ; } impl LOTGradientType { pub const GradientRadial : LOTGradientType = LOTGradientType (1) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LOTGradientType (pub :: core :: ffi :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTGradientStop { pub pos : f32 , pub r : :: core :: ffi :: c_uchar , pub g : :: core :: ffi :: c_uchar , pub b : :: core :: ffi :: c_uchar , pub a : :: core :: ffi :: c_uchar , } # [test] fn bindgen_test_layout_LOTGradientStop () { const UNINIT : :: core :: mem :: MaybeUninit < LOTGradientStop > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTGradientStop > () , 8usize , concat ! ("Size of: " , stringify ! (LOTGradientStop))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTGradientStop > () , 4usize , concat ! ("Alignment of " , stringify ! (LOTGradientStop))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTGradientStop) , "::" , stringify ! (pos))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . r) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (LOTGradientStop) , "::" , stringify ! (r))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . g) as usize - ptr as usize } , 5usize , concat ! ("Offset of field: " , stringify ! (LOTGradientStop) , "::" , stringify ! (g))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . b) as usize - ptr as usize } , 6usize , concat ! ("Offset of field: " , stringify ! (LOTGradientStop) , "::" , stringify ! (b))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . a) as usize - ptr as usize } , 7usize , concat ! ("Offset of field: " , stringify ! (LOTGradientStop) , "::" , stringify ! (a))) ; } impl LOTMaskType { pub const MaskAdd : LOTMaskType = LOTMaskType (0) ; } impl LOTMaskType { pub const MaskSubstract : LOTMaskType = LOTMaskType (1) ; } impl LOTMaskType { pub const MaskIntersect : LOTMaskType = LOTMaskType (2) ; } impl LOTMaskType { pub const MaskDifference : LOTMaskType = LOTMaskType (3) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LOTMaskType (pub :: core :: ffi :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTMask { pub mPath : LOTMask__bindgen_ty_1 , pub mMode : LOTMaskType , pub mAlpha : :: core :: ffi :: c_uchar , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTMask__bindgen_ty_1 { pub ptPtr : * const f32 , pub ptCount : usize , pub elmPtr : * const :: core :: ffi :: c_char , pub elmCount : usize , } # [test] fn bindgen_test_layout_LOTMask__bindgen_ty_1 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTMask__bindgen_ty_1 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTMask__bindgen_ty_1 > () , 32usize , concat ! ("Size of: " , stringify ! (LOTMask__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTMask__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTMask__bindgen_ty_1))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . ptPtr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTMask__bindgen_ty_1) , "::" , stringify ! (ptPtr))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . ptCount) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTMask__bindgen_ty_1) , "::" , stringify ! (ptCount))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . elmPtr) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (LOTMask__bindgen_ty_1) , "::" , stringify ! (elmPtr))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . elmCount) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (LOTMask__bindgen_ty_1) , "::" , stringify ! (elmCount))) ; } # [test] fn bindgen_test_layout_LOTMask () { const UNINIT : :: core :: mem :: MaybeUninit < LOTMask > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTMask > () , 40usize , concat ! ("Size of: " , stringify ! (LOTMask))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTMask > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTMask))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mPath) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTMask) , "::" , stringify ! (mPath))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mMode) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (LOTMask) , "::" , stringify ! (mMode))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mAlpha) as usize - ptr as usize } , 36usize , concat ! ("Offset of field: " , stringify ! (LOTMask) , "::" , stringify ! (mAlpha))) ; } impl LOTMatteType { pub const MatteNone : LOTMatteType = LOTMatteType (0) ; } impl LOTMatteType { pub const MatteAlpha : LOTMatteType = LOTMatteType (1) ; } impl LOTMatteType { pub const MatteAlphaInv : LOTMatteType = LOTMatteType (2) ; } impl LOTMatteType { pub const MatteLuma : LOTMatteType = LOTMatteType (3) ; } impl LOTMatteType { pub const MatteLumaInv : LOTMatteType = LOTMatteType (4) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct LOTMatteType (pub :: core :: ffi :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTMarker { pub name : * mut :: core :: ffi :: c_char , pub startframe : usize , pub endframe : usize , } # [test] fn bindgen_test_layout_LOTMarker () { const UNINIT : :: core :: mem :: MaybeUninit < LOTMarker > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTMarker > () , 24usize , concat ! ("Size of: " , stringify ! (LOTMarker))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTMarker > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTMarker))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTMarker) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . startframe) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTMarker) , "::" , stringify ! (startframe))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . endframe) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (LOTMarker) , "::" , stringify ! (endframe))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTMarkerList { pub ptr : * mut LOTMarker , pub size : usize , } # [test] fn bindgen_test_layout_LOTMarkerList () { const UNINIT : :: core :: mem :: MaybeUninit < LOTMarkerList > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTMarkerList > () , 16usize , concat ! ("Size of: " , stringify ! (LOTMarkerList))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTMarkerList > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTMarkerList))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTMarkerList) , "::" , stringify ! (ptr))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTMarkerList) , "::" , stringify ! (size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTNode { pub mPath : LOTNode__bindgen_ty_1 , pub mColor : LOTNode__bindgen_ty_2 , pub mStroke : LOTNode__bindgen_ty_3 , pub mGradient : LOTNode__bindgen_ty_4 , pub mImageInfo : LOTNode__bindgen_ty_5 , pub mFlag : :: core :: ffi :: c_int , pub mBrushType : LOTBrushType , pub mFillRule : LOTFillRule , pub keypath : * const :: core :: ffi :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTNode__bindgen_ty_1 { pub ptPtr : * const f32 , pub ptCount : usize , pub elmPtr : * const :: core :: ffi :: c_char , pub elmCount : usize , } # [test] fn bindgen_test_layout_LOTNode__bindgen_ty_1 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTNode__bindgen_ty_1 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTNode__bindgen_ty_1 > () , 32usize , concat ! ("Size of: " , stringify ! (LOTNode__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTNode__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTNode__bindgen_ty_1))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . ptPtr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_1) , "::" , stringify ! (ptPtr))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . ptCount) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_1) , "::" , stringify ! (ptCount))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . elmPtr) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_1) , "::" , stringify ! (elmPtr))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . elmCount) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_1) , "::" , stringify ! (elmCount))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTNode__bindgen_ty_2 { pub r : :: core :: ffi :: c_uchar , pub g : :: core :: ffi :: c_uchar , pub b : :: core :: ffi :: c_uchar , pub a : :: core :: ffi :: c_uchar , } # [test] fn bindgen_test_layout_LOTNode__bindgen_ty_2 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTNode__bindgen_ty_2 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTNode__bindgen_ty_2 > () , 4usize , concat ! ("Size of: " , stringify ! (LOTNode__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTNode__bindgen_ty_2 > () , 1usize , concat ! ("Alignment of " , stringify ! (LOTNode__bindgen_ty_2))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . r) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_2) , "::" , stringify ! (r))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . g) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_2) , "::" , stringify ! (g))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . b) as usize - ptr as usize } , 2usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_2) , "::" , stringify ! (b))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . a) as usize - ptr as usize } , 3usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_2) , "::" , stringify ! (a))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTNode__bindgen_ty_3 { pub enable : :: core :: ffi :: c_uchar , pub width : f32 , pub cap : LOTCapStyle , pub join : LOTJoinStyle , pub miterLimit : f32 , pub dashArray : * mut f32 , pub dashArraySize : :: core :: ffi :: c_int , } # [test] fn bindgen_test_layout_LOTNode__bindgen_ty_3 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTNode__bindgen_ty_3 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTNode__bindgen_ty_3 > () , 40usize , concat ! ("Size of: " , stringify ! (LOTNode__bindgen_ty_3))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTNode__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTNode__bindgen_ty_3))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . enable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_3) , "::" , stringify ! (enable))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_3) , "::" , stringify ! (width))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . cap) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_3) , "::" , stringify ! (cap))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . join) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_3) , "::" , stringify ! (join))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . miterLimit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_3) , "::" , stringify ! (miterLimit))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . dashArray) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_3) , "::" , stringify ! (dashArray))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . dashArraySize) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_3) , "::" , stringify ! (dashArraySize))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTNode__bindgen_ty_4 { pub type_ : LOTGradientType , pub stopPtr : * mut LOTGradientStop , pub stopCount : usize , pub start : LOTNode__bindgen_ty_4__bindgen_ty_1 , pub end : LOTNode__bindgen_ty_4__bindgen_ty_1 , pub center : LOTNode__bindgen_ty_4__bindgen_ty_1 , pub focal : LOTNode__bindgen_ty_4__bindgen_ty_1 , pub cradius : f32 , pub fradius : f32 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTNode__bindgen_ty_4__bindgen_ty_1 { pub x : f32 , pub y : f32 , } # [test] fn bindgen_test_layout_LOTNode__bindgen_ty_4__bindgen_ty_1 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTNode__bindgen_ty_4__bindgen_ty_1 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTNode__bindgen_ty_4__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (LOTNode__bindgen_ty_4__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTNode__bindgen_ty_4__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (LOTNode__bindgen_ty_4__bindgen_ty_1))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_4__bindgen_ty_1) , "::" , stringify ! (x))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . y) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_4__bindgen_ty_1) , "::" , stringify ! (y))) ; } # [test] fn bindgen_test_layout_LOTNode__bindgen_ty_4 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTNode__bindgen_ty_4 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTNode__bindgen_ty_4 > () , 64usize , concat ! ("Size of: " , stringify ! (LOTNode__bindgen_ty_4))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTNode__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTNode__bindgen_ty_4))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . type_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_4) , "::" , stringify ! (type_))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . stopPtr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_4) , "::" , stringify ! (stopPtr))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . stopCount) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_4) , "::" , stringify ! (stopCount))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . start) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_4) , "::" , stringify ! (start))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . end) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_4) , "::" , stringify ! (end))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . center) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_4) , "::" , stringify ! (center))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . focal) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_4) , "::" , stringify ! (focal))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . cradius) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_4) , "::" , stringify ! (cradius))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . fradius) as usize - ptr as usize } , 60usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_4) , "::" , stringify ! (fradius))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTNode__bindgen_ty_5 { pub data : * mut :: core :: ffi :: c_uchar , pub width : usize , pub height : usize , pub mAlpha : :: core :: ffi :: c_uchar , pub mMatrix : LOTNode__bindgen_ty_5__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTNode__bindgen_ty_5__bindgen_ty_1 { pub m11 : f32 , pub m12 : f32 , pub m13 : f32 , pub m21 : f32 , pub m22 : f32 , pub m23 : f32 , pub m31 : f32 , pub m32 : f32 , pub m33 : f32 , } # [test] fn bindgen_test_layout_LOTNode__bindgen_ty_5__bindgen_ty_1 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTNode__bindgen_ty_5__bindgen_ty_1 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTNode__bindgen_ty_5__bindgen_ty_1 > () , 36usize , concat ! ("Size of: " , stringify ! (LOTNode__bindgen_ty_5__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTNode__bindgen_ty_5__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (LOTNode__bindgen_ty_5__bindgen_ty_1))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . m11) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5__bindgen_ty_1) , "::" , stringify ! (m11))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . m12) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5__bindgen_ty_1) , "::" , stringify ! (m12))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . m13) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5__bindgen_ty_1) , "::" , stringify ! (m13))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . m21) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5__bindgen_ty_1) , "::" , stringify ! (m21))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . m22) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5__bindgen_ty_1) , "::" , stringify ! (m22))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . m23) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5__bindgen_ty_1) , "::" , stringify ! (m23))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . m31) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5__bindgen_ty_1) , "::" , stringify ! (m31))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . m32) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5__bindgen_ty_1) , "::" , stringify ! (m32))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . m33) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5__bindgen_ty_1) , "::" , stringify ! (m33))) ; } # [test] fn bindgen_test_layout_LOTNode__bindgen_ty_5 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTNode__bindgen_ty_5 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTNode__bindgen_ty_5 > () , 64usize , concat ! ("Size of: " , stringify ! (LOTNode__bindgen_ty_5))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTNode__bindgen_ty_5 > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTNode__bindgen_ty_5))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5) , "::" , stringify ! (data))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . width) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5) , "::" , stringify ! (width))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . height) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5) , "::" , stringify ! (height))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mAlpha) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5) , "::" , stringify ! (mAlpha))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mMatrix) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (LOTNode__bindgen_ty_5) , "::" , stringify ! (mMatrix))) ; } # [test] fn bindgen_test_layout_LOTNode () { const UNINIT : :: core :: mem :: MaybeUninit < LOTNode > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTNode > () , 232usize , concat ! ("Size of: " , stringify ! (LOTNode))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTNode > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTNode))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mPath) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTNode) , "::" , stringify ! (mPath))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mColor) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (LOTNode) , "::" , stringify ! (mColor))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mStroke) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (LOTNode) , "::" , stringify ! (mStroke))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mGradient) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (LOTNode) , "::" , stringify ! (mGradient))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mImageInfo) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (LOTNode) , "::" , stringify ! (mImageInfo))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mFlag) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (LOTNode) , "::" , stringify ! (mFlag))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mBrushType) as usize - ptr as usize } , 212usize , concat ! ("Offset of field: " , stringify ! (LOTNode) , "::" , stringify ! (mBrushType))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mFillRule) as usize - ptr as usize } , 216usize , concat ! ("Offset of field: " , stringify ! (LOTNode) , "::" , stringify ! (mFillRule))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . keypath) as usize - ptr as usize } , 224usize , concat ! ("Offset of field: " , stringify ! (LOTNode) , "::" , stringify ! (keypath))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTLayerNode { pub mMaskList : LOTLayerNode__bindgen_ty_1 , pub mClipPath : LOTLayerNode__bindgen_ty_2 , pub mLayerList : LOTLayerNode__bindgen_ty_3 , pub mNodeList : LOTLayerNode__bindgen_ty_4 , pub mMatte : LOTMatteType , pub mVisible : :: core :: ffi :: c_int , pub mAlpha : :: core :: ffi :: c_uchar , pub keypath : * const :: core :: ffi :: c_char , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTLayerNode__bindgen_ty_1 { pub ptr : * mut LOTMask , pub size : usize , } # [test] fn bindgen_test_layout_LOTLayerNode__bindgen_ty_1 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTLayerNode__bindgen_ty_1 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTLayerNode__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (LOTLayerNode__bindgen_ty_1))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTLayerNode__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTLayerNode__bindgen_ty_1))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode__bindgen_ty_1) , "::" , stringify ! (ptr))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode__bindgen_ty_1) , "::" , stringify ! (size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTLayerNode__bindgen_ty_2 { pub ptPtr : * const f32 , pub ptCount : usize , pub elmPtr : * const :: core :: ffi :: c_char , pub elmCount : usize , } # [test] fn bindgen_test_layout_LOTLayerNode__bindgen_ty_2 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTLayerNode__bindgen_ty_2 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTLayerNode__bindgen_ty_2 > () , 32usize , concat ! ("Size of: " , stringify ! (LOTLayerNode__bindgen_ty_2))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTLayerNode__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTLayerNode__bindgen_ty_2))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . ptPtr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode__bindgen_ty_2) , "::" , stringify ! (ptPtr))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . ptCount) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode__bindgen_ty_2) , "::" , stringify ! (ptCount))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . elmPtr) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode__bindgen_ty_2) , "::" , stringify ! (elmPtr))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . elmCount) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode__bindgen_ty_2) , "::" , stringify ! (elmCount))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTLayerNode__bindgen_ty_3 { pub ptr : * mut * mut LOTLayerNode , pub size : usize , } # [test] fn bindgen_test_layout_LOTLayerNode__bindgen_ty_3 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTLayerNode__bindgen_ty_3 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTLayerNode__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (LOTLayerNode__bindgen_ty_3))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTLayerNode__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTLayerNode__bindgen_ty_3))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode__bindgen_ty_3) , "::" , stringify ! (ptr))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode__bindgen_ty_3) , "::" , stringify ! (size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct LOTLayerNode__bindgen_ty_4 { pub ptr : * mut * mut LOTNode , pub size : usize , } # [test] fn bindgen_test_layout_LOTLayerNode__bindgen_ty_4 () { const UNINIT : :: core :: mem :: MaybeUninit < LOTLayerNode__bindgen_ty_4 > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTLayerNode__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (LOTLayerNode__bindgen_ty_4))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTLayerNode__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTLayerNode__bindgen_ty_4))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode__bindgen_ty_4) , "::" , stringify ! (ptr))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode__bindgen_ty_4) , "::" , stringify ! (size))) ; } # [test] fn bindgen_test_layout_LOTLayerNode () { const UNINIT : :: core :: mem :: MaybeUninit < LOTLayerNode > = :: core :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: core :: mem :: size_of :: < LOTLayerNode > () , 104usize , concat ! ("Size of: " , stringify ! (LOTLayerNode))) ; assert_eq ! (:: core :: mem :: align_of :: < LOTLayerNode > () , 8usize , concat ! ("Alignment of " , stringify ! (LOTLayerNode))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mMaskList) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode) , "::" , stringify ! (mMaskList))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mClipPath) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode) , "::" , stringify ! (mClipPath))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mLayerList) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode) , "::" , stringify ! (mLayerList))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mNodeList) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode) , "::" , stringify ! (mNodeList))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mMatte) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode) , "::" , stringify ! (mMatte))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mVisible) as usize - ptr as usize } , 84usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode) , "::" , stringify ! (mVisible))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . mAlpha) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode) , "::" , stringify ! (mAlpha))) ; assert_eq ! (unsafe { :: core :: ptr :: addr_of ! ((* ptr) . keypath) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (LOTLayerNode) , "::" , stringify ! (keypath))) ; } impl Lottie_Animation_Property { pub const LOTTIE_ANIMATION_PROPERTY_FILLCOLOR : Lottie_Animation_Property = Lottie_Animation_Property (0) ; } impl Lottie_Animation_Property { pub const LOTTIE_ANIMATION_PROPERTY_FILLOPACITY : Lottie_Animation_Property = Lottie_Animation_Property (1) ; } impl Lottie_Animation_Property { pub const LOTTIE_ANIMATION_PROPERTY_STROKECOLOR : Lottie_Animation_Property = Lottie_Animation_Property (2) ; } impl Lottie_Animation_Property { pub const LOTTIE_ANIMATION_PROPERTY_STROKEOPACITY : Lottie_Animation_Property = Lottie_Animation_Property (3) ; } impl Lottie_Animation_Property { pub const LOTTIE_ANIMATION_PROPERTY_STROKEWIDTH : Lottie_Animation_Property = Lottie_Animation_Property (4) ; } impl Lottie_Animation_Property { pub const LOTTIE_ANIMATION_PROPERTY_TR_ANCHOR : Lottie_Animation_Property = Lottie_Animation_Property (5) ; } impl Lottie_Animation_Property { pub const LOTTIE_ANIMATION_PROPERTY_TR_POSITION : Lottie_Animation_Property = Lottie_Animation_Property (6) ; } impl Lottie_Animation_Property { pub const LOTTIE_ANIMATION_PROPERTY_TR_SCALE : Lottie_Animation_Property = Lottie_Animation_Property (7) ; } impl Lottie_Animation_Property { pub const LOTTIE_ANIMATION_PROPERTY_TR_ROTATION : Lottie_Animation_Property = Lottie_Animation_Property (8) ; } impl Lottie_Animation_Property { pub const LOTTIE_ANIMATION_PROPERTY_TR_OPACITY : Lottie_Animation_Property = Lottie_Animation_Property (9) ; } # [repr (transparent)] # [derive (Debug , Copy , Clone , Hash , PartialEq , Eq)] pub struct Lottie_Animation_Property (pub :: core :: ffi :: c_uint) ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct Lottie_Animation_S { _unused : [u8 ; 0] , } pub type Lottie_Animation = Lottie_Animation_S ; extern "C" { pub fn lottie_animation_from_file (path : * const :: core :: ffi :: c_char) -> * mut Lottie_Animation ; } extern "C" { pub fn lottie_animation_from_data (data : * const :: core :: ffi :: c_char , key : * const :: core :: ffi :: c_char , resource_path : * const :: core :: ffi :: c_char) -> * mut Lottie_Animation ; } extern "C" { pub fn lottie_animation_destroy (animation : * mut Lottie_Animation) ; } extern "C" { pub fn lottie_animation_get_size (animation : * const Lottie_Animation , width : * mut usize , height : * mut usize) ; } extern "C" { pub fn lottie_animation_get_duration (animation : * const Lottie_Animation) -> f64 ; } extern "C" { pub fn lottie_animation_get_totalframe (animation : * const Lottie_Animation) -> usize ; } extern "C" { pub fn lottie_animation_get_framerate (animation : * const Lottie_Animation) -> f64 ; } extern "C" { pub fn lottie_animation_render_tree (animation : * mut Lottie_Animation , frame_num : usize , width : usize , height : usize) -> * const LOTLayerNode ; } extern "C" { pub fn lottie_animation_get_frame_at_pos (animation : * const Lottie_Animation , pos : f32) -> usize ; } extern "C" { pub fn lottie_animation_render (animation : * mut Lottie_Animation , frame_num : usize , buffer : * mut u32 , width : usize , height : usize , bytes_per_line : usize) ; } extern "C" { pub fn lottie_animation_render_async (animation : * mut Lottie_Animation , frame_num : usize , buffer : * mut u32 , width : usize , height : usize , bytes_per_line : usize) ; } extern "C" { pub fn lottie_animation_render_flush (animation : * mut Lottie_Animation) -> * mut u32 ; } extern "C" { pub fn lottie_animation_property_override (animation : * mut Lottie_Animation , type_ : Lottie_Animation_Property , keypath : * const :: core :: ffi :: c_char , ...) ; } extern "C" { pub fn lottie_animation_get_markerlist (animation : * mut Lottie_Animation) -> * const LOTMarkerList ; }