1- /* automatically generated by rust-bindgen 0.71 .1 */
1+ /* automatically generated by rust-bindgen 0.72 .1 */
22
33#[ repr( C ) ]
44#[ derive( Debug , Copy , Clone ) ]
5- pub struct ImGuiContext {
6- _unused : [ u8 ; 0 ] ,
7- }
8- #[ repr( C ) ]
9- #[ derive( Debug , Copy , Clone ) ]
10- pub struct ImVec2 {
5+ pub struct ImVec2_c {
116 pub x : f32 ,
127 pub y : f32 ,
138}
149#[ allow( clippy:: unnecessary_operation, clippy:: identity_op) ]
1510const _: ( ) = {
16- [ "Size of ImVec2 " ] [ :: std:: mem:: size_of :: < ImVec2 > ( ) - 8usize ] ;
17- [ "Alignment of ImVec2 " ] [ :: std:: mem:: align_of :: < ImVec2 > ( ) - 4usize ] ;
18- [ "Offset of field: ImVec2 ::x" ] [ :: std:: mem:: offset_of!( ImVec2 , x) - 0usize ] ;
19- [ "Offset of field: ImVec2 ::y" ] [ :: std:: mem:: offset_of!( ImVec2 , y) - 4usize ] ;
11+ [ "Size of ImVec2_c " ] [ :: std:: mem:: size_of :: < ImVec2_c > ( ) - 8usize ] ;
12+ [ "Alignment of ImVec2_c " ] [ :: std:: mem:: align_of :: < ImVec2_c > ( ) - 4usize ] ;
13+ [ "Offset of field: ImVec2_c ::x" ] [ :: std:: mem:: offset_of!( ImVec2_c , x) - 0usize ] ;
14+ [ "Offset of field: ImVec2_c ::y" ] [ :: std:: mem:: offset_of!( ImVec2_c , y) - 4usize ] ;
2015} ;
2116#[ repr( C ) ]
2217#[ derive( Debug , Copy , Clone ) ]
18+ pub struct ImGuiContext {
19+ _unused : [ u8 ; 0 ] ,
20+ }
21+ #[ repr( C ) ]
22+ #[ derive( Debug , Copy , Clone ) ]
2323pub struct ImNodesContext {
2424 _unused : [ u8 ; 0 ] ,
2525}
@@ -170,7 +170,7 @@ const _: () = {
170170pub struct ImNodesStyle {
171171 pub GridSpacing : f32 ,
172172 pub NodeCornerRounding : f32 ,
173- pub NodePadding : ImVec2 ,
173+ pub NodePadding : ImVec2_c ,
174174 pub NodeBorderThickness : f32 ,
175175 pub LinkThickness : f32 ,
176176 pub LinkLineSegmentsPerLength : f32 ,
@@ -181,8 +181,8 @@ pub struct ImNodesStyle {
181181 pub PinLineThickness : f32 ,
182182 pub PinHoverRadius : f32 ,
183183 pub PinOffset : f32 ,
184- pub MiniMapPadding : ImVec2 ,
185- pub MiniMapOffset : ImVec2 ,
184+ pub MiniMapPadding : ImVec2_c ,
185+ pub MiniMapOffset : ImVec2_c ,
186186 pub Flags : ImNodesStyleFlags ,
187187 pub Colors : [ :: std:: os:: raw:: c_uint ; 29usize ] ,
188188}
@@ -270,10 +270,10 @@ unsafe extern "C" {
270270 pub fn imnodes_EditorContextSet ( noname1 : * mut ImNodesEditorContext ) ;
271271}
272272unsafe extern "C" {
273- pub fn imnodes_EditorContextGetPanning ( pOut : * mut ImVec2 ) ;
273+ pub fn imnodes_EditorContextGetPanning ( ) -> ImVec2_c ;
274274}
275275unsafe extern "C" {
276- pub fn imnodes_EditorContextResetPanning ( pos : ImVec2 ) ;
276+ pub fn imnodes_EditorContextResetPanning ( pos : ImVec2_c ) ;
277277}
278278unsafe extern "C" {
279279 pub fn imnodes_EditorContextMoveToNode ( node_id : :: std:: os:: raw:: c_int ) ;
@@ -317,7 +317,7 @@ unsafe extern "C" {
317317 pub fn imnodes_PushStyleVar_Float ( style_item : ImNodesStyleVar , value : f32 ) ;
318318}
319319unsafe extern "C" {
320- pub fn imnodes_PushStyleVar_Vec2 ( style_item : ImNodesStyleVar , value : ImVec2 ) ;
320+ pub fn imnodes_PushStyleVar_Vec2 ( style_item : ImNodesStyleVar , value : ImVec2_c ) ;
321321}
322322unsafe extern "C" {
323323 pub fn imnodes_PopStyleVar ( count : :: std:: os:: raw:: c_int ) ;
@@ -329,7 +329,7 @@ unsafe extern "C" {
329329 pub fn imnodes_EndNode ( ) ;
330330}
331331unsafe extern "C" {
332- pub fn imnodes_GetNodeDimensions ( pOut : * mut ImVec2 , id : :: std:: os:: raw:: c_int ) ;
332+ pub fn imnodes_GetNodeDimensions ( id : :: std:: os:: raw:: c_int ) -> ImVec2_c ;
333333}
334334unsafe extern "C" {
335335 pub fn imnodes_BeginNodeTitleBar ( ) ;
@@ -372,22 +372,28 @@ unsafe extern "C" {
372372 pub fn imnodes_SetNodeDraggable ( node_id : :: std:: os:: raw:: c_int , draggable : bool ) ;
373373}
374374unsafe extern "C" {
375- pub fn imnodes_SetNodeScreenSpacePos ( node_id : :: std:: os:: raw:: c_int , screen_space_pos : ImVec2 ) ;
375+ pub fn imnodes_SetNodeScreenSpacePos (
376+ node_id : :: std:: os:: raw:: c_int ,
377+ screen_space_pos : ImVec2_c ,
378+ ) ;
376379}
377380unsafe extern "C" {
378- pub fn imnodes_SetNodeEditorSpacePos ( node_id : :: std:: os:: raw:: c_int , editor_space_pos : ImVec2 ) ;
381+ pub fn imnodes_SetNodeEditorSpacePos (
382+ node_id : :: std:: os:: raw:: c_int ,
383+ editor_space_pos : ImVec2_c ,
384+ ) ;
379385}
380386unsafe extern "C" {
381- pub fn imnodes_SetNodeGridSpacePos ( node_id : :: std:: os:: raw:: c_int , grid_pos : ImVec2 ) ;
387+ pub fn imnodes_SetNodeGridSpacePos ( node_id : :: std:: os:: raw:: c_int , grid_pos : ImVec2_c ) ;
382388}
383389unsafe extern "C" {
384- pub fn imnodes_GetNodeScreenSpacePos ( pOut : * mut ImVec2 , node_id : :: std:: os:: raw:: c_int ) ;
390+ pub fn imnodes_GetNodeScreenSpacePos ( node_id : :: std:: os:: raw:: c_int ) -> ImVec2_c ;
385391}
386392unsafe extern "C" {
387- pub fn imnodes_GetNodeEditorSpacePos ( pOut : * mut ImVec2 , node_id : :: std:: os:: raw:: c_int ) ;
393+ pub fn imnodes_GetNodeEditorSpacePos ( node_id : :: std:: os:: raw:: c_int ) -> ImVec2_c ;
388394}
389395unsafe extern "C" {
390- pub fn imnodes_GetNodeGridSpacePos ( pOut : * mut ImVec2 , node_id : :: std:: os:: raw:: c_int ) ;
396+ pub fn imnodes_GetNodeGridSpacePos ( node_id : :: std:: os:: raw:: c_int ) -> ImVec2_c ;
391397}
392398unsafe extern "C" {
393399 pub fn imnodes_SnapNodeToGrid ( node_id : :: std:: os:: raw:: c_int ) ;
0 commit comments