From 4d56a476b6d6998c4aae1aafb11f9ed038789d95 Mon Sep 17 00:00:00 2001 From: Lokathor Date: Fri, 27 Dec 2024 11:25:02 -0700 Subject: [PATCH] delete use of the chlorine crate --- imgui-sys/Cargo.toml | 1 - imgui-sys/src/bindings.rs | 1412 +++++++++++++++++++------------------ imgui-sys/src/lib.rs | 20 - imgui/src/input_widget.rs | 6 +- imgui/src/lib.rs | 10 +- imgui/src/string.rs | 10 +- imgui/src/text_filter.rs | 10 +- 7 files changed, 746 insertions(+), 723 deletions(-) diff --git a/imgui-sys/Cargo.toml b/imgui-sys/Cargo.toml index ace4569..3d6d7ff 100644 --- a/imgui-sys/Cargo.toml +++ b/imgui-sys/Cargo.toml @@ -26,7 +26,6 @@ exclude = [ ] [dependencies] -chlorine = "1.0.7" mint = "0.5.6" cfg-if = "1" diff --git a/imgui-sys/src/bindings.rs b/imgui-sys/src/bindings.rs index 270ecf9..131136a 100644 --- a/imgui-sys/src/bindings.rs +++ b/imgui-sys/src/bindings.rs @@ -97,64 +97,64 @@ pub struct ImFontBuilderIO { pub struct ImGuiContext { _unused: [u8; 0], } -pub type ImGuiID = cty::c_uint; -pub type ImS8 = cty::c_schar; -pub type ImU8 = cty::c_uchar; -pub type ImS16 = cty::c_short; -pub type ImU16 = cty::c_ushort; -pub type ImU32 = cty::c_uint; -pub type ImS64 = cty::c_longlong; -pub type ImGuiCol = cty::c_int; -pub type ImGuiCond = cty::c_int; -pub type ImGuiDataType = cty::c_int; -pub type ImGuiMouseButton = cty::c_int; -pub type ImGuiMouseCursor = cty::c_int; -pub type ImGuiStyleVar = cty::c_int; -pub type ImGuiTableBgTarget = cty::c_int; -pub type ImDrawFlags = cty::c_int; -pub type ImDrawListFlags = cty::c_int; -pub type ImFontAtlasFlags = cty::c_int; -pub type ImGuiBackendFlags = cty::c_int; -pub type ImGuiButtonFlags = cty::c_int; -pub type ImGuiChildFlags = cty::c_int; -pub type ImGuiColorEditFlags = cty::c_int; -pub type ImGuiConfigFlags = cty::c_int; -pub type ImGuiComboFlags = cty::c_int; -pub type ImGuiDragDropFlags = cty::c_int; -pub type ImGuiFocusedFlags = cty::c_int; -pub type ImGuiHoveredFlags = cty::c_int; -pub type ImGuiInputFlags = cty::c_int; -pub type ImGuiInputTextFlags = cty::c_int; -pub type ImGuiItemFlags = cty::c_int; -pub type ImGuiKeyChord = cty::c_int; -pub type ImGuiPopupFlags = cty::c_int; -pub type ImGuiMultiSelectFlags = cty::c_int; -pub type ImGuiSelectableFlags = cty::c_int; -pub type ImGuiSliderFlags = cty::c_int; -pub type ImGuiTabBarFlags = cty::c_int; -pub type ImGuiTabItemFlags = cty::c_int; -pub type ImGuiTableFlags = cty::c_int; -pub type ImGuiTableColumnFlags = cty::c_int; -pub type ImGuiTableRowFlags = cty::c_int; -pub type ImGuiTreeNodeFlags = cty::c_int; -pub type ImGuiViewportFlags = cty::c_int; -pub type ImGuiWindowFlags = cty::c_int; -pub type ImTextureID = *mut cty::c_void; -pub type ImDrawIdx = cty::c_ushort; -pub type ImWchar32 = cty::c_uint; -pub type ImWchar16 = cty::c_ushort; +pub type ImGuiID = core::ffi::c_uint; +pub type ImS8 = core::ffi::c_schar; +pub type ImU8 = core::ffi::c_uchar; +pub type ImS16 = core::ffi::c_short; +pub type ImU16 = core::ffi::c_ushort; +pub type ImU32 = core::ffi::c_uint; +pub type ImS64 = core::ffi::c_longlong; +pub type ImGuiCol = core::ffi::c_int; +pub type ImGuiCond = core::ffi::c_int; +pub type ImGuiDataType = core::ffi::c_int; +pub type ImGuiMouseButton = core::ffi::c_int; +pub type ImGuiMouseCursor = core::ffi::c_int; +pub type ImGuiStyleVar = core::ffi::c_int; +pub type ImGuiTableBgTarget = core::ffi::c_int; +pub type ImDrawFlags = core::ffi::c_int; +pub type ImDrawListFlags = core::ffi::c_int; +pub type ImFontAtlasFlags = core::ffi::c_int; +pub type ImGuiBackendFlags = core::ffi::c_int; +pub type ImGuiButtonFlags = core::ffi::c_int; +pub type ImGuiChildFlags = core::ffi::c_int; +pub type ImGuiColorEditFlags = core::ffi::c_int; +pub type ImGuiConfigFlags = core::ffi::c_int; +pub type ImGuiComboFlags = core::ffi::c_int; +pub type ImGuiDragDropFlags = core::ffi::c_int; +pub type ImGuiFocusedFlags = core::ffi::c_int; +pub type ImGuiHoveredFlags = core::ffi::c_int; +pub type ImGuiInputFlags = core::ffi::c_int; +pub type ImGuiInputTextFlags = core::ffi::c_int; +pub type ImGuiItemFlags = core::ffi::c_int; +pub type ImGuiKeyChord = core::ffi::c_int; +pub type ImGuiPopupFlags = core::ffi::c_int; +pub type ImGuiMultiSelectFlags = core::ffi::c_int; +pub type ImGuiSelectableFlags = core::ffi::c_int; +pub type ImGuiSliderFlags = core::ffi::c_int; +pub type ImGuiTabBarFlags = core::ffi::c_int; +pub type ImGuiTabItemFlags = core::ffi::c_int; +pub type ImGuiTableFlags = core::ffi::c_int; +pub type ImGuiTableColumnFlags = core::ffi::c_int; +pub type ImGuiTableRowFlags = core::ffi::c_int; +pub type ImGuiTreeNodeFlags = core::ffi::c_int; +pub type ImGuiViewportFlags = core::ffi::c_int; +pub type ImGuiWindowFlags = core::ffi::c_int; +pub type ImTextureID = *mut core::ffi::c_void; +pub type ImDrawIdx = core::ffi::c_ushort; +pub type ImWchar32 = core::ffi::c_uint; +pub type ImWchar16 = core::ffi::c_ushort; pub type ImWchar = ImWchar32; pub type ImGuiSelectionUserData = ImS64; pub type ImGuiInputTextCallback = ::core::option::Option< - unsafe extern "C" fn(data: *mut ImGuiInputTextCallbackData) -> cty::c_int, + unsafe extern "C" fn(data: *mut ImGuiInputTextCallbackData) -> core::ffi::c_int, >; pub type ImGuiSizeCallback = ::core::option::Option; pub type ImGuiMemAllocFunc = ::core::option::Option< - unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void, + unsafe extern "C" fn(sz: usize, user_data: *mut core::ffi::c_void) -> *mut core::ffi::c_void, >; pub type ImGuiMemFreeFunc = ::core::option::Option< - unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void), + unsafe extern "C" fn(ptr: *mut core::ffi::c_void, user_data: *mut core::ffi::c_void), >; #[repr(C)] #[derive(Debug, Default, Copy, Clone, PartialEq)] @@ -198,7 +198,7 @@ pub const ImGuiWindowFlags_Tooltip: ImGuiWindowFlags_ = 33554432; pub const ImGuiWindowFlags_Popup: ImGuiWindowFlags_ = 67108864; pub const ImGuiWindowFlags_Modal: ImGuiWindowFlags_ = 134217728; pub const ImGuiWindowFlags_ChildMenu: ImGuiWindowFlags_ = 268435456; -pub type ImGuiWindowFlags_ = cty::c_uint; +pub type ImGuiWindowFlags_ = core::ffi::c_uint; pub const ImGuiChildFlags_None: ImGuiChildFlags_ = 0; pub const ImGuiChildFlags_Borders: ImGuiChildFlags_ = 1; pub const ImGuiChildFlags_AlwaysUseWindowPadding: ImGuiChildFlags_ = 2; @@ -209,7 +209,7 @@ pub const ImGuiChildFlags_AutoResizeY: ImGuiChildFlags_ = 32; pub const ImGuiChildFlags_AlwaysAutoResize: ImGuiChildFlags_ = 64; pub const ImGuiChildFlags_FrameStyle: ImGuiChildFlags_ = 128; pub const ImGuiChildFlags_NavFlattened: ImGuiChildFlags_ = 256; -pub type ImGuiChildFlags_ = cty::c_uint; +pub type ImGuiChildFlags_ = core::ffi::c_uint; pub const ImGuiItemFlags_None: ImGuiItemFlags_ = 0; pub const ImGuiItemFlags_NoTabStop: ImGuiItemFlags_ = 1; pub const ImGuiItemFlags_NoNav: ImGuiItemFlags_ = 2; @@ -217,7 +217,7 @@ pub const ImGuiItemFlags_NoNavDefaultFocus: ImGuiItemFlags_ = 4; pub const ImGuiItemFlags_ButtonRepeat: ImGuiItemFlags_ = 8; pub const ImGuiItemFlags_AutoClosePopups: ImGuiItemFlags_ = 16; pub const ImGuiItemFlags_AllowDuplicateId: ImGuiItemFlags_ = 32; -pub type ImGuiItemFlags_ = cty::c_uint; +pub type ImGuiItemFlags_ = core::ffi::c_uint; pub const ImGuiInputTextFlags_None: ImGuiInputTextFlags_ = 0; pub const ImGuiInputTextFlags_CharsDecimal: ImGuiInputTextFlags_ = 1; pub const ImGuiInputTextFlags_CharsHexadecimal: ImGuiInputTextFlags_ = 2; @@ -242,7 +242,7 @@ pub const ImGuiInputTextFlags_CallbackAlways: ImGuiInputTextFlags_ = 524288; pub const ImGuiInputTextFlags_CallbackCharFilter: ImGuiInputTextFlags_ = 1048576; pub const ImGuiInputTextFlags_CallbackResize: ImGuiInputTextFlags_ = 2097152; pub const ImGuiInputTextFlags_CallbackEdit: ImGuiInputTextFlags_ = 4194304; -pub type ImGuiInputTextFlags_ = cty::c_uint; +pub type ImGuiInputTextFlags_ = core::ffi::c_uint; pub const ImGuiTreeNodeFlags_None: ImGuiTreeNodeFlags_ = 0; pub const ImGuiTreeNodeFlags_Selected: ImGuiTreeNodeFlags_ = 1; pub const ImGuiTreeNodeFlags_Framed: ImGuiTreeNodeFlags_ = 2; @@ -261,7 +261,7 @@ pub const ImGuiTreeNodeFlags_SpanTextWidth: ImGuiTreeNodeFlags_ = 8192; pub const ImGuiTreeNodeFlags_SpanAllColumns: ImGuiTreeNodeFlags_ = 16384; pub const ImGuiTreeNodeFlags_NavLeftJumpsBackHere: ImGuiTreeNodeFlags_ = 32768; pub const ImGuiTreeNodeFlags_CollapsingHeader: ImGuiTreeNodeFlags_ = 26; -pub type ImGuiTreeNodeFlags_ = cty::c_uint; +pub type ImGuiTreeNodeFlags_ = core::ffi::c_uint; pub const ImGuiPopupFlags_None: ImGuiPopupFlags_ = 0; pub const ImGuiPopupFlags_MouseButtonLeft: ImGuiPopupFlags_ = 0; pub const ImGuiPopupFlags_MouseButtonRight: ImGuiPopupFlags_ = 1; @@ -274,7 +274,7 @@ pub const ImGuiPopupFlags_NoOpenOverItems: ImGuiPopupFlags_ = 256; pub const ImGuiPopupFlags_AnyPopupId: ImGuiPopupFlags_ = 1024; pub const ImGuiPopupFlags_AnyPopupLevel: ImGuiPopupFlags_ = 2048; pub const ImGuiPopupFlags_AnyPopup: ImGuiPopupFlags_ = 3072; -pub type ImGuiPopupFlags_ = cty::c_uint; +pub type ImGuiPopupFlags_ = core::ffi::c_uint; pub const ImGuiSelectableFlags_None: ImGuiSelectableFlags_ = 0; pub const ImGuiSelectableFlags_NoAutoClosePopups: ImGuiSelectableFlags_ = 1; pub const ImGuiSelectableFlags_SpanAllColumns: ImGuiSelectableFlags_ = 2; @@ -282,7 +282,7 @@ pub const ImGuiSelectableFlags_AllowDoubleClick: ImGuiSelectableFlags_ = 4; pub const ImGuiSelectableFlags_Disabled: ImGuiSelectableFlags_ = 8; pub const ImGuiSelectableFlags_AllowOverlap: ImGuiSelectableFlags_ = 16; pub const ImGuiSelectableFlags_Highlight: ImGuiSelectableFlags_ = 32; -pub type ImGuiSelectableFlags_ = cty::c_uint; +pub type ImGuiSelectableFlags_ = core::ffi::c_uint; pub const ImGuiComboFlags_None: ImGuiComboFlags_ = 0; pub const ImGuiComboFlags_PopupAlignLeft: ImGuiComboFlags_ = 1; pub const ImGuiComboFlags_HeightSmall: ImGuiComboFlags_ = 2; @@ -293,7 +293,7 @@ pub const ImGuiComboFlags_NoArrowButton: ImGuiComboFlags_ = 32; pub const ImGuiComboFlags_NoPreview: ImGuiComboFlags_ = 64; pub const ImGuiComboFlags_WidthFitPreview: ImGuiComboFlags_ = 128; pub const ImGuiComboFlags_HeightMask_: ImGuiComboFlags_ = 30; -pub type ImGuiComboFlags_ = cty::c_uint; +pub type ImGuiComboFlags_ = core::ffi::c_uint; pub const ImGuiTabBarFlags_None: ImGuiTabBarFlags_ = 0; pub const ImGuiTabBarFlags_Reorderable: ImGuiTabBarFlags_ = 1; pub const ImGuiTabBarFlags_AutoSelectNewTabs: ImGuiTabBarFlags_ = 2; @@ -306,7 +306,7 @@ pub const ImGuiTabBarFlags_FittingPolicyResizeDown: ImGuiTabBarFlags_ = 128; pub const ImGuiTabBarFlags_FittingPolicyScroll: ImGuiTabBarFlags_ = 256; pub const ImGuiTabBarFlags_FittingPolicyMask_: ImGuiTabBarFlags_ = 384; pub const ImGuiTabBarFlags_FittingPolicyDefault_: ImGuiTabBarFlags_ = 128; -pub type ImGuiTabBarFlags_ = cty::c_uint; +pub type ImGuiTabBarFlags_ = core::ffi::c_uint; pub const ImGuiTabItemFlags_None: ImGuiTabItemFlags_ = 0; pub const ImGuiTabItemFlags_UnsavedDocument: ImGuiTabItemFlags_ = 1; pub const ImGuiTabItemFlags_SetSelected: ImGuiTabItemFlags_ = 2; @@ -317,14 +317,14 @@ pub const ImGuiTabItemFlags_NoReorder: ImGuiTabItemFlags_ = 32; pub const ImGuiTabItemFlags_Leading: ImGuiTabItemFlags_ = 64; pub const ImGuiTabItemFlags_Trailing: ImGuiTabItemFlags_ = 128; pub const ImGuiTabItemFlags_NoAssumedClosure: ImGuiTabItemFlags_ = 256; -pub type ImGuiTabItemFlags_ = cty::c_uint; +pub type ImGuiTabItemFlags_ = core::ffi::c_uint; pub const ImGuiFocusedFlags_None: ImGuiFocusedFlags_ = 0; pub const ImGuiFocusedFlags_ChildWindows: ImGuiFocusedFlags_ = 1; pub const ImGuiFocusedFlags_RootWindow: ImGuiFocusedFlags_ = 2; pub const ImGuiFocusedFlags_AnyWindow: ImGuiFocusedFlags_ = 4; pub const ImGuiFocusedFlags_NoPopupHierarchy: ImGuiFocusedFlags_ = 8; pub const ImGuiFocusedFlags_RootAndChildWindows: ImGuiFocusedFlags_ = 3; -pub type ImGuiFocusedFlags_ = cty::c_uint; +pub type ImGuiFocusedFlags_ = core::ffi::c_uint; pub const ImGuiHoveredFlags_None: ImGuiHoveredFlags_ = 0; pub const ImGuiHoveredFlags_ChildWindows: ImGuiHoveredFlags_ = 1; pub const ImGuiHoveredFlags_RootWindow: ImGuiHoveredFlags_ = 2; @@ -345,7 +345,7 @@ pub const ImGuiHoveredFlags_DelayNone: ImGuiHoveredFlags_ = 16384; pub const ImGuiHoveredFlags_DelayShort: ImGuiHoveredFlags_ = 32768; pub const ImGuiHoveredFlags_DelayNormal: ImGuiHoveredFlags_ = 65536; pub const ImGuiHoveredFlags_NoSharedDelay: ImGuiHoveredFlags_ = 131072; -pub type ImGuiHoveredFlags_ = cty::c_uint; +pub type ImGuiHoveredFlags_ = core::ffi::c_uint; pub const ImGuiDragDropFlags_None: ImGuiDragDropFlags_ = 0; pub const ImGuiDragDropFlags_SourceNoPreviewTooltip: ImGuiDragDropFlags_ = 1; pub const ImGuiDragDropFlags_SourceNoDisableHover: ImGuiDragDropFlags_ = 2; @@ -359,7 +359,7 @@ pub const ImGuiDragDropFlags_AcceptBeforeDelivery: ImGuiDragDropFlags_ = 1024; pub const ImGuiDragDropFlags_AcceptNoDrawDefaultRect: ImGuiDragDropFlags_ = 2048; pub const ImGuiDragDropFlags_AcceptNoPreviewTooltip: ImGuiDragDropFlags_ = 4096; pub const ImGuiDragDropFlags_AcceptPeekOnly: ImGuiDragDropFlags_ = 3072; -pub type ImGuiDragDropFlags_ = cty::c_uint; +pub type ImGuiDragDropFlags_ = core::ffi::c_uint; pub const ImGuiDataType_S8: ImGuiDataType_ = 0; pub const ImGuiDataType_U8: ImGuiDataType_ = 1; pub const ImGuiDataType_S16: ImGuiDataType_ = 2; @@ -372,18 +372,18 @@ pub const ImGuiDataType_Float: ImGuiDataType_ = 8; pub const ImGuiDataType_Double: ImGuiDataType_ = 9; pub const ImGuiDataType_Bool: ImGuiDataType_ = 10; pub const ImGuiDataType_COUNT: ImGuiDataType_ = 11; -pub type ImGuiDataType_ = cty::c_uint; +pub type ImGuiDataType_ = core::ffi::c_uint; pub const ImGuiDir_None: ImGuiDir = -1; pub const ImGuiDir_Left: ImGuiDir = 0; pub const ImGuiDir_Right: ImGuiDir = 1; pub const ImGuiDir_Up: ImGuiDir = 2; pub const ImGuiDir_Down: ImGuiDir = 3; pub const ImGuiDir_COUNT: ImGuiDir = 4; -pub type ImGuiDir = cty::c_int; +pub type ImGuiDir = core::ffi::c_int; pub const ImGuiSortDirection_None: ImGuiSortDirection = 0; pub const ImGuiSortDirection_Ascending: ImGuiSortDirection = 1; pub const ImGuiSortDirection_Descending: ImGuiSortDirection = 2; -pub type ImGuiSortDirection = cty::c_uint; +pub type ImGuiSortDirection = core::ffi::c_uint; pub const ImGuiKey_None: ImGuiKey = 0; pub const ImGuiKey_Tab: ImGuiKey = 512; pub const ImGuiKey_LeftArrow: ImGuiKey = 513; @@ -551,7 +551,7 @@ pub const ImGuiKey_NamedKey_END: ImGuiKey = 666; pub const ImGuiKey_NamedKey_COUNT: ImGuiKey = 154; pub const ImGuiKey_KeysData_SIZE: ImGuiKey = 154; pub const ImGuiKey_KeysData_OFFSET: ImGuiKey = 512; -pub type ImGuiKey = cty::c_uint; +pub type ImGuiKey = core::ffi::c_uint; pub const ImGuiInputFlags_None: ImGuiInputFlags_ = 0; pub const ImGuiInputFlags_Repeat: ImGuiInputFlags_ = 1; pub const ImGuiInputFlags_RouteActive: ImGuiInputFlags_ = 1024; @@ -563,7 +563,7 @@ pub const ImGuiInputFlags_RouteOverActive: ImGuiInputFlags_ = 32768; pub const ImGuiInputFlags_RouteUnlessBgFocused: ImGuiInputFlags_ = 65536; pub const ImGuiInputFlags_RouteFromRootWindow: ImGuiInputFlags_ = 131072; pub const ImGuiInputFlags_Tooltip: ImGuiInputFlags_ = 262144; -pub type ImGuiInputFlags_ = cty::c_uint; +pub type ImGuiInputFlags_ = core::ffi::c_uint; pub const ImGuiConfigFlags_None: ImGuiConfigFlags_ = 0; pub const ImGuiConfigFlags_NavEnableKeyboard: ImGuiConfigFlags_ = 1; pub const ImGuiConfigFlags_NavEnableGamepad: ImGuiConfigFlags_ = 2; @@ -574,13 +574,13 @@ pub const ImGuiConfigFlags_NoMouseCursorChange: ImGuiConfigFlags_ = 32; pub const ImGuiConfigFlags_NoKeyboard: ImGuiConfigFlags_ = 64; pub const ImGuiConfigFlags_IsSRGB: ImGuiConfigFlags_ = 1048576; pub const ImGuiConfigFlags_IsTouchScreen: ImGuiConfigFlags_ = 2097152; -pub type ImGuiConfigFlags_ = cty::c_uint; +pub type ImGuiConfigFlags_ = core::ffi::c_uint; pub const ImGuiBackendFlags_None: ImGuiBackendFlags_ = 0; pub const ImGuiBackendFlags_HasGamepad: ImGuiBackendFlags_ = 1; pub const ImGuiBackendFlags_HasMouseCursors: ImGuiBackendFlags_ = 2; pub const ImGuiBackendFlags_HasSetMousePos: ImGuiBackendFlags_ = 4; pub const ImGuiBackendFlags_RendererHasVtxOffset: ImGuiBackendFlags_ = 8; -pub type ImGuiBackendFlags_ = cty::c_uint; +pub type ImGuiBackendFlags_ = core::ffi::c_uint; pub const ImGuiCol_Text: ImGuiCol_ = 0; pub const ImGuiCol_TextDisabled: ImGuiCol_ = 1; pub const ImGuiCol_WindowBg: ImGuiCol_ = 2; @@ -638,7 +638,7 @@ pub const ImGuiCol_NavWindowingHighlight: ImGuiCol_ = 53; pub const ImGuiCol_NavWindowingDimBg: ImGuiCol_ = 54; pub const ImGuiCol_ModalWindowDimBg: ImGuiCol_ = 55; pub const ImGuiCol_COUNT: ImGuiCol_ = 56; -pub type ImGuiCol_ = cty::c_uint; +pub type ImGuiCol_ = core::ffi::c_uint; pub const ImGuiStyleVar_Alpha: ImGuiStyleVar_ = 0; pub const ImGuiStyleVar_DisabledAlpha: ImGuiStyleVar_ = 1; pub const ImGuiStyleVar_WindowPadding: ImGuiStyleVar_ = 2; @@ -673,13 +673,13 @@ pub const ImGuiStyleVar_SeparatorTextBorderSize: ImGuiStyleVar_ = 30; pub const ImGuiStyleVar_SeparatorTextAlign: ImGuiStyleVar_ = 31; pub const ImGuiStyleVar_SeparatorTextPadding: ImGuiStyleVar_ = 32; pub const ImGuiStyleVar_COUNT: ImGuiStyleVar_ = 33; -pub type ImGuiStyleVar_ = cty::c_uint; +pub type ImGuiStyleVar_ = core::ffi::c_uint; pub const ImGuiButtonFlags_None: ImGuiButtonFlags_ = 0; pub const ImGuiButtonFlags_MouseButtonLeft: ImGuiButtonFlags_ = 1; pub const ImGuiButtonFlags_MouseButtonRight: ImGuiButtonFlags_ = 2; pub const ImGuiButtonFlags_MouseButtonMiddle: ImGuiButtonFlags_ = 4; pub const ImGuiButtonFlags_MouseButtonMask_: ImGuiButtonFlags_ = 7; -pub type ImGuiButtonFlags_ = cty::c_uint; +pub type ImGuiButtonFlags_ = core::ffi::c_uint; pub const ImGuiColorEditFlags_None: ImGuiColorEditFlags_ = 0; pub const ImGuiColorEditFlags_NoAlpha: ImGuiColorEditFlags_ = 2; pub const ImGuiColorEditFlags_NoPicker: ImGuiColorEditFlags_ = 4; @@ -709,7 +709,7 @@ pub const ImGuiColorEditFlags_DisplayMask_: ImGuiColorEditFlags_ = 7340032; pub const ImGuiColorEditFlags_DataTypeMask_: ImGuiColorEditFlags_ = 25165824; pub const ImGuiColorEditFlags_PickerMask_: ImGuiColorEditFlags_ = 100663296; pub const ImGuiColorEditFlags_InputMask_: ImGuiColorEditFlags_ = 402653184; -pub type ImGuiColorEditFlags_ = cty::c_uint; +pub type ImGuiColorEditFlags_ = core::ffi::c_uint; pub const ImGuiSliderFlags_None: ImGuiSliderFlags_ = 0; pub const ImGuiSliderFlags_Logarithmic: ImGuiSliderFlags_ = 32; pub const ImGuiSliderFlags_NoRoundToFormat: ImGuiSliderFlags_ = 64; @@ -719,12 +719,12 @@ pub const ImGuiSliderFlags_ClampOnInput: ImGuiSliderFlags_ = 512; pub const ImGuiSliderFlags_ClampZeroRange: ImGuiSliderFlags_ = 1024; pub const ImGuiSliderFlags_AlwaysClamp: ImGuiSliderFlags_ = 1536; pub const ImGuiSliderFlags_InvalidMask_: ImGuiSliderFlags_ = 1879048207; -pub type ImGuiSliderFlags_ = cty::c_uint; +pub type ImGuiSliderFlags_ = core::ffi::c_uint; pub const ImGuiMouseButton_Left: ImGuiMouseButton_ = 0; pub const ImGuiMouseButton_Right: ImGuiMouseButton_ = 1; pub const ImGuiMouseButton_Middle: ImGuiMouseButton_ = 2; pub const ImGuiMouseButton_COUNT: ImGuiMouseButton_ = 5; -pub type ImGuiMouseButton_ = cty::c_uint; +pub type ImGuiMouseButton_ = core::ffi::c_uint; pub const ImGuiMouseCursor_None: ImGuiMouseCursor_ = -1; pub const ImGuiMouseCursor_Arrow: ImGuiMouseCursor_ = 0; pub const ImGuiMouseCursor_TextInput: ImGuiMouseCursor_ = 1; @@ -736,18 +736,18 @@ pub const ImGuiMouseCursor_ResizeNWSE: ImGuiMouseCursor_ = 6; pub const ImGuiMouseCursor_Hand: ImGuiMouseCursor_ = 7; pub const ImGuiMouseCursor_NotAllowed: ImGuiMouseCursor_ = 8; pub const ImGuiMouseCursor_COUNT: ImGuiMouseCursor_ = 9; -pub type ImGuiMouseCursor_ = cty::c_int; +pub type ImGuiMouseCursor_ = core::ffi::c_int; pub const ImGuiMouseSource_Mouse: ImGuiMouseSource = 0; pub const ImGuiMouseSource_TouchScreen: ImGuiMouseSource = 1; pub const ImGuiMouseSource_Pen: ImGuiMouseSource = 2; pub const ImGuiMouseSource_COUNT: ImGuiMouseSource = 3; -pub type ImGuiMouseSource = cty::c_uint; +pub type ImGuiMouseSource = core::ffi::c_uint; pub const ImGuiCond_None: ImGuiCond_ = 0; pub const ImGuiCond_Always: ImGuiCond_ = 1; pub const ImGuiCond_Once: ImGuiCond_ = 2; pub const ImGuiCond_FirstUseEver: ImGuiCond_ = 4; pub const ImGuiCond_Appearing: ImGuiCond_ = 8; -pub type ImGuiCond_ = cty::c_uint; +pub type ImGuiCond_ = core::ffi::c_uint; pub const ImGuiTableFlags_None: ImGuiTableFlags_ = 0; pub const ImGuiTableFlags_Resizable: ImGuiTableFlags_ = 1; pub const ImGuiTableFlags_Reorderable: ImGuiTableFlags_ = 2; @@ -785,7 +785,7 @@ pub const ImGuiTableFlags_SortMulti: ImGuiTableFlags_ = 67108864; pub const ImGuiTableFlags_SortTristate: ImGuiTableFlags_ = 134217728; pub const ImGuiTableFlags_HighlightHoveredColumn: ImGuiTableFlags_ = 268435456; pub const ImGuiTableFlags_SizingMask_: ImGuiTableFlags_ = 57344; -pub type ImGuiTableFlags_ = cty::c_uint; +pub type ImGuiTableFlags_ = core::ffi::c_uint; pub const ImGuiTableColumnFlags_None: ImGuiTableColumnFlags_ = 0; pub const ImGuiTableColumnFlags_Disabled: ImGuiTableColumnFlags_ = 1; pub const ImGuiTableColumnFlags_DefaultHide: ImGuiTableColumnFlags_ = 2; @@ -814,20 +814,20 @@ pub const ImGuiTableColumnFlags_WidthMask_: ImGuiTableColumnFlags_ = 24; pub const ImGuiTableColumnFlags_IndentMask_: ImGuiTableColumnFlags_ = 196608; pub const ImGuiTableColumnFlags_StatusMask_: ImGuiTableColumnFlags_ = 251658240; pub const ImGuiTableColumnFlags_NoDirectResize_: ImGuiTableColumnFlags_ = 1073741824; -pub type ImGuiTableColumnFlags_ = cty::c_uint; +pub type ImGuiTableColumnFlags_ = core::ffi::c_uint; pub const ImGuiTableRowFlags_None: ImGuiTableRowFlags_ = 0; pub const ImGuiTableRowFlags_Headers: ImGuiTableRowFlags_ = 1; -pub type ImGuiTableRowFlags_ = cty::c_uint; +pub type ImGuiTableRowFlags_ = core::ffi::c_uint; pub const ImGuiTableBgTarget_None: ImGuiTableBgTarget_ = 0; pub const ImGuiTableBgTarget_RowBg0: ImGuiTableBgTarget_ = 1; pub const ImGuiTableBgTarget_RowBg1: ImGuiTableBgTarget_ = 2; pub const ImGuiTableBgTarget_CellBg: ImGuiTableBgTarget_ = 3; -pub type ImGuiTableBgTarget_ = cty::c_uint; +pub type ImGuiTableBgTarget_ = core::ffi::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiTableSortSpecs { pub Specs: *const ImGuiTableColumnSortSpecs, - pub SpecsCount: cty::c_int, + pub SpecsCount: core::ffi::c_int, pub SpecsDirty: bool, } impl Default for ImGuiTableSortSpecs { @@ -933,8 +933,8 @@ pub struct ImGuiKeyData { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImWchar { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImWchar, } impl Default for ImVector_ImWchar { @@ -954,9 +954,9 @@ pub struct ImGuiIO { pub DisplaySize: ImVec2, pub DeltaTime: f32, pub IniSavingRate: f32, - pub IniFilename: *const cty::c_char, - pub LogFilename: *const cty::c_char, - pub UserData: *mut cty::c_void, + pub IniFilename: *const core::ffi::c_char, + pub LogFilename: *const core::ffi::c_char, + pub UserData: *mut core::ffi::c_void, pub Fonts: *mut ImFontAtlas, pub FontGlobalScale: f32, pub FontAllowUserScaling: bool, @@ -988,11 +988,11 @@ pub struct ImGuiIO { pub ConfigDebugBeginReturnValueLoop: bool, pub ConfigDebugIgnoreFocusLoss: bool, pub ConfigDebugIniSettings: bool, - pub BackendPlatformName: *const cty::c_char, - pub BackendRendererName: *const cty::c_char, - pub BackendPlatformUserData: *mut cty::c_void, - pub BackendRendererUserData: *mut cty::c_void, - pub BackendLanguageUserData: *mut cty::c_void, + pub BackendPlatformName: *const core::ffi::c_char, + pub BackendRendererName: *const core::ffi::c_char, + pub BackendPlatformUserData: *mut core::ffi::c_void, + pub BackendRendererUserData: *mut core::ffi::c_void, + pub BackendLanguageUserData: *mut core::ffi::c_void, pub WantCaptureMouse: bool, pub WantCaptureKeyboard: bool, pub WantTextInput: bool, @@ -1001,10 +1001,10 @@ pub struct ImGuiIO { pub NavActive: bool, pub NavVisible: bool, pub Framerate: f32, - pub MetricsRenderVertices: cty::c_int, - pub MetricsRenderIndices: cty::c_int, - pub MetricsRenderWindows: cty::c_int, - pub MetricsActiveWindows: cty::c_int, + pub MetricsRenderVertices: core::ffi::c_int, + pub MetricsRenderIndices: core::ffi::c_int, + pub MetricsRenderWindows: core::ffi::c_int, + pub MetricsActiveWindows: core::ffi::c_int, pub MouseDelta: ImVec2, pub Ctx: *mut ImGuiContext, pub MousePos: ImVec2, @@ -1057,16 +1057,16 @@ pub struct ImGuiInputTextCallbackData { pub Ctx: *mut ImGuiContext, pub EventFlag: ImGuiInputTextFlags, pub Flags: ImGuiInputTextFlags, - pub UserData: *mut cty::c_void, + pub UserData: *mut core::ffi::c_void, pub EventChar: ImWchar, pub EventKey: ImGuiKey, - pub Buf: *mut cty::c_char, - pub BufTextLen: cty::c_int, - pub BufSize: cty::c_int, + pub Buf: *mut core::ffi::c_char, + pub BufTextLen: core::ffi::c_int, + pub BufSize: core::ffi::c_int, pub BufDirty: bool, - pub CursorPos: cty::c_int, - pub SelectionStart: cty::c_int, - pub SelectionEnd: cty::c_int, + pub CursorPos: core::ffi::c_int, + pub SelectionStart: core::ffi::c_int, + pub SelectionEnd: core::ffi::c_int, } impl Default for ImGuiInputTextCallbackData { fn default() -> Self { @@ -1080,7 +1080,7 @@ impl Default for ImGuiInputTextCallbackData { #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiSizeCallbackData { - pub UserData: *mut cty::c_void, + pub UserData: *mut core::ffi::c_void, pub Pos: ImVec2, pub CurrentSize: ImVec2, pub DesiredSize: ImVec2, @@ -1097,12 +1097,12 @@ impl Default for ImGuiSizeCallbackData { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiPayload { - pub Data: *mut cty::c_void, - pub DataSize: cty::c_int, + pub Data: *mut core::ffi::c_void, + pub DataSize: core::ffi::c_int, pub SourceId: ImGuiID, pub SourceParentId: ImGuiID, - pub DataFrameCount: cty::c_int, - pub DataType: [cty::c_char; 33usize], + pub DataFrameCount: core::ffi::c_int, + pub DataType: [core::ffi::c_char; 33usize], pub Preview: bool, pub Delivery: bool, } @@ -1118,13 +1118,13 @@ impl Default for ImGuiPayload { #[repr(C)] #[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiOnceUponAFrame { - pub RefFrame: cty::c_int, + pub RefFrame: core::ffi::c_int, } #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiTextRange { - pub b: *const cty::c_char, - pub e: *const cty::c_char, + pub b: *const core::ffi::c_char, + pub e: *const core::ffi::c_char, } impl Default for ImGuiTextRange { fn default() -> Self { @@ -1138,8 +1138,8 @@ impl Default for ImGuiTextRange { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImGuiTextRange { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImGuiTextRange, } impl Default for ImVector_ImGuiTextRange { @@ -1154,9 +1154,9 @@ impl Default for ImVector_ImGuiTextRange { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiTextFilter { - pub InputBuf: [cty::c_char; 256usize], + pub InputBuf: [core::ffi::c_char; 256usize], pub Filters: ImVector_ImGuiTextRange, - pub CountGrep: cty::c_int, + pub CountGrep: core::ffi::c_int, } impl Default for ImGuiTextFilter { fn default() -> Self { @@ -1170,9 +1170,9 @@ impl Default for ImGuiTextFilter { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_char { - pub Size: cty::c_int, - pub Capacity: cty::c_int, - pub Data: *mut cty::c_char, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, + pub Data: *mut core::ffi::c_char, } impl Default for ImVector_char { fn default() -> Self { @@ -1206,9 +1206,9 @@ pub struct ImGuiStoragePair { #[repr(C)] #[derive(Copy, Clone)] pub union ImGuiStoragePair__bindgen_ty_1 { - pub val_i: cty::c_int, + pub val_i: core::ffi::c_int, pub val_f: f32, - pub val_p: *mut cty::c_void, + pub val_p: *mut core::ffi::c_void, } impl Default for ImGuiStoragePair__bindgen_ty_1 { fn default() -> Self { @@ -1245,8 +1245,8 @@ impl ::core::fmt::Debug for ImGuiStoragePair { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImGuiStoragePair { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImGuiStoragePair, } impl Default for ImVector_ImGuiStoragePair { @@ -1276,13 +1276,13 @@ impl Default for ImGuiStorage { #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiListClipper { pub Ctx: *mut ImGuiContext, - pub DisplayStart: cty::c_int, - pub DisplayEnd: cty::c_int, - pub ItemsCount: cty::c_int, + pub DisplayStart: core::ffi::c_int, + pub DisplayEnd: core::ffi::c_int, + pub ItemsCount: core::ffi::c_int, pub ItemsHeight: f32, pub StartPosY: f32, pub StartSeekOffsetY: f64, - pub TempData: *mut cty::c_void, + pub TempData: *mut core::ffi::c_void, } impl Default for ImGuiListClipper { fn default() -> Self { @@ -1315,12 +1315,12 @@ pub const ImGuiMultiSelectFlags_ScopeRect: ImGuiMultiSelectFlags_ = 4096; pub const ImGuiMultiSelectFlags_SelectOnClick: ImGuiMultiSelectFlags_ = 8192; pub const ImGuiMultiSelectFlags_SelectOnClickRelease: ImGuiMultiSelectFlags_ = 16384; pub const ImGuiMultiSelectFlags_NavWrapX: ImGuiMultiSelectFlags_ = 65536; -pub type ImGuiMultiSelectFlags_ = cty::c_uint; +pub type ImGuiMultiSelectFlags_ = core::ffi::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImGuiSelectionRequest { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImGuiSelectionRequest, } impl Default for ImVector_ImGuiSelectionRequest { @@ -1340,7 +1340,7 @@ pub struct ImGuiMultiSelectIO { pub NavIdItem: ImGuiSelectionUserData, pub NavIdSelected: bool, pub RangeSrcReset: bool, - pub ItemsCount: cty::c_int, + pub ItemsCount: core::ffi::c_int, } impl Default for ImGuiMultiSelectIO { fn default() -> Self { @@ -1354,7 +1354,7 @@ impl Default for ImGuiMultiSelectIO { pub const ImGuiSelectionRequestType_None: ImGuiSelectionRequestType = 0; pub const ImGuiSelectionRequestType_SetAll: ImGuiSelectionRequestType = 1; pub const ImGuiSelectionRequestType_SetRange: ImGuiSelectionRequestType = 2; -pub type ImGuiSelectionRequestType = cty::c_uint; +pub type ImGuiSelectionRequestType = core::ffi::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiSelectionRequest { @@ -1376,13 +1376,16 @@ impl Default for ImGuiSelectionRequest { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiSelectionBasicStorage { - pub Size: cty::c_int, + pub Size: core::ffi::c_int, pub PreserveOrder: bool, - pub UserData: *mut cty::c_void, + pub UserData: *mut core::ffi::c_void, pub AdapterIndexToStorageId: ::core::option::Option< - unsafe extern "C" fn(self_: *mut ImGuiSelectionBasicStorage, idx: cty::c_int) -> ImGuiID, + unsafe extern "C" fn( + self_: *mut ImGuiSelectionBasicStorage, + idx: core::ffi::c_int, + ) -> ImGuiID, >, - pub _SelectionOrder: cty::c_int, + pub _SelectionOrder: core::ffi::c_int, pub _Storage: ImGuiStorage, } impl Default for ImGuiSelectionBasicStorage { @@ -1397,11 +1400,11 @@ impl Default for ImGuiSelectionBasicStorage { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiSelectionExternalStorage { - pub UserData: *mut cty::c_void, + pub UserData: *mut core::ffi::c_void, pub AdapterSetItemSelected: ::core::option::Option< unsafe extern "C" fn( self_: *mut ImGuiSelectionExternalStorage, - idx: cty::c_int, + idx: core::ffi::c_int, selected: bool, ), >, @@ -1423,11 +1426,11 @@ pub type ImDrawCallback = ::core::option::Option< pub struct ImDrawCmd { pub ClipRect: ImVec4, pub TextureId: ImTextureID, - pub VtxOffset: cty::c_uint, - pub IdxOffset: cty::c_uint, - pub ElemCount: cty::c_uint, + pub VtxOffset: core::ffi::c_uint, + pub IdxOffset: core::ffi::c_uint, + pub ElemCount: core::ffi::c_uint, pub UserCallback: ImDrawCallback, - pub UserCallbackData: *mut cty::c_void, + pub UserCallbackData: *mut core::ffi::c_void, } impl Default for ImDrawCmd { fn default() -> Self { @@ -1450,7 +1453,7 @@ pub struct ImDrawVert { pub struct ImDrawCmdHeader { pub ClipRect: ImVec4, pub TextureId: ImTextureID, - pub VtxOffset: cty::c_uint, + pub VtxOffset: core::ffi::c_uint, } impl Default for ImDrawCmdHeader { fn default() -> Self { @@ -1464,8 +1467,8 @@ impl Default for ImDrawCmdHeader { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImDrawCmd { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImDrawCmd, } impl Default for ImVector_ImDrawCmd { @@ -1480,8 +1483,8 @@ impl Default for ImVector_ImDrawCmd { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImDrawIdx { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImDrawIdx, } impl Default for ImVector_ImDrawIdx { @@ -1511,8 +1514,8 @@ impl Default for ImDrawChannel { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImDrawChannel { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImDrawChannel, } impl Default for ImVector_ImDrawChannel { @@ -1527,8 +1530,8 @@ impl Default for ImVector_ImDrawChannel { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImDrawListSplitter { - pub _Current: cty::c_int, - pub _Count: cty::c_int, + pub _Current: core::ffi::c_int, + pub _Count: core::ffi::c_int, pub _Channels: ImVector_ImDrawChannel, } impl Default for ImDrawListSplitter { @@ -1554,18 +1557,18 @@ pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160; pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240; pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240; pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496; -pub type ImDrawFlags_ = cty::c_uint; +pub type ImDrawFlags_ = core::ffi::c_uint; pub const ImDrawListFlags_None: ImDrawListFlags_ = 0; pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1; pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2; pub const ImDrawListFlags_AntiAliasedFill: ImDrawListFlags_ = 4; pub const ImDrawListFlags_AllowVtxOffset: ImDrawListFlags_ = 8; -pub type ImDrawListFlags_ = cty::c_uint; +pub type ImDrawListFlags_ = core::ffi::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImDrawVert { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImDrawVert, } impl Default for ImVector_ImDrawVert { @@ -1580,8 +1583,8 @@ impl Default for ImVector_ImDrawVert { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImVec2 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImVec2, } impl Default for ImVector_ImVec2 { @@ -1596,8 +1599,8 @@ impl Default for ImVector_ImVec2 { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImVec4 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImVec4, } impl Default for ImVector_ImVec4 { @@ -1612,8 +1615,8 @@ impl Default for ImVector_ImVec4 { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImTextureID { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImTextureID, } impl Default for ImVector_ImTextureID { @@ -1632,7 +1635,7 @@ pub struct ImDrawList { pub IdxBuffer: ImVector_ImDrawIdx, pub VtxBuffer: ImVector_ImDrawVert, pub Flags: ImDrawListFlags, - pub _VtxCurrentIdx: cty::c_uint, + pub _VtxCurrentIdx: core::ffi::c_uint, pub _Data: *mut ImDrawListSharedData, pub _VtxWritePtr: *mut ImDrawVert, pub _IdxWritePtr: *mut ImDrawIdx, @@ -1642,7 +1645,7 @@ pub struct ImDrawList { pub _ClipRectStack: ImVector_ImVec4, pub _TextureIdStack: ImVector_ImTextureID, pub _FringeScale: f32, - pub _OwnerName: *const cty::c_char, + pub _OwnerName: *const core::ffi::c_char, } impl Default for ImDrawList { fn default() -> Self { @@ -1656,8 +1659,8 @@ impl Default for ImDrawList { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImDrawListPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut *mut ImDrawList, } impl Default for ImVector_ImDrawListPtr { @@ -1673,9 +1676,9 @@ impl Default for ImVector_ImDrawListPtr { #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImDrawData { pub Valid: bool, - pub CmdListsCount: cty::c_int, - pub TotalIdxCount: cty::c_int, - pub TotalVtxCount: cty::c_int, + pub CmdListsCount: core::ffi::c_int, + pub TotalIdxCount: core::ffi::c_int, + pub TotalVtxCount: core::ffi::c_int, pub CmdLists: ImVector_ImDrawListPtr, pub DisplayPos: ImVec2, pub DisplaySize: ImVec2, @@ -1694,13 +1697,13 @@ impl Default for ImDrawData { #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImFontConfig { - pub FontData: *mut cty::c_void, - pub FontDataSize: cty::c_int, + pub FontData: *mut core::ffi::c_void, + pub FontDataSize: core::ffi::c_int, pub FontDataOwnedByAtlas: bool, - pub FontNo: cty::c_int, + pub FontNo: core::ffi::c_int, pub SizePixels: f32, - pub OversampleH: cty::c_int, - pub OversampleV: cty::c_int, + pub OversampleH: core::ffi::c_int, + pub OversampleV: core::ffi::c_int, pub PixelSnapH: bool, pub GlyphExtraSpacing: ImVec2, pub GlyphOffset: ImVec2, @@ -1708,11 +1711,11 @@ pub struct ImFontConfig { pub GlyphMinAdvanceX: f32, pub GlyphMaxAdvanceX: f32, pub MergeMode: bool, - pub FontBuilderFlags: cty::c_uint, + pub FontBuilderFlags: core::ffi::c_uint, pub RasterizerMultiply: f32, pub RasterizerDensity: f32, pub EllipsisChar: ImWchar, - pub Name: [cty::c_char; 40usize], + pub Name: [core::ffi::c_char; 40usize], pub DstFont: *mut ImFont, } impl Default for ImFontConfig { @@ -1741,33 +1744,33 @@ pub struct ImFontGlyph { } impl ImFontGlyph { #[inline] - pub fn Colored(&self) -> cty::c_uint { + pub fn Colored(&self) -> core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } } #[inline] - pub fn set_Colored(&mut self, val: cty::c_uint) { + pub fn set_Colored(&mut self, val: core::ffi::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); self._bitfield_1.set(0usize, 1u8, val as u64) } } #[inline] - pub fn Visible(&self) -> cty::c_uint { + pub fn Visible(&self) -> core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } #[inline] - pub fn set_Visible(&mut self, val: cty::c_uint) { + pub fn set_Visible(&mut self, val: core::ffi::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); self._bitfield_1.set(1usize, 1u8, val as u64) } } #[inline] - pub fn Codepoint(&self) -> cty::c_uint { + pub fn Codepoint(&self) -> core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } } #[inline] - pub fn set_Codepoint(&mut self, val: cty::c_uint) { + pub fn set_Codepoint(&mut self, val: core::ffi::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); self._bitfield_1.set(2usize, 30u8, val as u64) @@ -1775,9 +1778,9 @@ impl ImFontGlyph { } #[inline] pub fn new_bitfield_1( - Colored: cty::c_uint, - Visible: cty::c_uint, - Codepoint: cty::c_uint, + Colored: core::ffi::c_uint, + Visible: core::ffi::c_uint, + Codepoint: core::ffi::c_uint, ) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 1u8, { @@ -1798,8 +1801,8 @@ impl ImFontGlyph { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImU32 { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImU32, } impl Default for ImVector_ImU32 { @@ -1828,11 +1831,11 @@ impl Default for ImFontGlyphRangesBuilder { #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImFontAtlasCustomRect { - pub Width: cty::c_ushort, - pub Height: cty::c_ushort, - pub X: cty::c_ushort, - pub Y: cty::c_ushort, - pub GlyphID: cty::c_uint, + pub Width: core::ffi::c_ushort, + pub Height: core::ffi::c_ushort, + pub X: core::ffi::c_ushort, + pub Y: core::ffi::c_ushort, + pub GlyphID: core::ffi::c_uint, pub GlyphAdvanceX: f32, pub GlyphOffset: ImVec2, pub Font: *mut ImFont, @@ -1850,12 +1853,12 @@ pub const ImFontAtlasFlags_None: ImFontAtlasFlags_ = 0; pub const ImFontAtlasFlags_NoPowerOfTwoHeight: ImFontAtlasFlags_ = 1; pub const ImFontAtlasFlags_NoMouseCursors: ImFontAtlasFlags_ = 2; pub const ImFontAtlasFlags_NoBakedLines: ImFontAtlasFlags_ = 4; -pub type ImFontAtlasFlags_ = cty::c_uint; +pub type ImFontAtlasFlags_ = core::ffi::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImFontPtr { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut *mut ImFont, } impl Default for ImVector_ImFontPtr { @@ -1870,8 +1873,8 @@ impl Default for ImVector_ImFontPtr { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImFontAtlasCustomRect { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImFontAtlasCustomRect, } impl Default for ImVector_ImFontAtlasCustomRect { @@ -1886,8 +1889,8 @@ impl Default for ImVector_ImFontAtlasCustomRect { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImFontConfig { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImFontConfig, } impl Default for ImVector_ImFontConfig { @@ -1904,16 +1907,16 @@ impl Default for ImVector_ImFontConfig { pub struct ImFontAtlas { pub Flags: ImFontAtlasFlags, pub TexID: ImTextureID, - pub TexDesiredWidth: cty::c_int, - pub TexGlyphPadding: cty::c_int, + pub TexDesiredWidth: core::ffi::c_int, + pub TexGlyphPadding: core::ffi::c_int, pub Locked: bool, - pub UserData: *mut cty::c_void, + pub UserData: *mut core::ffi::c_void, pub TexReady: bool, pub TexPixelsUseColors: bool, - pub TexPixelsAlpha8: *mut cty::c_uchar, - pub TexPixelsRGBA32: *mut cty::c_uint, - pub TexWidth: cty::c_int, - pub TexHeight: cty::c_int, + pub TexPixelsAlpha8: *mut core::ffi::c_uchar, + pub TexPixelsRGBA32: *mut core::ffi::c_uint, + pub TexWidth: core::ffi::c_int, + pub TexHeight: core::ffi::c_int, pub TexUvScale: ImVec2, pub TexUvWhitePixel: ImVec2, pub Fonts: ImVector_ImFontPtr, @@ -1921,9 +1924,9 @@ pub struct ImFontAtlas { pub ConfigData: ImVector_ImFontConfig, pub TexUvLines: [ImVec4; 64usize], pub FontBuilderIO: *const ImFontBuilderIO, - pub FontBuilderFlags: cty::c_uint, - pub PackIdMouseCursors: cty::c_int, - pub PackIdLines: cty::c_int, + pub FontBuilderFlags: core::ffi::c_uint, + pub PackIdMouseCursors: core::ffi::c_int, + pub PackIdLines: core::ffi::c_int, } impl Default for ImFontAtlas { fn default() -> Self { @@ -1937,8 +1940,8 @@ impl Default for ImFontAtlas { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_float { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut f32, } impl Default for ImVector_float { @@ -1953,8 +1956,8 @@ impl Default for ImVector_float { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImVector_ImFontGlyph { - pub Size: cty::c_int, - pub Capacity: cty::c_int, + pub Size: core::ffi::c_int, + pub Capacity: core::ffi::c_int, pub Data: *mut ImFontGlyph, } impl Default for ImVector_ImFontGlyph { @@ -1977,17 +1980,17 @@ pub struct ImFont { pub FallbackGlyph: *const ImFontGlyph, pub ContainerAtlas: *mut ImFontAtlas, pub ConfigData: *const ImFontConfig, - pub ConfigDataCount: cty::c_short, + pub ConfigDataCount: core::ffi::c_short, pub FallbackChar: ImWchar, pub EllipsisChar: ImWchar, - pub EllipsisCharCount: cty::c_short, + pub EllipsisCharCount: core::ffi::c_short, pub EllipsisWidth: f32, pub EllipsisCharStep: f32, pub DirtyLookupTables: bool, pub Scale: f32, pub Ascent: f32, pub Descent: f32, - pub MetricsTotalSurface: cty::c_int, + pub MetricsTotalSurface: core::ffi::c_int, pub Used4kPagesMap: [ImU8; 34usize], } impl Default for ImFont { @@ -2003,7 +2006,7 @@ pub const ImGuiViewportFlags_None: ImGuiViewportFlags_ = 0; pub const ImGuiViewportFlags_IsPlatformWindow: ImGuiViewportFlags_ = 1; pub const ImGuiViewportFlags_IsPlatformMonitor: ImGuiViewportFlags_ = 2; pub const ImGuiViewportFlags_OwnedByApp: ImGuiViewportFlags_ = 4; -pub type ImGuiViewportFlags_ = cty::c_uint; +pub type ImGuiViewportFlags_ = core::ffi::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ImGuiViewport { @@ -2013,8 +2016,8 @@ pub struct ImGuiViewport { pub Size: ImVec2, pub WorkPos: ImVec2, pub WorkSize: ImVec2, - pub PlatformHandle: *mut cty::c_void, - pub PlatformHandleRaw: *mut cty::c_void, + pub PlatformHandle: *mut core::ffi::c_void, + pub PlatformHandleRaw: *mut core::ffi::c_void, } impl Default for ImGuiViewport { fn default() -> Self { @@ -2028,16 +2031,17 @@ impl Default for ImGuiViewport { #[repr(C)] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub struct ImGuiPlatformIO { - pub Platform_GetClipboardTextFn: - ::core::option::Option *const cty::c_char>, + pub Platform_GetClipboardTextFn: ::core::option::Option< + unsafe extern "C" fn(ctx: *mut ImGuiContext) -> *const core::ffi::c_char, + >, pub Platform_SetClipboardTextFn: ::core::option::Option< - unsafe extern "C" fn(ctx: *mut ImGuiContext, text: *const cty::c_char), + unsafe extern "C" fn(ctx: *mut ImGuiContext, text: *const core::ffi::c_char), >, - pub Platform_ClipboardUserData: *mut cty::c_void, + pub Platform_ClipboardUserData: *mut core::ffi::c_void, pub Platform_OpenInShellFn: ::core::option::Option< - unsafe extern "C" fn(ctx: *mut ImGuiContext, path: *const cty::c_char) -> bool, + unsafe extern "C" fn(ctx: *mut ImGuiContext, path: *const core::ffi::c_char) -> bool, >, - pub Platform_OpenInShellUserData: *mut cty::c_void, + pub Platform_OpenInShellUserData: *mut core::ffi::c_void, pub Platform_SetImeDataFn: ::core::option::Option< unsafe extern "C" fn( ctx: *mut ImGuiContext, @@ -2045,7 +2049,7 @@ pub struct ImGuiPlatformIO { data: *mut ImGuiPlatformImeData, ), >, - pub Platform_ImeUserData: *mut cty::c_void, + pub Platform_ImeUserData: *mut core::ffi::c_void, pub Platform_LocaleDecimalPoint: ImWchar, } impl Default for ImGuiPlatformIO { @@ -2134,16 +2138,16 @@ extern "C" { pub fn igShowStyleEditor(ref_: *mut ImGuiStyle); } extern "C" { - pub fn igShowStyleSelector(label: *const cty::c_char) -> bool; + pub fn igShowStyleSelector(label: *const core::ffi::c_char) -> bool; } extern "C" { - pub fn igShowFontSelector(label: *const cty::c_char); + pub fn igShowFontSelector(label: *const core::ffi::c_char); } extern "C" { pub fn igShowUserGuide(); } extern "C" { - pub fn igGetVersion() -> *const cty::c_char; + pub fn igGetVersion() -> *const core::ffi::c_char; } extern "C" { pub fn igStyleColorsDark(dst: *mut ImGuiStyle); @@ -2155,14 +2159,18 @@ extern "C" { pub fn igStyleColorsClassic(dst: *mut ImGuiStyle); } extern "C" { - pub fn igBegin(name: *const cty::c_char, p_open: *mut bool, flags: ImGuiWindowFlags) -> bool; + pub fn igBegin( + name: *const core::ffi::c_char, + p_open: *mut bool, + flags: ImGuiWindowFlags, + ) -> bool; } extern "C" { pub fn igEnd(); } extern "C" { pub fn igBeginChild_Str( - str_id: *const cty::c_char, + str_id: *const core::ffi::c_char, size: ImVec2, child_flags: ImGuiChildFlags, window_flags: ImGuiWindowFlags, @@ -2217,7 +2225,7 @@ extern "C" { size_min: ImVec2, size_max: ImVec2, custom_callback: ImGuiSizeCallback, - custom_callback_data: *mut cty::c_void, + custom_callback_data: *mut core::ffi::c_void, ); } extern "C" { @@ -2251,16 +2259,20 @@ extern "C" { pub fn igSetWindowFontScale(scale: f32); } extern "C" { - pub fn igSetWindowPos_Str(name: *const cty::c_char, pos: ImVec2, cond: ImGuiCond); + pub fn igSetWindowPos_Str(name: *const core::ffi::c_char, pos: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowSize_Str(name: *const cty::c_char, size: ImVec2, cond: ImGuiCond); + pub fn igSetWindowSize_Str(name: *const core::ffi::c_char, size: ImVec2, cond: ImGuiCond); } extern "C" { - pub fn igSetWindowCollapsed_Str(name: *const cty::c_char, collapsed: bool, cond: ImGuiCond); + pub fn igSetWindowCollapsed_Str( + name: *const core::ffi::c_char, + collapsed: bool, + cond: ImGuiCond, + ); } extern "C" { - pub fn igSetWindowFocus_Str(name: *const cty::c_char); + pub fn igSetWindowFocus_Str(name: *const core::ffi::c_char); } extern "C" { pub fn igGetScrollX() -> f32; @@ -2305,7 +2317,7 @@ extern "C" { pub fn igPushStyleColor_Vec4(idx: ImGuiCol, col: ImVec4); } extern "C" { - pub fn igPopStyleColor(count: cty::c_int); + pub fn igPopStyleColor(count: core::ffi::c_int); } extern "C" { pub fn igPushStyleVar_Float(idx: ImGuiStyleVar, val: f32); @@ -2320,7 +2332,7 @@ extern "C" { pub fn igPushStyleVarY(idx: ImGuiStyleVar, val_y: f32); } extern "C" { - pub fn igPopStyleVar(count: cty::c_int); + pub fn igPopStyleVar(count: core::ffi::c_int); } extern "C" { pub fn igPushItemFlag(option: ImGuiItemFlags, enabled: bool); @@ -2440,113 +2452,116 @@ extern "C" { pub fn igGetFrameHeightWithSpacing() -> f32; } extern "C" { - pub fn igPushID_Str(str_id: *const cty::c_char); + pub fn igPushID_Str(str_id: *const core::ffi::c_char); } extern "C" { - pub fn igPushID_StrStr(str_id_begin: *const cty::c_char, str_id_end: *const cty::c_char); + pub fn igPushID_StrStr( + str_id_begin: *const core::ffi::c_char, + str_id_end: *const core::ffi::c_char, + ); } extern "C" { - pub fn igPushID_Ptr(ptr_id: *const cty::c_void); + pub fn igPushID_Ptr(ptr_id: *const core::ffi::c_void); } extern "C" { - pub fn igPushID_Int(int_id: cty::c_int); + pub fn igPushID_Int(int_id: core::ffi::c_int); } extern "C" { pub fn igPopID(); } extern "C" { - pub fn igGetID_Str(str_id: *const cty::c_char) -> ImGuiID; + pub fn igGetID_Str(str_id: *const core::ffi::c_char) -> ImGuiID; } extern "C" { pub fn igGetID_StrStr( - str_id_begin: *const cty::c_char, - str_id_end: *const cty::c_char, + str_id_begin: *const core::ffi::c_char, + str_id_end: *const core::ffi::c_char, ) -> ImGuiID; } extern "C" { - pub fn igGetID_Ptr(ptr_id: *const cty::c_void) -> ImGuiID; + pub fn igGetID_Ptr(ptr_id: *const core::ffi::c_void) -> ImGuiID; } extern "C" { - pub fn igGetID_Int(int_id: cty::c_int) -> ImGuiID; + pub fn igGetID_Int(int_id: core::ffi::c_int) -> ImGuiID; } extern "C" { - pub fn igTextUnformatted(text: *const cty::c_char, text_end: *const cty::c_char); + pub fn igTextUnformatted(text: *const core::ffi::c_char, text_end: *const core::ffi::c_char); } extern "C" { - pub fn igText(fmt: *const cty::c_char, ...); + pub fn igText(fmt: *const core::ffi::c_char, ...); } extern "C" { - pub fn igTextColored(col: ImVec4, fmt: *const cty::c_char, ...); + pub fn igTextColored(col: ImVec4, fmt: *const core::ffi::c_char, ...); } extern "C" { - pub fn igTextDisabled(fmt: *const cty::c_char, ...); + pub fn igTextDisabled(fmt: *const core::ffi::c_char, ...); } extern "C" { - pub fn igTextWrapped(fmt: *const cty::c_char, ...); + pub fn igTextWrapped(fmt: *const core::ffi::c_char, ...); } extern "C" { - pub fn igLabelText(label: *const cty::c_char, fmt: *const cty::c_char, ...); + pub fn igLabelText(label: *const core::ffi::c_char, fmt: *const core::ffi::c_char, ...); } extern "C" { - pub fn igBulletText(fmt: *const cty::c_char, ...); + pub fn igBulletText(fmt: *const core::ffi::c_char, ...); } extern "C" { - pub fn igSeparatorText(label: *const cty::c_char); + pub fn igSeparatorText(label: *const core::ffi::c_char); } extern "C" { - pub fn igButton(label: *const cty::c_char, size: ImVec2) -> bool; + pub fn igButton(label: *const core::ffi::c_char, size: ImVec2) -> bool; } extern "C" { - pub fn igSmallButton(label: *const cty::c_char) -> bool; + pub fn igSmallButton(label: *const core::ffi::c_char) -> bool; } extern "C" { pub fn igInvisibleButton( - str_id: *const cty::c_char, + str_id: *const core::ffi::c_char, size: ImVec2, flags: ImGuiButtonFlags, ) -> bool; } extern "C" { - pub fn igArrowButton(str_id: *const cty::c_char, dir: ImGuiDir) -> bool; + pub fn igArrowButton(str_id: *const core::ffi::c_char, dir: ImGuiDir) -> bool; } extern "C" { - pub fn igCheckbox(label: *const cty::c_char, v: *mut bool) -> bool; + pub fn igCheckbox(label: *const core::ffi::c_char, v: *mut bool) -> bool; } extern "C" { pub fn igCheckboxFlags_IntPtr( - label: *const cty::c_char, - flags: *mut cty::c_int, - flags_value: cty::c_int, + label: *const core::ffi::c_char, + flags: *mut core::ffi::c_int, + flags_value: core::ffi::c_int, ) -> bool; } extern "C" { pub fn igCheckboxFlags_UintPtr( - label: *const cty::c_char, - flags: *mut cty::c_uint, - flags_value: cty::c_uint, + label: *const core::ffi::c_char, + flags: *mut core::ffi::c_uint, + flags_value: core::ffi::c_uint, ) -> bool; } extern "C" { - pub fn igRadioButton_Bool(label: *const cty::c_char, active: bool) -> bool; + pub fn igRadioButton_Bool(label: *const core::ffi::c_char, active: bool) -> bool; } extern "C" { pub fn igRadioButton_IntPtr( - label: *const cty::c_char, - v: *mut cty::c_int, - v_button: cty::c_int, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, + v_button: core::ffi::c_int, ) -> bool; } extern "C" { - pub fn igProgressBar(fraction: f32, size_arg: ImVec2, overlay: *const cty::c_char); + pub fn igProgressBar(fraction: f32, size_arg: ImVec2, overlay: *const core::ffi::c_char); } extern "C" { pub fn igBullet(); } extern "C" { - pub fn igTextLink(label: *const cty::c_char) -> bool; + pub fn igTextLink(label: *const core::ffi::c_char) -> bool; } extern "C" { - pub fn igTextLinkOpenURL(label: *const cty::c_char, url: *const cty::c_char); + pub fn igTextLinkOpenURL(label: *const core::ffi::c_char, url: *const core::ffi::c_char); } extern "C" { pub fn igImage( @@ -2560,7 +2575,7 @@ extern "C" { } extern "C" { pub fn igImageButton( - str_id: *const cty::c_char, + str_id: *const core::ffi::c_char, user_texture_id: ImTextureID, image_size: ImVec2, uv0: ImVec2, @@ -2571,8 +2586,8 @@ extern "C" { } extern "C" { pub fn igBeginCombo( - label: *const cty::c_char, - preview_value: *const cty::c_char, + label: *const core::ffi::c_char, + preview_value: *const core::ffi::c_char, flags: ImGuiComboFlags, ) -> bool; } @@ -2581,475 +2596,475 @@ extern "C" { } extern "C" { pub fn igCombo_Str_arr( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items: *const *const cty::c_char, - items_count: cty::c_int, - popup_max_height_in_items: cty::c_int, + label: *const core::ffi::c_char, + current_item: *mut core::ffi::c_int, + items: *const *const core::ffi::c_char, + items_count: core::ffi::c_int, + popup_max_height_in_items: core::ffi::c_int, ) -> bool; } extern "C" { pub fn igCombo_Str( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items_separated_by_zeros: *const cty::c_char, - popup_max_height_in_items: cty::c_int, + label: *const core::ffi::c_char, + current_item: *mut core::ffi::c_int, + items_separated_by_zeros: *const core::ffi::c_char, + popup_max_height_in_items: core::ffi::c_int, ) -> bool; } extern "C" { pub fn igCombo_FnStrPtr( - label: *const cty::c_char, - current_item: *mut cty::c_int, + label: *const core::ffi::c_char, + current_item: *mut core::ffi::c_int, getter: ::core::option::Option< unsafe extern "C" fn( - user_data: *mut cty::c_void, - idx: cty::c_int, - ) -> *const cty::c_char, + user_data: *mut core::ffi::c_void, + idx: core::ffi::c_int, + ) -> *const core::ffi::c_char, >, - user_data: *mut cty::c_void, - items_count: cty::c_int, - popup_max_height_in_items: cty::c_int, + user_data: *mut core::ffi::c_void, + items_count: core::ffi::c_int, + popup_max_height_in_items: core::ffi::c_int, ) -> bool; } extern "C" { pub fn igDragFloat( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, v_speed: f32, v_min: f32, v_max: f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igDragFloat2( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, v_speed: f32, v_min: f32, v_max: f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igDragFloat3( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, v_speed: f32, v_min: f32, v_max: f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igDragFloat4( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, v_speed: f32, v_min: f32, v_max: f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igDragFloatRange2( - label: *const cty::c_char, + label: *const core::ffi::c_char, v_current_min: *mut f32, v_current_max: *mut f32, v_speed: f32, v_min: f32, v_max: f32, - format: *const cty::c_char, - format_max: *const cty::c_char, + format: *const core::ffi::c_char, + format_max: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igDragInt( - label: *const cty::c_char, - v: *mut cty::c_int, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, + v_min: core::ffi::c_int, + v_max: core::ffi::c_int, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igDragInt2( - label: *const cty::c_char, - v: *mut cty::c_int, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, + v_min: core::ffi::c_int, + v_max: core::ffi::c_int, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igDragInt3( - label: *const cty::c_char, - v: *mut cty::c_int, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, + v_min: core::ffi::c_int, + v_max: core::ffi::c_int, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igDragInt4( - label: *const cty::c_char, - v: *mut cty::c_int, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, + v_min: core::ffi::c_int, + v_max: core::ffi::c_int, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igDragIntRange2( - label: *const cty::c_char, - v_current_min: *mut cty::c_int, - v_current_max: *mut cty::c_int, + label: *const core::ffi::c_char, + v_current_min: *mut core::ffi::c_int, + v_current_max: *mut core::ffi::c_int, v_speed: f32, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, - format_max: *const cty::c_char, + v_min: core::ffi::c_int, + v_max: core::ffi::c_int, + format: *const core::ffi::c_char, + format_max: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igDragScalar( - label: *const cty::c_char, + label: *const core::ffi::c_char, data_type: ImGuiDataType, - p_data: *mut cty::c_void, + p_data: *mut core::ffi::c_void, v_speed: f32, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, + p_min: *const core::ffi::c_void, + p_max: *const core::ffi::c_void, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igDragScalarN( - label: *const cty::c_char, + label: *const core::ffi::c_char, data_type: ImGuiDataType, - p_data: *mut cty::c_void, - components: cty::c_int, + p_data: *mut core::ffi::c_void, + components: core::ffi::c_int, v_speed: f32, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, + p_min: *const core::ffi::c_void, + p_max: *const core::ffi::c_void, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igSliderFloat( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, v_min: f32, v_max: f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igSliderFloat2( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, v_min: f32, v_max: f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igSliderFloat3( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, v_min: f32, v_max: f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igSliderFloat4( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, v_min: f32, v_max: f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igSliderAngle( - label: *const cty::c_char, + label: *const core::ffi::c_char, v_rad: *mut f32, v_degrees_min: f32, v_degrees_max: f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igSliderInt( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, + v_min: core::ffi::c_int, + v_max: core::ffi::c_int, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igSliderInt2( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, + v_min: core::ffi::c_int, + v_max: core::ffi::c_int, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igSliderInt3( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, + v_min: core::ffi::c_int, + v_max: core::ffi::c_int, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igSliderInt4( - label: *const cty::c_char, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, + v_min: core::ffi::c_int, + v_max: core::ffi::c_int, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igSliderScalar( - label: *const cty::c_char, + label: *const core::ffi::c_char, data_type: ImGuiDataType, - p_data: *mut cty::c_void, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, + p_data: *mut core::ffi::c_void, + p_min: *const core::ffi::c_void, + p_max: *const core::ffi::c_void, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igSliderScalarN( - label: *const cty::c_char, + label: *const core::ffi::c_char, data_type: ImGuiDataType, - p_data: *mut cty::c_void, - components: cty::c_int, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, + p_data: *mut core::ffi::c_void, + components: core::ffi::c_int, + p_min: *const core::ffi::c_void, + p_max: *const core::ffi::c_void, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igVSliderFloat( - label: *const cty::c_char, + label: *const core::ffi::c_char, size: ImVec2, v: *mut f32, v_min: f32, v_max: f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igVSliderInt( - label: *const cty::c_char, + label: *const core::ffi::c_char, size: ImVec2, - v: *mut cty::c_int, - v_min: cty::c_int, - v_max: cty::c_int, - format: *const cty::c_char, + v: *mut core::ffi::c_int, + v_min: core::ffi::c_int, + v_max: core::ffi::c_int, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igVSliderScalar( - label: *const cty::c_char, + label: *const core::ffi::c_char, size: ImVec2, data_type: ImGuiDataType, - p_data: *mut cty::c_void, - p_min: *const cty::c_void, - p_max: *const cty::c_void, - format: *const cty::c_char, + p_data: *mut core::ffi::c_void, + p_min: *const core::ffi::c_void, + p_max: *const core::ffi::c_void, + format: *const core::ffi::c_char, flags: ImGuiSliderFlags, ) -> bool; } extern "C" { pub fn igInputText( - label: *const cty::c_char, - buf: *mut cty::c_char, + label: *const core::ffi::c_char, + buf: *mut core::ffi::c_char, buf_size: usize, flags: ImGuiInputTextFlags, callback: ImGuiInputTextCallback, - user_data: *mut cty::c_void, + user_data: *mut core::ffi::c_void, ) -> bool; } extern "C" { pub fn igInputTextMultiline( - label: *const cty::c_char, - buf: *mut cty::c_char, + label: *const core::ffi::c_char, + buf: *mut core::ffi::c_char, buf_size: usize, size: ImVec2, flags: ImGuiInputTextFlags, callback: ImGuiInputTextCallback, - user_data: *mut cty::c_void, + user_data: *mut core::ffi::c_void, ) -> bool; } extern "C" { pub fn igInputTextWithHint( - label: *const cty::c_char, - hint: *const cty::c_char, - buf: *mut cty::c_char, + label: *const core::ffi::c_char, + hint: *const core::ffi::c_char, + buf: *mut core::ffi::c_char, buf_size: usize, flags: ImGuiInputTextFlags, callback: ImGuiInputTextCallback, - user_data: *mut cty::c_void, + user_data: *mut core::ffi::c_void, ) -> bool; } extern "C" { pub fn igInputFloat( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, step: f32, step_fast: f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiInputTextFlags, ) -> bool; } extern "C" { pub fn igInputFloat2( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiInputTextFlags, ) -> bool; } extern "C" { pub fn igInputFloat3( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiInputTextFlags, ) -> bool; } extern "C" { pub fn igInputFloat4( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f32, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiInputTextFlags, ) -> bool; } extern "C" { pub fn igInputInt( - label: *const cty::c_char, - v: *mut cty::c_int, - step: cty::c_int, - step_fast: cty::c_int, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, + step: core::ffi::c_int, + step_fast: core::ffi::c_int, flags: ImGuiInputTextFlags, ) -> bool; } extern "C" { pub fn igInputInt2( - label: *const cty::c_char, - v: *mut cty::c_int, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, flags: ImGuiInputTextFlags, ) -> bool; } extern "C" { pub fn igInputInt3( - label: *const cty::c_char, - v: *mut cty::c_int, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, flags: ImGuiInputTextFlags, ) -> bool; } extern "C" { pub fn igInputInt4( - label: *const cty::c_char, - v: *mut cty::c_int, + label: *const core::ffi::c_char, + v: *mut core::ffi::c_int, flags: ImGuiInputTextFlags, ) -> bool; } extern "C" { pub fn igInputDouble( - label: *const cty::c_char, + label: *const core::ffi::c_char, v: *mut f64, step: f64, step_fast: f64, - format: *const cty::c_char, + format: *const core::ffi::c_char, flags: ImGuiInputTextFlags, ) -> bool; } extern "C" { pub fn igInputScalar( - label: *const cty::c_char, + label: *const core::ffi::c_char, data_type: ImGuiDataType, - p_data: *mut cty::c_void, - p_step: *const cty::c_void, - p_step_fast: *const cty::c_void, - format: *const cty::c_char, + p_data: *mut core::ffi::c_void, + p_step: *const core::ffi::c_void, + p_step_fast: *const core::ffi::c_void, + format: *const core::ffi::c_char, flags: ImGuiInputTextFlags, ) -> bool; } extern "C" { pub fn igInputScalarN( - label: *const cty::c_char, + label: *const core::ffi::c_char, data_type: ImGuiDataType, - p_data: *mut cty::c_void, - components: cty::c_int, - p_step: *const cty::c_void, - p_step_fast: *const cty::c_void, - format: *const cty::c_char, + p_data: *mut core::ffi::c_void, + components: core::ffi::c_int, + p_step: *const core::ffi::c_void, + p_step_fast: *const core::ffi::c_void, + format: *const core::ffi::c_char, flags: ImGuiInputTextFlags, ) -> bool; } extern "C" { pub fn igColorEdit3( - label: *const cty::c_char, + label: *const core::ffi::c_char, col: *mut f32, flags: ImGuiColorEditFlags, ) -> bool; } extern "C" { pub fn igColorEdit4( - label: *const cty::c_char, + label: *const core::ffi::c_char, col: *mut f32, flags: ImGuiColorEditFlags, ) -> bool; } extern "C" { pub fn igColorPicker3( - label: *const cty::c_char, + label: *const core::ffi::c_char, col: *mut f32, flags: ImGuiColorEditFlags, ) -> bool; } extern "C" { pub fn igColorPicker4( - label: *const cty::c_char, + label: *const core::ffi::c_char, col: *mut f32, flags: ImGuiColorEditFlags, ref_col: *const f32, @@ -3057,7 +3072,7 @@ extern "C" { } extern "C" { pub fn igColorButton( - desc_id: *const cty::c_char, + desc_id: *const core::ffi::c_char, col: ImVec4, flags: ImGuiColorEditFlags, size: ImVec2, @@ -3067,38 +3082,46 @@ extern "C" { pub fn igSetColorEditOptions(flags: ImGuiColorEditFlags); } extern "C" { - pub fn igTreeNode_Str(label: *const cty::c_char) -> bool; + pub fn igTreeNode_Str(label: *const core::ffi::c_char) -> bool; } extern "C" { - pub fn igTreeNode_StrStr(str_id: *const cty::c_char, fmt: *const cty::c_char, ...) -> bool; + pub fn igTreeNode_StrStr( + str_id: *const core::ffi::c_char, + fmt: *const core::ffi::c_char, + ... + ) -> bool; } extern "C" { - pub fn igTreeNode_Ptr(ptr_id: *const cty::c_void, fmt: *const cty::c_char, ...) -> bool; + pub fn igTreeNode_Ptr( + ptr_id: *const core::ffi::c_void, + fmt: *const core::ffi::c_char, + ... + ) -> bool; } extern "C" { - pub fn igTreeNodeEx_Str(label: *const cty::c_char, flags: ImGuiTreeNodeFlags) -> bool; + pub fn igTreeNodeEx_Str(label: *const core::ffi::c_char, flags: ImGuiTreeNodeFlags) -> bool; } extern "C" { pub fn igTreeNodeEx_StrStr( - str_id: *const cty::c_char, + str_id: *const core::ffi::c_char, flags: ImGuiTreeNodeFlags, - fmt: *const cty::c_char, + fmt: *const core::ffi::c_char, ... ) -> bool; } extern "C" { pub fn igTreeNodeEx_Ptr( - ptr_id: *const cty::c_void, + ptr_id: *const core::ffi::c_void, flags: ImGuiTreeNodeFlags, - fmt: *const cty::c_char, + fmt: *const core::ffi::c_char, ... ) -> bool; } extern "C" { - pub fn igTreePush_Str(str_id: *const cty::c_char); + pub fn igTreePush_Str(str_id: *const core::ffi::c_char); } extern "C" { - pub fn igTreePush_Ptr(ptr_id: *const cty::c_void); + pub fn igTreePush_Ptr(ptr_id: *const core::ffi::c_void); } extern "C" { pub fn igTreePop(); @@ -3108,13 +3131,13 @@ extern "C" { } extern "C" { pub fn igCollapsingHeader_TreeNodeFlags( - label: *const cty::c_char, + label: *const core::ffi::c_char, flags: ImGuiTreeNodeFlags, ) -> bool; } extern "C" { pub fn igCollapsingHeader_BoolPtr( - label: *const cty::c_char, + label: *const core::ffi::c_char, p_visible: *mut bool, flags: ImGuiTreeNodeFlags, ) -> bool; @@ -3127,7 +3150,7 @@ extern "C" { } extern "C" { pub fn igSelectable_Bool( - label: *const cty::c_char, + label: *const core::ffi::c_char, selected: bool, flags: ImGuiSelectableFlags, size: ImVec2, @@ -3135,7 +3158,7 @@ extern "C" { } extern "C" { pub fn igSelectable_BoolPtr( - label: *const cty::c_char, + label: *const core::ffi::c_char, p_selected: *mut bool, flags: ImGuiSelectableFlags, size: ImVec2, @@ -3144,8 +3167,8 @@ extern "C" { extern "C" { pub fn igBeginMultiSelect( flags: ImGuiMultiSelectFlags, - selection_size: cty::c_int, - items_count: cty::c_int, + selection_size: core::ffi::c_int, + items_count: core::ffi::c_int, ) -> *mut ImGuiMultiSelectIO; } extern "C" { @@ -3158,58 +3181,58 @@ extern "C" { pub fn igIsItemToggledSelection() -> bool; } extern "C" { - pub fn igBeginListBox(label: *const cty::c_char, size: ImVec2) -> bool; + pub fn igBeginListBox(label: *const core::ffi::c_char, size: ImVec2) -> bool; } extern "C" { pub fn igEndListBox(); } extern "C" { pub fn igListBox_Str_arr( - label: *const cty::c_char, - current_item: *mut cty::c_int, - items: *const *const cty::c_char, - items_count: cty::c_int, - height_in_items: cty::c_int, + label: *const core::ffi::c_char, + current_item: *mut core::ffi::c_int, + items: *const *const core::ffi::c_char, + items_count: core::ffi::c_int, + height_in_items: core::ffi::c_int, ) -> bool; } extern "C" { pub fn igListBox_FnStrPtr( - label: *const cty::c_char, - current_item: *mut cty::c_int, + label: *const core::ffi::c_char, + current_item: *mut core::ffi::c_int, getter: ::core::option::Option< unsafe extern "C" fn( - user_data: *mut cty::c_void, - idx: cty::c_int, - ) -> *const cty::c_char, + user_data: *mut core::ffi::c_void, + idx: core::ffi::c_int, + ) -> *const core::ffi::c_char, >, - user_data: *mut cty::c_void, - items_count: cty::c_int, - height_in_items: cty::c_int, + user_data: *mut core::ffi::c_void, + items_count: core::ffi::c_int, + height_in_items: core::ffi::c_int, ) -> bool; } extern "C" { pub fn igPlotLines_FloatPtr( - label: *const cty::c_char, + label: *const core::ffi::c_char, values: *const f32, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, + values_count: core::ffi::c_int, + values_offset: core::ffi::c_int, + overlay_text: *const core::ffi::c_char, scale_min: f32, scale_max: f32, graph_size: ImVec2, - stride: cty::c_int, + stride: core::ffi::c_int, ); } extern "C" { pub fn igPlotLines_FnFloatPtr( - label: *const cty::c_char, + label: *const core::ffi::c_char, values_getter: ::core::option::Option< - unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + unsafe extern "C" fn(data: *mut core::ffi::c_void, idx: core::ffi::c_int) -> f32, >, - data: *mut cty::c_void, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, + data: *mut core::ffi::c_void, + values_count: core::ffi::c_int, + values_offset: core::ffi::c_int, + overlay_text: *const core::ffi::c_char, scale_min: f32, scale_max: f32, graph_size: ImVec2, @@ -3217,43 +3240,47 @@ extern "C" { } extern "C" { pub fn igPlotHistogram_FloatPtr( - label: *const cty::c_char, + label: *const core::ffi::c_char, values: *const f32, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, + values_count: core::ffi::c_int, + values_offset: core::ffi::c_int, + overlay_text: *const core::ffi::c_char, scale_min: f32, scale_max: f32, graph_size: ImVec2, - stride: cty::c_int, + stride: core::ffi::c_int, ); } extern "C" { pub fn igPlotHistogram_FnFloatPtr( - label: *const cty::c_char, + label: *const core::ffi::c_char, values_getter: ::core::option::Option< - unsafe extern "C" fn(data: *mut cty::c_void, idx: cty::c_int) -> f32, + unsafe extern "C" fn(data: *mut core::ffi::c_void, idx: core::ffi::c_int) -> f32, >, - data: *mut cty::c_void, - values_count: cty::c_int, - values_offset: cty::c_int, - overlay_text: *const cty::c_char, + data: *mut core::ffi::c_void, + values_count: core::ffi::c_int, + values_offset: core::ffi::c_int, + overlay_text: *const core::ffi::c_char, scale_min: f32, scale_max: f32, graph_size: ImVec2, ); } extern "C" { - pub fn igValue_Bool(prefix: *const cty::c_char, b: bool); + pub fn igValue_Bool(prefix: *const core::ffi::c_char, b: bool); } extern "C" { - pub fn igValue_Int(prefix: *const cty::c_char, v: cty::c_int); + pub fn igValue_Int(prefix: *const core::ffi::c_char, v: core::ffi::c_int); } extern "C" { - pub fn igValue_Uint(prefix: *const cty::c_char, v: cty::c_uint); + pub fn igValue_Uint(prefix: *const core::ffi::c_char, v: core::ffi::c_uint); } extern "C" { - pub fn igValue_Float(prefix: *const cty::c_char, v: f32, float_format: *const cty::c_char); + pub fn igValue_Float( + prefix: *const core::ffi::c_char, + v: f32, + float_format: *const core::ffi::c_char, + ); } extern "C" { pub fn igBeginMenuBar() -> bool; @@ -3268,23 +3295,23 @@ extern "C" { pub fn igEndMainMenuBar(); } extern "C" { - pub fn igBeginMenu(label: *const cty::c_char, enabled: bool) -> bool; + pub fn igBeginMenu(label: *const core::ffi::c_char, enabled: bool) -> bool; } extern "C" { pub fn igEndMenu(); } extern "C" { pub fn igMenuItem_Bool( - label: *const cty::c_char, - shortcut: *const cty::c_char, + label: *const core::ffi::c_char, + shortcut: *const core::ffi::c_char, selected: bool, enabled: bool, ) -> bool; } extern "C" { pub fn igMenuItem_BoolPtr( - label: *const cty::c_char, - shortcut: *const cty::c_char, + label: *const core::ffi::c_char, + shortcut: *const core::ffi::c_char, p_selected: *mut bool, enabled: bool, ) -> bool; @@ -3296,20 +3323,20 @@ extern "C" { pub fn igEndTooltip(); } extern "C" { - pub fn igSetTooltip(fmt: *const cty::c_char, ...); + pub fn igSetTooltip(fmt: *const core::ffi::c_char, ...); } extern "C" { pub fn igBeginItemTooltip() -> bool; } extern "C" { - pub fn igSetItemTooltip(fmt: *const cty::c_char, ...); + pub fn igSetItemTooltip(fmt: *const core::ffi::c_char, ...); } extern "C" { - pub fn igBeginPopup(str_id: *const cty::c_char, flags: ImGuiWindowFlags) -> bool; + pub fn igBeginPopup(str_id: *const core::ffi::c_char, flags: ImGuiWindowFlags) -> bool; } extern "C" { pub fn igBeginPopupModal( - name: *const cty::c_char, + name: *const core::ffi::c_char, p_open: *mut bool, flags: ImGuiWindowFlags, ) -> bool; @@ -3318,42 +3345,42 @@ extern "C" { pub fn igEndPopup(); } extern "C" { - pub fn igOpenPopup_Str(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); + pub fn igOpenPopup_Str(str_id: *const core::ffi::c_char, popup_flags: ImGuiPopupFlags); } extern "C" { pub fn igOpenPopup_ID(id: ImGuiID, popup_flags: ImGuiPopupFlags); } extern "C" { - pub fn igOpenPopupOnItemClick(str_id: *const cty::c_char, popup_flags: ImGuiPopupFlags); + pub fn igOpenPopupOnItemClick(str_id: *const core::ffi::c_char, popup_flags: ImGuiPopupFlags); } extern "C" { pub fn igCloseCurrentPopup(); } extern "C" { pub fn igBeginPopupContextItem( - str_id: *const cty::c_char, + str_id: *const core::ffi::c_char, popup_flags: ImGuiPopupFlags, ) -> bool; } extern "C" { pub fn igBeginPopupContextWindow( - str_id: *const cty::c_char, + str_id: *const core::ffi::c_char, popup_flags: ImGuiPopupFlags, ) -> bool; } extern "C" { pub fn igBeginPopupContextVoid( - str_id: *const cty::c_char, + str_id: *const core::ffi::c_char, popup_flags: ImGuiPopupFlags, ) -> bool; } extern "C" { - pub fn igIsPopupOpen(str_id: *const cty::c_char, flags: ImGuiPopupFlags) -> bool; + pub fn igIsPopupOpen(str_id: *const core::ffi::c_char, flags: ImGuiPopupFlags) -> bool; } extern "C" { pub fn igBeginTable( - str_id: *const cty::c_char, - columns: cty::c_int, + str_id: *const core::ffi::c_char, + columns: core::ffi::c_int, flags: ImGuiTableFlags, outer_size: ImVec2, inner_width: f32, @@ -3369,21 +3396,21 @@ extern "C" { pub fn igTableNextColumn() -> bool; } extern "C" { - pub fn igTableSetColumnIndex(column_n: cty::c_int) -> bool; + pub fn igTableSetColumnIndex(column_n: core::ffi::c_int) -> bool; } extern "C" { pub fn igTableSetupColumn( - label: *const cty::c_char, + label: *const core::ffi::c_char, flags: ImGuiTableColumnFlags, init_width_or_weight: f32, user_id: ImGuiID, ); } extern "C" { - pub fn igTableSetupScrollFreeze(cols: cty::c_int, rows: cty::c_int); + pub fn igTableSetupScrollFreeze(cols: core::ffi::c_int, rows: core::ffi::c_int); } extern "C" { - pub fn igTableHeader(label: *const cty::c_char); + pub fn igTableHeader(label: *const core::ffi::c_char); } extern "C" { pub fn igTableHeadersRow(); @@ -3395,62 +3422,62 @@ extern "C" { pub fn igTableGetSortSpecs() -> *mut ImGuiTableSortSpecs; } extern "C" { - pub fn igTableGetColumnCount() -> cty::c_int; + pub fn igTableGetColumnCount() -> core::ffi::c_int; } extern "C" { - pub fn igTableGetColumnIndex() -> cty::c_int; + pub fn igTableGetColumnIndex() -> core::ffi::c_int; } extern "C" { - pub fn igTableGetRowIndex() -> cty::c_int; + pub fn igTableGetRowIndex() -> core::ffi::c_int; } extern "C" { - pub fn igTableGetColumnName(column_n: cty::c_int) -> *const cty::c_char; + pub fn igTableGetColumnName(column_n: core::ffi::c_int) -> *const core::ffi::c_char; } extern "C" { - pub fn igTableGetColumnFlags(column_n: cty::c_int) -> ImGuiTableColumnFlags; + pub fn igTableGetColumnFlags(column_n: core::ffi::c_int) -> ImGuiTableColumnFlags; } extern "C" { - pub fn igTableSetColumnEnabled(column_n: cty::c_int, v: bool); + pub fn igTableSetColumnEnabled(column_n: core::ffi::c_int, v: bool); } extern "C" { - pub fn igTableGetHoveredColumn() -> cty::c_int; + pub fn igTableGetHoveredColumn() -> core::ffi::c_int; } extern "C" { - pub fn igTableSetBgColor(target: ImGuiTableBgTarget, color: ImU32, column_n: cty::c_int); + pub fn igTableSetBgColor(target: ImGuiTableBgTarget, color: ImU32, column_n: core::ffi::c_int); } extern "C" { - pub fn igColumns(count: cty::c_int, id: *const cty::c_char, borders: bool); + pub fn igColumns(count: core::ffi::c_int, id: *const core::ffi::c_char, borders: bool); } extern "C" { pub fn igNextColumn(); } extern "C" { - pub fn igGetColumnIndex() -> cty::c_int; + pub fn igGetColumnIndex() -> core::ffi::c_int; } extern "C" { - pub fn igGetColumnWidth(column_index: cty::c_int) -> f32; + pub fn igGetColumnWidth(column_index: core::ffi::c_int) -> f32; } extern "C" { - pub fn igSetColumnWidth(column_index: cty::c_int, width: f32); + pub fn igSetColumnWidth(column_index: core::ffi::c_int, width: f32); } extern "C" { - pub fn igGetColumnOffset(column_index: cty::c_int) -> f32; + pub fn igGetColumnOffset(column_index: core::ffi::c_int) -> f32; } extern "C" { - pub fn igSetColumnOffset(column_index: cty::c_int, offset_x: f32); + pub fn igSetColumnOffset(column_index: core::ffi::c_int, offset_x: f32); } extern "C" { - pub fn igGetColumnsCount() -> cty::c_int; + pub fn igGetColumnsCount() -> core::ffi::c_int; } extern "C" { - pub fn igBeginTabBar(str_id: *const cty::c_char, flags: ImGuiTabBarFlags) -> bool; + pub fn igBeginTabBar(str_id: *const core::ffi::c_char, flags: ImGuiTabBarFlags) -> bool; } extern "C" { pub fn igEndTabBar(); } extern "C" { pub fn igBeginTabItem( - label: *const cty::c_char, + label: *const core::ffi::c_char, p_open: *mut bool, flags: ImGuiTabItemFlags, ) -> bool; @@ -3459,19 +3486,19 @@ extern "C" { pub fn igEndTabItem(); } extern "C" { - pub fn igTabItemButton(label: *const cty::c_char, flags: ImGuiTabItemFlags) -> bool; + pub fn igTabItemButton(label: *const core::ffi::c_char, flags: ImGuiTabItemFlags) -> bool; } extern "C" { - pub fn igSetTabItemClosed(tab_or_docked_window_label: *const cty::c_char); + pub fn igSetTabItemClosed(tab_or_docked_window_label: *const core::ffi::c_char); } extern "C" { - pub fn igLogToTTY(auto_open_depth: cty::c_int); + pub fn igLogToTTY(auto_open_depth: core::ffi::c_int); } extern "C" { - pub fn igLogToFile(auto_open_depth: cty::c_int, filename: *const cty::c_char); + pub fn igLogToFile(auto_open_depth: core::ffi::c_int, filename: *const core::ffi::c_char); } extern "C" { - pub fn igLogToClipboard(auto_open_depth: cty::c_int); + pub fn igLogToClipboard(auto_open_depth: core::ffi::c_int); } extern "C" { pub fn igLogFinish(); @@ -3484,8 +3511,8 @@ extern "C" { } extern "C" { pub fn igSetDragDropPayload( - type_: *const cty::c_char, - data: *const cty::c_void, + type_: *const core::ffi::c_char, + data: *const core::ffi::c_void, sz: usize, cond: ImGuiCond, ) -> bool; @@ -3498,7 +3525,7 @@ extern "C" { } extern "C" { pub fn igAcceptDragDropPayload( - type_: *const cty::c_char, + type_: *const core::ffi::c_char, flags: ImGuiDragDropFlags, ) -> *const ImGuiPayload; } @@ -3528,7 +3555,7 @@ extern "C" { pub fn igSetItemDefaultFocus(); } extern "C" { - pub fn igSetKeyboardFocusHere(offset: cty::c_int); + pub fn igSetKeyboardFocusHere(offset: core::ffi::c_int); } extern "C" { pub fn igSetNextItemAllowOverlap(); @@ -3603,13 +3630,13 @@ extern "C" { pub fn igGetTime() -> f64; } extern "C" { - pub fn igGetFrameCount() -> cty::c_int; + pub fn igGetFrameCount() -> core::ffi::c_int; } extern "C" { pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; } extern "C" { - pub fn igGetStyleColorName(idx: ImGuiCol) -> *const cty::c_char; + pub fn igGetStyleColorName(idx: ImGuiCol) -> *const core::ffi::c_char; } extern "C" { pub fn igSetStateStorage(storage: *mut ImGuiStorage); @@ -3620,8 +3647,8 @@ extern "C" { extern "C" { pub fn igCalcTextSize( pOut: *mut ImVec2, - text: *const cty::c_char, - text_end: *const cty::c_char, + text: *const core::ffi::c_char, + text_end: *const core::ffi::c_char, hide_text_after_double_hash: bool, wrap_width: f32, ); @@ -3665,10 +3692,10 @@ extern "C" { pub fn igIsKeyChordPressed(key_chord: ImGuiKeyChord) -> bool; } extern "C" { - pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> cty::c_int; + pub fn igGetKeyPressedAmount(key: ImGuiKey, repeat_delay: f32, rate: f32) -> core::ffi::c_int; } extern "C" { - pub fn igGetKeyName(key: ImGuiKey) -> *const cty::c_char; + pub fn igGetKeyName(key: ImGuiKey) -> *const core::ffi::c_char; } extern "C" { pub fn igSetNextFrameWantCaptureKeyboard(want_capture_keyboard: bool); @@ -3695,7 +3722,7 @@ extern "C" { pub fn igIsMouseDoubleClicked(button: ImGuiMouseButton) -> bool; } extern "C" { - pub fn igGetMouseClickedCount(button: ImGuiMouseButton) -> cty::c_int; + pub fn igGetMouseClickedCount(button: ImGuiMouseButton) -> core::ffi::c_int; } extern "C" { pub fn igIsMouseHoveringRect(r_min: ImVec2, r_max: ImVec2, clip: bool) -> bool; @@ -3731,25 +3758,25 @@ extern "C" { pub fn igSetNextFrameWantCaptureMouse(want_capture_mouse: bool); } extern "C" { - pub fn igGetClipboardText() -> *const cty::c_char; + pub fn igGetClipboardText() -> *const core::ffi::c_char; } extern "C" { - pub fn igSetClipboardText(text: *const cty::c_char); + pub fn igSetClipboardText(text: *const core::ffi::c_char); } extern "C" { - pub fn igLoadIniSettingsFromDisk(ini_filename: *const cty::c_char); + pub fn igLoadIniSettingsFromDisk(ini_filename: *const core::ffi::c_char); } extern "C" { - pub fn igLoadIniSettingsFromMemory(ini_data: *const cty::c_char, ini_size: usize); + pub fn igLoadIniSettingsFromMemory(ini_data: *const core::ffi::c_char, ini_size: usize); } extern "C" { - pub fn igSaveIniSettingsToDisk(ini_filename: *const cty::c_char); + pub fn igSaveIniSettingsToDisk(ini_filename: *const core::ffi::c_char); } extern "C" { - pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const cty::c_char; + pub fn igSaveIniSettingsToMemory(out_ini_size: *mut usize) -> *const core::ffi::c_char; } extern "C" { - pub fn igDebugTextEncoding(text: *const cty::c_char); + pub fn igDebugTextEncoding(text: *const core::ffi::c_char); } extern "C" { pub fn igDebugFlashStyleColor(idx: ImGuiCol); @@ -3759,7 +3786,7 @@ extern "C" { } extern "C" { pub fn igDebugCheckVersionAndDataLayout( - version_str: *const cty::c_char, + version_str: *const core::ffi::c_char, sz_io: usize, sz_style: usize, sz_vec2: usize, @@ -3769,27 +3796,27 @@ extern "C" { ) -> bool; } extern "C" { - pub fn igDebugLog(fmt: *const cty::c_char, ...); + pub fn igDebugLog(fmt: *const core::ffi::c_char, ...); } extern "C" { pub fn igSetAllocatorFunctions( alloc_func: ImGuiMemAllocFunc, free_func: ImGuiMemFreeFunc, - user_data: *mut cty::c_void, + user_data: *mut core::ffi::c_void, ); } extern "C" { pub fn igGetAllocatorFunctions( p_alloc_func: *mut ImGuiMemAllocFunc, p_free_func: *mut ImGuiMemFreeFunc, - p_user_data: *mut *mut cty::c_void, + p_user_data: *mut *mut core::ffi::c_void, ); } extern "C" { - pub fn igMemAlloc(size: usize) -> *mut cty::c_void; + pub fn igMemAlloc(size: usize) -> *mut core::ffi::c_void; } extern "C" { - pub fn igMemFree(ptr: *mut cty::c_void); + pub fn igMemFree(ptr: *mut core::ffi::c_void); } extern "C" { pub fn ImGuiTableSortSpecs_ImGuiTableSortSpecs() -> *mut ImGuiTableSortSpecs; @@ -3822,7 +3849,7 @@ extern "C" { pub fn ImGuiIO_AddMousePosEvent(self_: *mut ImGuiIO, x: f32, y: f32); } extern "C" { - pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: cty::c_int, down: bool); + pub fn ImGuiIO_AddMouseButtonEvent(self_: *mut ImGuiIO, button: core::ffi::c_int, down: bool); } extern "C" { pub fn ImGuiIO_AddMouseWheelEvent(self_: *mut ImGuiIO, wheel_x: f32, wheel_y: f32); @@ -3834,21 +3861,21 @@ extern "C" { pub fn ImGuiIO_AddFocusEvent(self_: *mut ImGuiIO, focused: bool); } extern "C" { - pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: cty::c_uint); + pub fn ImGuiIO_AddInputCharacter(self_: *mut ImGuiIO, c: core::ffi::c_uint); } extern "C" { pub fn ImGuiIO_AddInputCharacterUTF16(self_: *mut ImGuiIO, c: ImWchar16); } extern "C" { - pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const cty::c_char); + pub fn ImGuiIO_AddInputCharactersUTF8(self_: *mut ImGuiIO, str_: *const core::ffi::c_char); } extern "C" { pub fn ImGuiIO_SetKeyEventNativeData( self_: *mut ImGuiIO, key: ImGuiKey, - native_keycode: cty::c_int, - native_scancode: cty::c_int, - native_legacy_index: cty::c_int, + native_keycode: core::ffi::c_int, + native_scancode: core::ffi::c_int, + native_legacy_index: core::ffi::c_int, ); } extern "C" { @@ -3878,16 +3905,16 @@ extern "C" { extern "C" { pub fn ImGuiInputTextCallbackData_DeleteChars( self_: *mut ImGuiInputTextCallbackData, - pos: cty::c_int, - bytes_count: cty::c_int, + pos: core::ffi::c_int, + bytes_count: core::ffi::c_int, ); } extern "C" { pub fn ImGuiInputTextCallbackData_InsertChars( self_: *mut ImGuiInputTextCallbackData, - pos: cty::c_int, - text: *const cty::c_char, - text_end: *const cty::c_char, + pos: core::ffi::c_int, + text: *const core::ffi::c_char, + text_end: *const core::ffi::c_char, ); } extern "C" { @@ -3909,7 +3936,10 @@ extern "C" { pub fn ImGuiPayload_Clear(self_: *mut ImGuiPayload); } extern "C" { - pub fn ImGuiPayload_IsDataType(self_: *mut ImGuiPayload, type_: *const cty::c_char) -> bool; + pub fn ImGuiPayload_IsDataType( + self_: *mut ImGuiPayload, + type_: *const core::ffi::c_char, + ) -> bool; } extern "C" { pub fn ImGuiPayload_IsPreview(self_: *mut ImGuiPayload) -> bool; @@ -3925,7 +3955,7 @@ extern "C" { } extern "C" { pub fn ImGuiTextFilter_ImGuiTextFilter( - default_filter: *const cty::c_char, + default_filter: *const core::ffi::c_char, ) -> *mut ImGuiTextFilter; } extern "C" { @@ -3934,15 +3964,15 @@ extern "C" { extern "C" { pub fn ImGuiTextFilter_Draw( self_: *mut ImGuiTextFilter, - label: *const cty::c_char, + label: *const core::ffi::c_char, width: f32, ) -> bool; } extern "C" { pub fn ImGuiTextFilter_PassFilter( self_: *mut ImGuiTextFilter, - text: *const cty::c_char, - text_end: *const cty::c_char, + text: *const core::ffi::c_char, + text_end: *const core::ffi::c_char, ) -> bool; } extern "C" { @@ -3962,8 +3992,8 @@ extern "C" { } extern "C" { pub fn ImGuiTextRange_ImGuiTextRange_Str( - _b: *const cty::c_char, - _e: *const cty::c_char, + _b: *const core::ffi::c_char, + _e: *const core::ffi::c_char, ) -> *mut ImGuiTextRange; } extern "C" { @@ -3972,7 +4002,7 @@ extern "C" { extern "C" { pub fn ImGuiTextRange_split( self_: *mut ImGuiTextRange, - separator: cty::c_char, + separator: core::ffi::c_char, out: *mut ImVector_ImGuiTextRange, ); } @@ -3983,13 +4013,13 @@ extern "C" { pub fn ImGuiTextBuffer_destroy(self_: *mut ImGuiTextBuffer); } extern "C" { - pub fn ImGuiTextBuffer_begin(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; + pub fn ImGuiTextBuffer_begin(self_: *mut ImGuiTextBuffer) -> *const core::ffi::c_char; } extern "C" { - pub fn ImGuiTextBuffer_end(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; + pub fn ImGuiTextBuffer_end(self_: *mut ImGuiTextBuffer) -> *const core::ffi::c_char; } extern "C" { - pub fn ImGuiTextBuffer_size(self_: *mut ImGuiTextBuffer) -> cty::c_int; + pub fn ImGuiTextBuffer_size(self_: *mut ImGuiTextBuffer) -> core::ffi::c_int; } extern "C" { pub fn ImGuiTextBuffer_empty(self_: *mut ImGuiTextBuffer) -> bool; @@ -3998,22 +4028,22 @@ extern "C" { pub fn ImGuiTextBuffer_clear(self_: *mut ImGuiTextBuffer); } extern "C" { - pub fn ImGuiTextBuffer_reserve(self_: *mut ImGuiTextBuffer, capacity: cty::c_int); + pub fn ImGuiTextBuffer_reserve(self_: *mut ImGuiTextBuffer, capacity: core::ffi::c_int); } extern "C" { - pub fn ImGuiTextBuffer_c_str(self_: *mut ImGuiTextBuffer) -> *const cty::c_char; + pub fn ImGuiTextBuffer_c_str(self_: *mut ImGuiTextBuffer) -> *const core::ffi::c_char; } extern "C" { pub fn ImGuiTextBuffer_append( self_: *mut ImGuiTextBuffer, - str_: *const cty::c_char, - str_end: *const cty::c_char, + str_: *const core::ffi::c_char, + str_end: *const core::ffi::c_char, ); } extern "C" { pub fn ImGuiStoragePair_ImGuiStoragePair_Int( _key: ImGuiID, - _val: cty::c_int, + _val: core::ffi::c_int, ) -> *mut ImGuiStoragePair; } extern "C" { @@ -4028,7 +4058,7 @@ extern "C" { extern "C" { pub fn ImGuiStoragePair_ImGuiStoragePair_Ptr( _key: ImGuiID, - _val: *mut cty::c_void, + _val: *mut core::ffi::c_void, ) -> *mut ImGuiStoragePair; } extern "C" { @@ -4038,11 +4068,11 @@ extern "C" { pub fn ImGuiStorage_GetInt( self_: *mut ImGuiStorage, key: ImGuiID, - default_val: cty::c_int, - ) -> cty::c_int; + default_val: core::ffi::c_int, + ) -> core::ffi::c_int; } extern "C" { - pub fn ImGuiStorage_SetInt(self_: *mut ImGuiStorage, key: ImGuiID, val: cty::c_int); + pub fn ImGuiStorage_SetInt(self_: *mut ImGuiStorage, key: ImGuiID, val: core::ffi::c_int); } extern "C" { pub fn ImGuiStorage_GetBool(self_: *mut ImGuiStorage, key: ImGuiID, default_val: bool) -> bool; @@ -4057,17 +4087,24 @@ extern "C" { pub fn ImGuiStorage_SetFloat(self_: *mut ImGuiStorage, key: ImGuiID, val: f32); } extern "C" { - pub fn ImGuiStorage_GetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID) -> *mut cty::c_void; + pub fn ImGuiStorage_GetVoidPtr( + self_: *mut ImGuiStorage, + key: ImGuiID, + ) -> *mut core::ffi::c_void; } extern "C" { - pub fn ImGuiStorage_SetVoidPtr(self_: *mut ImGuiStorage, key: ImGuiID, val: *mut cty::c_void); + pub fn ImGuiStorage_SetVoidPtr( + self_: *mut ImGuiStorage, + key: ImGuiID, + val: *mut core::ffi::c_void, + ); } extern "C" { pub fn ImGuiStorage_GetIntRef( self_: *mut ImGuiStorage, key: ImGuiID, - default_val: cty::c_int, - ) -> *mut cty::c_int; + default_val: core::ffi::c_int, + ) -> *mut core::ffi::c_int; } extern "C" { pub fn ImGuiStorage_GetBoolRef( @@ -4087,14 +4124,14 @@ extern "C" { pub fn ImGuiStorage_GetVoidPtrRef( self_: *mut ImGuiStorage, key: ImGuiID, - default_val: *mut cty::c_void, - ) -> *mut *mut cty::c_void; + default_val: *mut core::ffi::c_void, + ) -> *mut *mut core::ffi::c_void; } extern "C" { pub fn ImGuiStorage_BuildSortByKey(self_: *mut ImGuiStorage); } extern "C" { - pub fn ImGuiStorage_SetAllInt(self_: *mut ImGuiStorage, val: cty::c_int); + pub fn ImGuiStorage_SetAllInt(self_: *mut ImGuiStorage, val: core::ffi::c_int); } extern "C" { pub fn ImGuiListClipper_ImGuiListClipper() -> *mut ImGuiListClipper; @@ -4105,7 +4142,7 @@ extern "C" { extern "C" { pub fn ImGuiListClipper_Begin( self_: *mut ImGuiListClipper, - items_count: cty::c_int, + items_count: core::ffi::c_int, items_height: f32, ); } @@ -4118,18 +4155,21 @@ extern "C" { extern "C" { pub fn ImGuiListClipper_IncludeItemByIndex( self_: *mut ImGuiListClipper, - item_index: cty::c_int, + item_index: core::ffi::c_int, ); } extern "C" { pub fn ImGuiListClipper_IncludeItemsByIndex( self_: *mut ImGuiListClipper, - item_begin: cty::c_int, - item_end: cty::c_int, + item_begin: core::ffi::c_int, + item_end: core::ffi::c_int, ); } extern "C" { - pub fn ImGuiListClipper_SeekCursorForItem(self_: *mut ImGuiListClipper, item_index: cty::c_int); + pub fn ImGuiListClipper_SeekCursorForItem( + self_: *mut ImGuiListClipper, + item_index: core::ffi::c_int, + ); } extern "C" { pub fn ImColor_ImColor_Nil() -> *mut ImColor; @@ -4145,10 +4185,10 @@ extern "C" { } extern "C" { pub fn ImColor_ImColor_Int( - r: cty::c_int, - g: cty::c_int, - b: cty::c_int, - a: cty::c_int, + r: core::ffi::c_int, + g: core::ffi::c_int, + b: core::ffi::c_int, + a: core::ffi::c_int, ) -> *mut ImColor; } extern "C" { @@ -4197,14 +4237,14 @@ extern "C" { extern "C" { pub fn ImGuiSelectionBasicStorage_GetNextSelectedItem( self_: *mut ImGuiSelectionBasicStorage, - opaque_it: *mut *mut cty::c_void, + opaque_it: *mut *mut core::ffi::c_void, out_id: *mut ImGuiID, ) -> bool; } extern "C" { pub fn ImGuiSelectionBasicStorage_GetStorageIdFromIndex( self_: *mut ImGuiSelectionBasicStorage, - idx: cty::c_int, + idx: core::ffi::c_int, ) -> ImGuiID; } extern "C" { @@ -4245,7 +4285,7 @@ extern "C" { pub fn ImDrawListSplitter_Split( self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList, - count: cty::c_int, + count: core::ffi::c_int, ); } extern "C" { @@ -4255,7 +4295,7 @@ extern "C" { pub fn ImDrawListSplitter_SetCurrentChannel( self_: *mut ImDrawListSplitter, draw_list: *mut ImDrawList, - channel_idx: cty::c_int, + channel_idx: core::ffi::c_int, ); } extern "C" { @@ -4377,7 +4417,7 @@ extern "C" { center: ImVec2, radius: f32, col: ImU32, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, thickness: f32, ); } @@ -4387,7 +4427,7 @@ extern "C" { center: ImVec2, radius: f32, col: ImU32, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, ); } extern "C" { @@ -4396,7 +4436,7 @@ extern "C" { center: ImVec2, radius: f32, col: ImU32, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, thickness: f32, ); } @@ -4406,7 +4446,7 @@ extern "C" { center: ImVec2, radius: f32, col: ImU32, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, ); } extern "C" { @@ -4416,7 +4456,7 @@ extern "C" { radius: ImVec2, col: ImU32, rot: f32, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, thickness: f32, ); } @@ -4427,7 +4467,7 @@ extern "C" { radius: ImVec2, col: ImU32, rot: f32, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, ); } extern "C" { @@ -4435,8 +4475,8 @@ extern "C" { self_: *mut ImDrawList, pos: ImVec2, col: ImU32, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, + text_begin: *const core::ffi::c_char, + text_end: *const core::ffi::c_char, ); } extern "C" { @@ -4446,8 +4486,8 @@ extern "C" { font_size: f32, pos: ImVec2, col: ImU32, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, + text_begin: *const core::ffi::c_char, + text_end: *const core::ffi::c_char, wrap_width: f32, cpu_fine_clip_rect: *const ImVec4, ); @@ -4461,7 +4501,7 @@ extern "C" { p4: ImVec2, col: ImU32, thickness: f32, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, ); } extern "C" { @@ -4472,14 +4512,14 @@ extern "C" { p3: ImVec2, col: ImU32, thickness: f32, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, ); } extern "C" { pub fn ImDrawList_AddPolyline( self_: *mut ImDrawList, points: *const ImVec2, - num_points: cty::c_int, + num_points: core::ffi::c_int, col: ImU32, flags: ImDrawFlags, thickness: f32, @@ -4489,7 +4529,7 @@ extern "C" { pub fn ImDrawList_AddConvexPolyFilled( self_: *mut ImDrawList, points: *const ImVec2, - num_points: cty::c_int, + num_points: core::ffi::c_int, col: ImU32, ); } @@ -4497,7 +4537,7 @@ extern "C" { pub fn ImDrawList_AddConcavePolyFilled( self_: *mut ImDrawList, points: *const ImVec2, - num_points: cty::c_int, + num_points: core::ffi::c_int, col: ImU32, ); } @@ -4570,7 +4610,7 @@ extern "C" { radius: f32, a_min: f32, a_max: f32, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, ); } extern "C" { @@ -4578,8 +4618,8 @@ extern "C" { self_: *mut ImDrawList, center: ImVec2, radius: f32, - a_min_of_12: cty::c_int, - a_max_of_12: cty::c_int, + a_min_of_12: core::ffi::c_int, + a_max_of_12: core::ffi::c_int, ); } extern "C" { @@ -4590,7 +4630,7 @@ extern "C" { rot: f32, a_min: f32, a_max: f32, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, ); } extern "C" { @@ -4599,7 +4639,7 @@ extern "C" { p2: ImVec2, p3: ImVec2, p4: ImVec2, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, ); } extern "C" { @@ -4607,7 +4647,7 @@ extern "C" { self_: *mut ImDrawList, p2: ImVec2, p3: ImVec2, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, ); } extern "C" { @@ -4623,7 +4663,7 @@ extern "C" { pub fn ImDrawList_AddCallback( self_: *mut ImDrawList, callback: ImDrawCallback, - callback_data: *mut cty::c_void, + callback_data: *mut core::ffi::c_void, ); } extern "C" { @@ -4633,26 +4673,26 @@ extern "C" { pub fn ImDrawList_CloneOutput(self_: *mut ImDrawList) -> *mut ImDrawList; } extern "C" { - pub fn ImDrawList_ChannelsSplit(self_: *mut ImDrawList, count: cty::c_int); + pub fn ImDrawList_ChannelsSplit(self_: *mut ImDrawList, count: core::ffi::c_int); } extern "C" { pub fn ImDrawList_ChannelsMerge(self_: *mut ImDrawList); } extern "C" { - pub fn ImDrawList_ChannelsSetCurrent(self_: *mut ImDrawList, n: cty::c_int); + pub fn ImDrawList_ChannelsSetCurrent(self_: *mut ImDrawList, n: core::ffi::c_int); } extern "C" { pub fn ImDrawList_PrimReserve( self_: *mut ImDrawList, - idx_count: cty::c_int, - vtx_count: cty::c_int, + idx_count: core::ffi::c_int, + vtx_count: core::ffi::c_int, ); } extern "C" { pub fn ImDrawList_PrimUnreserve( self_: *mut ImDrawList, - idx_count: cty::c_int, - vtx_count: cty::c_int, + idx_count: core::ffi::c_int, + vtx_count: core::ffi::c_int, ); } extern "C" { @@ -4719,16 +4759,16 @@ extern "C" { pub fn ImDrawList__CalcCircleAutoSegmentCount( self_: *mut ImDrawList, radius: f32, - ) -> cty::c_int; + ) -> core::ffi::c_int; } extern "C" { pub fn ImDrawList__PathArcToFastEx( self_: *mut ImDrawList, center: ImVec2, radius: f32, - a_min_sample: cty::c_int, - a_max_sample: cty::c_int, - a_step: cty::c_int, + a_min_sample: core::ffi::c_int, + a_max_sample: core::ffi::c_int, + a_step: core::ffi::c_int, ); } extern "C" { @@ -4738,7 +4778,7 @@ extern "C" { radius: f32, a_min: f32, a_max: f32, - num_segments: cty::c_int, + num_segments: core::ffi::c_int, ); } extern "C" { @@ -4786,8 +4826,8 @@ extern "C" { extern "C" { pub fn ImFontGlyphRangesBuilder_AddText( self_: *mut ImFontGlyphRangesBuilder, - text: *const cty::c_char, - text_end: *const cty::c_char, + text: *const core::ffi::c_char, + text_end: *const core::ffi::c_char, ); } extern "C" { @@ -4832,7 +4872,7 @@ extern "C" { extern "C" { pub fn ImFontAtlas_AddFontFromFileTTF( self_: *mut ImFontAtlas, - filename: *const cty::c_char, + filename: *const core::ffi::c_char, size_pixels: f32, font_cfg: *const ImFontConfig, glyph_ranges: *const ImWchar, @@ -4841,8 +4881,8 @@ extern "C" { extern "C" { pub fn ImFontAtlas_AddFontFromMemoryTTF( self_: *mut ImFontAtlas, - font_data: *mut cty::c_void, - font_data_size: cty::c_int, + font_data: *mut core::ffi::c_void, + font_data_size: core::ffi::c_int, size_pixels: f32, font_cfg: *const ImFontConfig, glyph_ranges: *const ImWchar, @@ -4851,8 +4891,8 @@ extern "C" { extern "C" { pub fn ImFontAtlas_AddFontFromMemoryCompressedTTF( self_: *mut ImFontAtlas, - compressed_font_data: *const cty::c_void, - compressed_font_data_size: cty::c_int, + compressed_font_data: *const core::ffi::c_void, + compressed_font_data_size: core::ffi::c_int, size_pixels: f32, font_cfg: *const ImFontConfig, glyph_ranges: *const ImWchar, @@ -4861,7 +4901,7 @@ extern "C" { extern "C" { pub fn ImFontAtlas_AddFontFromMemoryCompressedBase85TTF( self_: *mut ImFontAtlas, - compressed_font_data_base85: *const cty::c_char, + compressed_font_data_base85: *const core::ffi::c_char, size_pixels: f32, font_cfg: *const ImFontConfig, glyph_ranges: *const ImWchar, @@ -4885,19 +4925,19 @@ extern "C" { extern "C" { pub fn ImFontAtlas_GetTexDataAsAlpha8( self_: *mut ImFontAtlas, - out_pixels: *mut *mut cty::c_uchar, - out_width: *mut cty::c_int, - out_height: *mut cty::c_int, - out_bytes_per_pixel: *mut cty::c_int, + out_pixels: *mut *mut core::ffi::c_uchar, + out_width: *mut core::ffi::c_int, + out_height: *mut core::ffi::c_int, + out_bytes_per_pixel: *mut core::ffi::c_int, ); } extern "C" { pub fn ImFontAtlas_GetTexDataAsRGBA32( self_: *mut ImFontAtlas, - out_pixels: *mut *mut cty::c_uchar, - out_width: *mut cty::c_int, - out_height: *mut cty::c_int, - out_bytes_per_pixel: *mut cty::c_int, + out_pixels: *mut *mut core::ffi::c_uchar, + out_width: *mut core::ffi::c_int, + out_height: *mut core::ffi::c_int, + out_bytes_per_pixel: *mut core::ffi::c_int, ); } extern "C" { @@ -4938,25 +4978,25 @@ extern "C" { extern "C" { pub fn ImFontAtlas_AddCustomRectRegular( self_: *mut ImFontAtlas, - width: cty::c_int, - height: cty::c_int, - ) -> cty::c_int; + width: core::ffi::c_int, + height: core::ffi::c_int, + ) -> core::ffi::c_int; } extern "C" { pub fn ImFontAtlas_AddCustomRectFontGlyph( self_: *mut ImFontAtlas, font: *mut ImFont, id: ImWchar, - width: cty::c_int, - height: cty::c_int, + width: core::ffi::c_int, + height: core::ffi::c_int, advance_x: f32, offset: ImVec2, - ) -> cty::c_int; + ) -> core::ffi::c_int; } extern "C" { pub fn ImFontAtlas_GetCustomRectByIndex( self_: *mut ImFontAtlas, - index: cty::c_int, + index: core::ffi::c_int, ) -> *mut ImFontAtlasCustomRect; } extern "C" { @@ -4996,7 +5036,7 @@ extern "C" { pub fn ImFont_IsLoaded(self_: *mut ImFont) -> bool; } extern "C" { - pub fn ImFont_GetDebugName(self_: *mut ImFont) -> *const cty::c_char; + pub fn ImFont_GetDebugName(self_: *mut ImFont) -> *const core::ffi::c_char; } extern "C" { pub fn ImFont_CalcTextSizeA( @@ -5005,19 +5045,19 @@ extern "C" { size: f32, max_width: f32, wrap_width: f32, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, - remaining: *mut *const cty::c_char, + text_begin: *const core::ffi::c_char, + text_end: *const core::ffi::c_char, + remaining: *mut *const core::ffi::c_char, ); } extern "C" { pub fn ImFont_CalcWordWrapPositionA( self_: *mut ImFont, scale: f32, - text: *const cty::c_char, - text_end: *const cty::c_char, + text: *const core::ffi::c_char, + text_end: *const core::ffi::c_char, wrap_width: f32, - ) -> *const cty::c_char; + ) -> *const core::ffi::c_char; } extern "C" { pub fn ImFont_RenderChar( @@ -5037,8 +5077,8 @@ extern "C" { pos: ImVec2, col: ImU32, clip_rect: ImVec4, - text_begin: *const cty::c_char, - text_end: *const cty::c_char, + text_begin: *const core::ffi::c_char, + text_end: *const core::ffi::c_char, wrap_width: f32, cpu_fine_clip: bool, ); @@ -5050,7 +5090,7 @@ extern "C" { pub fn ImFont_ClearOutputData(self_: *mut ImFont); } extern "C" { - pub fn ImFont_GrowIndex(self_: *mut ImFont, new_size: cty::c_int); + pub fn ImFont_GrowIndex(self_: *mut ImFont, new_size: core::ffi::c_int); } extern "C" { pub fn ImFont_AddGlyph( @@ -5077,8 +5117,8 @@ extern "C" { extern "C" { pub fn ImFont_IsGlyphRangeUnused( self_: *mut ImFont, - c_begin: cty::c_uint, - c_last: cty::c_uint, + c_begin: core::ffi::c_uint, + c_last: core::ffi::c_uint, ) -> bool; } extern "C" { @@ -5106,8 +5146,12 @@ extern "C" { pub fn ImGuiPlatformImeData_destroy(self_: *mut ImGuiPlatformImeData); } extern "C" { - pub fn igLogText(fmt: *const cty::c_char, ...); + pub fn igLogText(fmt: *const core::ffi::c_char, ...); } extern "C" { - pub fn ImGuiTextBuffer_appendf(buffer: *mut ImGuiTextBuffer, fmt: *const cty::c_char, ...); + pub fn ImGuiTextBuffer_appendf( + buffer: *mut ImGuiTextBuffer, + fmt: *const core::ffi::c_char, + ... + ); } diff --git a/imgui-sys/src/lib.rs b/imgui-sys/src/lib.rs index 1492537..772d806 100644 --- a/imgui-sys/src/lib.rs +++ b/imgui-sys/src/lib.rs @@ -1,24 +1,4 @@ #![no_std] -// We use `chlorine` over (the more well known) `cty` right now since `cty` -// doesn't fully match std::os::raw (leading to issues like -// https://github.com/japaric/cty/issues/18). Chlorine *does* match std::os::raw -// (and libc), but has a longer and more confusing name, so we just alias it. -// Also, this makes it easier to switch to something else/back easier, if we -// decide to. -// -// Note that with the exception of bugs like the above, which crate we use (cty, -// chlorine, libc, std::os::raw, ...) shouldn't matter to end user code¹, since -// these are type aliases that should all be equivalent. This means that we're -// free to switch back iff the bug is fixed, and users are free to use whichever -// they prefer regardless of what we chose. -// -// (TODO: using extern crate for this is a hack, we probably should replace this -// with `use chlorine as cty` in the binding files eventually, but lets punt on -// it for a bit) -// -// ¹ The exception to this is that `std::os::raw` isn't there for `no_std`, and -// `libc` has potentially undesirable linking impacts on windows. -pub extern crate chlorine as cty; cfg_if::cfg_if! { if #[cfg(feature = "wasm")] { diff --git a/imgui/src/input_widget.rs b/imgui/src/input_widget.rs index 06109be..fbdfce3 100644 --- a/imgui/src/input_widget.rs +++ b/imgui/src/input_widget.rs @@ -304,7 +304,7 @@ where sys::igInputTextWithHint( label, hint, - ptr as *mut sys::cty::c_char, + ptr as *mut core::ffi::c_char, capacity, self.flags.bits() as i32, Some(callback::), @@ -315,7 +315,7 @@ where sys::igInputText( label, - ptr as *mut sys::cty::c_char, + ptr as *mut core::ffi::c_char, capacity, self.flags.bits() as i32, Some(callback::), @@ -461,7 +461,7 @@ impl<'ui, 'p, T: InputTextCallbackHandler, L: AsRef> InputTextMultiline<'ui let o = unsafe { sys::igInputTextMultiline( self.ui.scratch_txt(self.label), - ptr as *mut sys::cty::c_char, + ptr as *mut core::ffi::c_char, capacity, self.size.into(), self.flags.bits() as i32, diff --git a/imgui/src/lib.rs b/imgui/src/lib.rs index a880205..6c33713 100644 --- a/imgui/src/lib.rs +++ b/imgui/src/lib.rs @@ -236,7 +236,7 @@ impl Ui { } /// Internal method to push a single text to our scratch buffer. - fn scratch_txt(&self, txt: impl AsRef) -> *const sys::cty::c_char { + fn scratch_txt(&self, txt: impl AsRef) -> *const core::ffi::c_char { unsafe { let handle = &mut *self.buffer.get(); handle.scratch_txt(txt) @@ -244,7 +244,7 @@ impl Ui { } /// Internal method to push an option text to our scratch buffer. - fn scratch_txt_opt(&self, txt: Option>) -> *const sys::cty::c_char { + fn scratch_txt_opt(&self, txt: Option>) -> *const core::ffi::c_char { unsafe { let handle = &mut *self.buffer.get(); handle.scratch_txt_opt(txt) @@ -255,7 +255,7 @@ impl Ui { &self, txt_0: impl AsRef, txt_1: impl AsRef, - ) -> (*const sys::cty::c_char, *const sys::cty::c_char) { + ) -> (*const core::ffi::c_char, *const core::ffi::c_char) { unsafe { let handle = &mut *self.buffer.get(); handle.scratch_txt_two(txt_0, txt_1) @@ -266,7 +266,7 @@ impl Ui { &self, txt_0: impl AsRef, txt_1: Option>, - ) -> (*const sys::cty::c_char, *const sys::cty::c_char) { + ) -> (*const core::ffi::c_char, *const core::ffi::c_char) { unsafe { let handle = &mut *self.buffer.get(); handle.scratch_txt_with_opt(txt_0, txt_1) @@ -418,7 +418,7 @@ impl Ui { /// Create [`Id`] from a pointer pub fn new_id_ptr(&self, input: &T) -> Id { - let p = input as *const T as *const sys::cty::c_void; + let p = input as *const T as *const core::ffi::c_void; let value = unsafe { sys::igGetID_Ptr(p) }; Id(value) } diff --git a/imgui/src/string.rs b/imgui/src/string.rs index f9a08f8..a587153 100644 --- a/imgui/src/string.rs +++ b/imgui/src/string.rs @@ -22,7 +22,7 @@ impl UiBuffer { } /// Internal method to push a single text to our scratch buffer. - pub fn scratch_txt(&mut self, txt: impl AsRef) -> *const sys::cty::c_char { + pub fn scratch_txt(&mut self, txt: impl AsRef) -> *const core::ffi::c_char { self.refresh_buffer(); let start_of_substr = self.push(txt); @@ -30,7 +30,7 @@ impl UiBuffer { } /// Internal method to push an option text to our scratch buffer. - pub fn scratch_txt_opt(&mut self, txt: Option>) -> *const sys::cty::c_char { + pub fn scratch_txt_opt(&mut self, txt: Option>) -> *const core::ffi::c_char { match txt { Some(v) => self.scratch_txt(v), None => ptr::null(), @@ -42,7 +42,7 @@ impl UiBuffer { &mut self, txt_0: impl AsRef, txt_1: impl AsRef, - ) -> (*const sys::cty::c_char, *const sys::cty::c_char) { + ) -> (*const core::ffi::c_char, *const core::ffi::c_char) { self.refresh_buffer(); let first_offset = self.push(txt_0); @@ -56,7 +56,7 @@ impl UiBuffer { &mut self, txt_0: impl AsRef, txt_1: Option>, - ) -> (*const sys::cty::c_char, *const sys::cty::c_char) { + ) -> (*const core::ffi::c_char, *const core::ffi::c_char) { match txt_1 { Some(value) => self.scratch_txt_two(txt_0, value), None => (self.scratch_txt(txt_0), ptr::null()), @@ -76,7 +76,7 @@ impl UiBuffer { /// # Safety /// This can return a pointer to undefined data if given a `pos >= self.buffer.len()`. /// This is marked as unsafe to reflect that. - pub unsafe fn offset(&self, pos: usize) -> *const sys::cty::c_char { + pub unsafe fn offset(&self, pos: usize) -> *const core::ffi::c_char { self.buffer.as_ptr().add(pos) as *const _ } diff --git a/imgui/src/text_filter.rs b/imgui/src/text_filter.rs index b64ebf9..97d2c8c 100644 --- a/imgui/src/text_filter.rs +++ b/imgui/src/text_filter.rs @@ -22,7 +22,7 @@ impl TextFilter { let ptr = filter.as_mut_ptr(); Self { id: label, - raw: unsafe { sys::ImGuiTextFilter_ImGuiTextFilter(ptr as *mut sys::cty::c_char) }, + raw: unsafe { sys::ImGuiTextFilter_ImGuiTextFilter(ptr as *mut core::ffi::c_char) }, } } @@ -51,7 +51,7 @@ impl TextFilter { let mut id = self.id.clone(); id.push('\0'); let ptr = id.as_mut_ptr(); - sys::ImGuiTextFilter_Draw(self.raw, ptr as *mut sys::cty::c_char, size); + sys::ImGuiTextFilter_Draw(self.raw, ptr as *mut core::ffi::c_char, size); } } @@ -68,7 +68,7 @@ impl TextFilter { buf.push('\0'); let ptr = buf.as_mut_ptr(); unsafe { - sys::ImGuiTextFilter_PassFilter(self.raw, ptr as *mut sys::cty::c_char, ptr::null()) + sys::ImGuiTextFilter_PassFilter(self.raw, ptr as *mut core::ffi::c_char, ptr::null()) } } @@ -81,8 +81,8 @@ impl TextFilter { unsafe { sys::ImGuiTextFilter_PassFilter( self.raw, - b_ptr as *mut sys::cty::c_char, - e_ptr as *mut sys::cty::c_char, + b_ptr as *mut core::ffi::c_char, + e_ptr as *mut core::ffi::c_char, ) } }