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

pub const ClipType_ctIntersection : ClipType = 0 ; pub const ClipType_ctUnion : ClipType = 1 ; pub const ClipType_ctDifference : ClipType = 2 ; pub const ClipType_ctXor : ClipType = 3 ; pub type ClipType = u32 ; pub const PolyType_ptSubject : PolyType = 0 ; pub const PolyType_ptClip : PolyType = 1 ; pub type PolyType = u32 ; pub const PolyFillType_pftEvenOdd : PolyFillType = 0 ; pub const PolyFillType_pftNonZero : PolyFillType = 1 ; pub const PolyFillType_pftPositive : PolyFillType = 2 ; pub const PolyFillType_pftNegative : PolyFillType = 3 ; pub type PolyFillType = u32 ; pub type cInt = :: std :: os :: raw :: c_longlong ; pub type Vertice = [ cInt ; 2usize ] ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct Path { pub vertices : * mut Vertice , pub vertices_count : usize , pub closed : :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_Path ( ) { assert_eq ! ( :: std :: mem :: size_of :: < Path > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( Path ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < Path > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( Path ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < Path > ( ) ) ) . vertices as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( Path ) , "::" , stringify ! ( vertices ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < Path > ( ) ) ) . vertices_count as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( Path ) , "::" , stringify ! ( vertices_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < Path > ( ) ) ) . closed as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( Path ) , "::" , stringify ! ( closed ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct Polygon { pub paths : * mut Path , pub paths_count : usize , pub type_ : PolyType , } # [ test ] fn bindgen_test_layout_Polygon ( ) { assert_eq ! ( :: std :: mem :: size_of :: < Polygon > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( Polygon ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < Polygon > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( Polygon ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < Polygon > ( ) ) ) . paths as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( Polygon ) , "::" , stringify ! ( paths ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < Polygon > ( ) ) ) . paths_count as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( Polygon ) , "::" , stringify ! ( paths_count ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < Polygon > ( ) ) ) . type_ as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( Polygon ) , "::" , stringify ! ( type_ ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct Polygons { pub polygons : * mut Polygon , pub polygons_count : usize , } # [ test ] fn bindgen_test_layout_Polygons ( ) { assert_eq ! ( :: std :: mem :: size_of :: < Polygons > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( Polygons ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < Polygons > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( Polygons ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < Polygons > ( ) ) ) . polygons as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( Polygons ) , "::" , stringify ! ( polygons ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < Polygons > ( ) ) ) . polygons_count as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( Polygons ) , "::" , stringify ! ( polygons_count ) ) ) ; } extern "C" { pub fn execute ( clip_type : ClipType , polygons : Polygons , subject_fill_type : PolyFillType , clip_fill_type : PolyFillType ) -> Polygons ; } extern "C" { pub fn free_path ( path : Path ) ; } extern "C" { pub fn free_polygon ( polygon : Polygon ) ; } extern "C" { pub fn free_polygons ( polygons : Polygons ) ; }