From af0996390a8e800490acc7e620ace128b0b864cc Mon Sep 17 00:00:00 2001 From: 4bb4 <67376761+4bb4@users.noreply.github.com> Date: Sat, 31 Oct 2020 11:04:13 +0100 Subject: [PATCH] Updated to newest available implot --- README.md | 16 +- implot-sys/src/bindings.rs | 2667 +++++++++++++++++++++++++++++--- implot-sys/third-party/cimplot | 2 +- src/lib.rs | 16 +- src/plot.rs | 4 +- src/plot_elements.rs | 2 +- 6 files changed, 2507 insertions(+), 200 deletions(-) diff --git a/README.md b/README.md index da5963c..65191be 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,9 @@ Rust bindings for [ImPlot](https://github.com/epezent/implot), built by running [bindgen](https://github.com/rust-lang/rust-bindgen) on [cimplot](https://github.com/cimgui/cimplot). -The bindings are currently based on ImPlot version 0.7. See the status section below for -detailed information on implementation status. +The bindings are currently based on ImPlot version 0.8-WIP (see +[implot-sys/third_party](implot-sys/third_party) for the exact commit currently pointed to). +The status section below provides detailed information on implementation status. [![Docs.rs documentation](https://docs.rs/implot/badge.svg)](https://docs.rs/implot/) ![Tests](https://github.com/4bb4/implot-rs/workflows/Tests/badge.svg) @@ -46,6 +47,10 @@ is open to collaboration, if you'd like to help, feel free to reach out via a Gi At this point, raw bindings are working in implot-sys, and more idiomatic interfaces for plot creation as well a subset of the functionality for plots are implemented. +While the raw bindings have versions of most functions for different data types such as +32-bit or 64-bit floats and various integers, the higher-level bindings are currently only +created for 64-bit floats. + - [x] "BeginPlot" - [x] Basic hello world - [x] Plot flags @@ -65,11 +70,16 @@ for plot creation as well a subset of the functionality for plots are implemente - [ ] Heatmap - [ ] Pie chart - [ ] Digital data -- [x] Plot customization + - [ ] Stairs plot + - [ ] Annotations + - [ ] Dragline + - [ ] Dragpoint +- [ ] Plot customization - [x] Axis flags - [x] Styling colors - [x] Styling variables - [x] Colormaps + - [ ] Legend locations - [x] Plot querying - [x] is hovered - [x] mouse position in plot diff --git a/implot-sys/src/bindings.rs b/implot-sys/src/bindings.rs index 1589e04..cb3d13f 100644 --- a/implot-sys/src/bindings.rs +++ b/implot-sys/src/bindings.rs @@ -1,5 +1,13 @@ /* automatically generated by rust-bindgen 0.55.1 */ +pub type va_list = __builtin_va_list; +pub type __int64_t = ::std::os::raw::c_long; +pub type __uint64_t = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ImGuiContext { + _unused: [u8; 0], +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ImDrawListSharedData { @@ -11,7 +19,14 @@ pub type ImDrawListFlags = ::std::os::raw::c_int; pub type ImGuiDragDropFlags = ::std::os::raw::c_int; pub type ImGuiKeyModFlags = ::std::os::raw::c_int; pub type ImTextureID = *mut ::std::os::raw::c_void; +pub type ImS8 = ::std::os::raw::c_schar; +pub type ImU8 = ::std::os::raw::c_uchar; +pub type ImS16 = ::std::os::raw::c_short; +pub type ImU16 = ::std::os::raw::c_ushort; +pub type ImS32 = ::std::os::raw::c_int; pub type ImU32 = ::std::os::raw::c_uint; +pub type ImS64 = i64; +pub type ImU64 = u64; pub type ImDrawCallback = ::std::option::Option< unsafe extern "C" fn(parent_list: *const ImDrawList, cmd: *const ImDrawCmd), >; @@ -851,6 +866,9 @@ pub type ImPlotCol = ::std::os::raw::c_int; pub type ImPlotStyleVar = ::std::os::raw::c_int; pub type ImPlotMarker = ::std::os::raw::c_int; pub type ImPlotColormap = ::std::os::raw::c_int; +pub type ImPlotLocation = ::std::os::raw::c_int; +pub type ImPlotOrientation = ::std::os::raw::c_int; +pub type ImPlotYAxis = ::std::os::raw::c_int; pub const ImPlotFlags__ImPlotFlags_None: ImPlotFlags_ = 0; pub const ImPlotFlags__ImPlotFlags_NoLegend: ImPlotFlags_ = 1; pub const ImPlotFlags__ImPlotFlags_NoMenus: ImPlotFlags_ = 2; @@ -864,7 +882,7 @@ pub const ImPlotFlags__ImPlotFlags_Query: ImPlotFlags_ = 256; pub const ImPlotFlags__ImPlotFlags_Crosshairs: ImPlotFlags_ = 512; pub const ImPlotFlags__ImPlotFlags_AntiAliased: ImPlotFlags_ = 1024; pub const ImPlotFlags__ImPlotFlags_CanvasOnly: ImPlotFlags_ = 15; -pub type ImPlotFlags_ = ::std::os::raw::c_int; +pub type ImPlotFlags_ = ::std::os::raw::c_uint; pub const ImPlotAxisFlags__ImPlotAxisFlags_None: ImPlotAxisFlags_ = 0; pub const ImPlotAxisFlags__ImPlotAxisFlags_NoGridLines: ImPlotAxisFlags_ = 1; pub const ImPlotAxisFlags__ImPlotAxisFlags_NoTickMarks: ImPlotAxisFlags_ = 2; @@ -876,7 +894,7 @@ pub const ImPlotAxisFlags__ImPlotAxisFlags_LockMin: ImPlotAxisFlags_ = 64; pub const ImPlotAxisFlags__ImPlotAxisFlags_LockMax: ImPlotAxisFlags_ = 128; pub const ImPlotAxisFlags__ImPlotAxisFlags_Lock: ImPlotAxisFlags_ = 192; pub const ImPlotAxisFlags__ImPlotAxisFlags_NoDecorations: ImPlotAxisFlags_ = 7; -pub type ImPlotAxisFlags_ = ::std::os::raw::c_int; +pub type ImPlotAxisFlags_ = ::std::os::raw::c_uint; pub const ImPlotCol__ImPlotCol_Line: ImPlotCol_ = 0; pub const ImPlotCol__ImPlotCol_Fill: ImPlotCol_ = 1; pub const ImPlotCol__ImPlotCol_MarkerOutline: ImPlotCol_ = 2; @@ -902,7 +920,7 @@ pub const ImPlotCol__ImPlotCol_Selection: ImPlotCol_ = 21; pub const ImPlotCol__ImPlotCol_Query: ImPlotCol_ = 22; pub const ImPlotCol__ImPlotCol_Crosshairs: ImPlotCol_ = 23; pub const ImPlotCol__ImPlotCol_COUNT: ImPlotCol_ = 24; -pub type ImPlotCol_ = ::std::os::raw::c_int; +pub type ImPlotCol_ = ::std::os::raw::c_uint; pub const ImPlotStyleVar__ImPlotStyleVar_LineWeight: ImPlotStyleVar_ = 0; pub const ImPlotStyleVar__ImPlotStyleVar_Marker: ImPlotStyleVar_ = 1; pub const ImPlotStyleVar__ImPlotStyleVar_MarkerSize: ImPlotStyleVar_ = 2; @@ -923,10 +941,14 @@ pub const ImPlotStyleVar__ImPlotStyleVar_MinorGridSize: ImPlotStyleVar_ = 16; pub const ImPlotStyleVar__ImPlotStyleVar_PlotPadding: ImPlotStyleVar_ = 17; pub const ImPlotStyleVar__ImPlotStyleVar_LabelPadding: ImPlotStyleVar_ = 18; pub const ImPlotStyleVar__ImPlotStyleVar_LegendPadding: ImPlotStyleVar_ = 19; -pub const ImPlotStyleVar__ImPlotStyleVar_InfoPadding: ImPlotStyleVar_ = 20; -pub const ImPlotStyleVar__ImPlotStyleVar_PlotMinSize: ImPlotStyleVar_ = 21; -pub const ImPlotStyleVar__ImPlotStyleVar_COUNT: ImPlotStyleVar_ = 22; -pub type ImPlotStyleVar_ = ::std::os::raw::c_int; +pub const ImPlotStyleVar__ImPlotStyleVar_LegendInnerPadding: ImPlotStyleVar_ = 20; +pub const ImPlotStyleVar__ImPlotStyleVar_LegendSpacing: ImPlotStyleVar_ = 21; +pub const ImPlotStyleVar__ImPlotStyleVar_MousePosPadding: ImPlotStyleVar_ = 22; +pub const ImPlotStyleVar__ImPlotStyleVar_AnnotationPadding: ImPlotStyleVar_ = 23; +pub const ImPlotStyleVar__ImPlotStyleVar_PlotDefaultSize: ImPlotStyleVar_ = 24; +pub const ImPlotStyleVar__ImPlotStyleVar_PlotMinSize: ImPlotStyleVar_ = 25; +pub const ImPlotStyleVar__ImPlotStyleVar_COUNT: ImPlotStyleVar_ = 26; +pub type ImPlotStyleVar_ = ::std::os::raw::c_uint; pub const ImPlotMarker__ImPlotMarker_None: ImPlotMarker_ = -1; pub const ImPlotMarker__ImPlotMarker_Circle: ImPlotMarker_ = 0; pub const ImPlotMarker__ImPlotMarker_Square: ImPlotMarker_ = 1; @@ -952,7 +974,24 @@ pub const ImPlotColormap__ImPlotColormap_Cool: ImPlotColormap_ = 8; pub const ImPlotColormap__ImPlotColormap_Pink: ImPlotColormap_ = 9; pub const ImPlotColormap__ImPlotColormap_Jet: ImPlotColormap_ = 10; pub const ImPlotColormap__ImPlotColormap_COUNT: ImPlotColormap_ = 11; -pub type ImPlotColormap_ = ::std::os::raw::c_int; +pub type ImPlotColormap_ = ::std::os::raw::c_uint; +pub const ImPlotLocation__ImPlotLocation_Center: ImPlotLocation_ = 0; +pub const ImPlotLocation__ImPlotLocation_North: ImPlotLocation_ = 1; +pub const ImPlotLocation__ImPlotLocation_South: ImPlotLocation_ = 2; +pub const ImPlotLocation__ImPlotLocation_West: ImPlotLocation_ = 4; +pub const ImPlotLocation__ImPlotLocation_East: ImPlotLocation_ = 8; +pub const ImPlotLocation__ImPlotLocation_NorthWest: ImPlotLocation_ = 5; +pub const ImPlotLocation__ImPlotLocation_NorthEast: ImPlotLocation_ = 9; +pub const ImPlotLocation__ImPlotLocation_SouthWest: ImPlotLocation_ = 6; +pub const ImPlotLocation__ImPlotLocation_SouthEast: ImPlotLocation_ = 10; +pub type ImPlotLocation_ = ::std::os::raw::c_uint; +pub const ImPlotOrientation__ImPlotOrientation_Horizontal: ImPlotOrientation_ = 0; +pub const ImPlotOrientation__ImPlotOrientation_Vertical: ImPlotOrientation_ = 1; +pub type ImPlotOrientation_ = ::std::os::raw::c_uint; +pub const ImPlotYAxis__ImPlotYAxis_1: ImPlotYAxis_ = 0; +pub const ImPlotYAxis__ImPlotYAxis_2: ImPlotYAxis_ = 1; +pub const ImPlotYAxis__ImPlotYAxis_3: ImPlotYAxis_ = 2; +pub type ImPlotYAxis_ = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct ImPlotPoint { @@ -1093,17 +1132,23 @@ pub struct ImPlotStyle { pub PlotPadding: ImVec2, pub LabelPadding: ImVec2, pub LegendPadding: ImVec2, - pub InfoPadding: ImVec2, + pub LegendInnerPadding: ImVec2, + pub LegendSpacing: ImVec2, + pub MousePosPadding: ImVec2, + pub AnnotationPadding: ImVec2, + pub PlotDefaultSize: ImVec2, pub PlotMinSize: ImVec2, pub Colors: [ImVec4; 24usize], pub AntiAliasedLines: bool, pub UseLocalTime: bool, + pub UseISO8601: bool, + pub Use24HourClock: bool, } #[test] fn bindgen_test_layout_ImPlotStyle() { assert_eq!( ::std::mem::size_of::(), - 520usize, + 552usize, concat!("Size of: ", stringify!(ImPlotStyle)) ); assert_eq!( @@ -1312,18 +1357,58 @@ fn bindgen_test_layout_ImPlotStyle() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).InfoPadding as *const _ as usize }, + unsafe { &(*(::std::ptr::null::())).LegendInnerPadding as *const _ as usize }, 116usize, concat!( "Offset of field: ", stringify!(ImPlotStyle), "::", - stringify!(InfoPadding) + stringify!(LegendInnerPadding) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).LegendSpacing as *const _ as usize }, + 124usize, + concat!( + "Offset of field: ", + stringify!(ImPlotStyle), + "::", + stringify!(LegendSpacing) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).MousePosPadding as *const _ as usize }, + 132usize, + concat!( + "Offset of field: ", + stringify!(ImPlotStyle), + "::", + stringify!(MousePosPadding) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).AnnotationPadding as *const _ as usize }, + 140usize, + concat!( + "Offset of field: ", + stringify!(ImPlotStyle), + "::", + stringify!(AnnotationPadding) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).PlotDefaultSize as *const _ as usize }, + 148usize, + concat!( + "Offset of field: ", + stringify!(ImPlotStyle), + "::", + stringify!(PlotDefaultSize) ) ); assert_eq!( unsafe { &(*(::std::ptr::null::())).PlotMinSize as *const _ as usize }, - 124usize, + 156usize, concat!( "Offset of field: ", stringify!(ImPlotStyle), @@ -1333,7 +1418,7 @@ fn bindgen_test_layout_ImPlotStyle() { ); assert_eq!( unsafe { &(*(::std::ptr::null::())).Colors as *const _ as usize }, - 132usize, + 164usize, concat!( "Offset of field: ", stringify!(ImPlotStyle), @@ -1343,7 +1428,7 @@ fn bindgen_test_layout_ImPlotStyle() { ); assert_eq!( unsafe { &(*(::std::ptr::null::())).AntiAliasedLines as *const _ as usize }, - 516usize, + 548usize, concat!( "Offset of field: ", stringify!(ImPlotStyle), @@ -1353,7 +1438,7 @@ fn bindgen_test_layout_ImPlotStyle() { ); assert_eq!( unsafe { &(*(::std::ptr::null::())).UseLocalTime as *const _ as usize }, - 517usize, + 549usize, concat!( "Offset of field: ", stringify!(ImPlotStyle), @@ -1361,6 +1446,26 @@ fn bindgen_test_layout_ImPlotStyle() { stringify!(UseLocalTime) ) ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).UseISO8601 as *const _ as usize }, + 550usize, + concat!( + "Offset of field: ", + stringify!(ImPlotStyle), + "::", + stringify!(UseISO8601) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).Use24HourClock as *const _ as usize }, + 551usize, + concat!( + "Offset of field: ", + stringify!(ImPlotStyle), + "::", + stringify!(Use24HourClock) + ) + ); } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -1524,6 +1629,9 @@ extern "C" { extern "C" { pub fn ImPlotPoint_ImPlotPointdouble(_x: f64, _y: f64) -> *mut ImPlotPoint; } +extern "C" { + pub fn ImPlotPoint_ImPlotPointVec2(p: ImVec2) -> *mut ImPlotPoint; +} extern "C" { pub fn ImPlotRange_ImPlotRangeNil() -> *mut ImPlotRange; } @@ -1590,6 +1698,8 @@ extern "C" { label_id: *const ::std::os::raw::c_char, values: *const f32, count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); @@ -1599,6 +1709,96 @@ extern "C" { label_id: *const ::std::os::raw::c_char, values: *const f64, count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineS8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS8, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineU8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU8, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineS16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS16, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineU16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU16, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineS32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS32, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineU32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU32, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineS64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS64, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineU64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU64, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); @@ -1624,33 +1824,83 @@ extern "C" { ); } extern "C" { - pub fn ImPlot_PlotLineVec2Ptr( + pub fn ImPlot_PlotLineS8PtrS8Ptr( label_id: *const ::std::os::raw::c_char, - data: *const ImVec2, + xs: *const ImS8, + ys: *const ImS8, count: ::std::os::raw::c_int, offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotLinePlotPoIntPtr( + pub fn ImPlot_PlotLineU8PtrU8Ptr( label_id: *const ::std::os::raw::c_char, - data: *const ImPlotPoint, + xs: *const ImU8, + ys: *const ImU8, count: ::std::os::raw::c_int, offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotLineFnPlotPoIntPtr( + pub fn ImPlot_PlotLineS16PtrS16Ptr( label_id: *const ::std::os::raw::c_char, - getter: ::std::option::Option< - unsafe extern "C" fn( - data: *mut ::std::os::raw::c_void, - idx: ::std::os::raw::c_int, - ) -> ImPlotPoint, - >, - data: *mut ::std::os::raw::c_void, + xs: *const ImS16, + ys: *const ImS16, count: ::std::os::raw::c_int, offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineU16PtrU16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineS32PtrS32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineU32PtrU32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineS64PtrS64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotLineU64PtrU64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, ); } extern "C" { @@ -1658,6 +1908,8 @@ extern "C" { label_id: *const ::std::os::raw::c_char, values: *const f32, count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); @@ -1667,6 +1919,96 @@ extern "C" { label_id: *const ::std::os::raw::c_char, values: *const f64, count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterS8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS8, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterU8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU8, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterS16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS16, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterU16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU16, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterS32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS32, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterU32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU32, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterS64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS64, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterU64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU64, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); @@ -1692,23 +2034,297 @@ extern "C" { ); } extern "C" { - pub fn ImPlot_PlotScatterVec2Ptr( + pub fn ImPlot_PlotScatterS8PtrS8Ptr( label_id: *const ::std::os::raw::c_char, - data: *const ImVec2, + xs: *const ImS8, + ys: *const ImS8, count: ::std::os::raw::c_int, offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotScatterPlotPoIntPtr( + pub fn ImPlot_PlotScatterU8PtrU8Ptr( label_id: *const ::std::os::raw::c_char, - data: *const ImPlotPoint, + xs: *const ImU8, + ys: *const ImU8, count: ::std::os::raw::c_int, offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotScatterFnPlotPoIntPtr( + pub fn ImPlot_PlotScatterS16PtrS16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys: *const ImS16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterU16PtrU16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterS32PtrS32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterU32PtrU32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterS64PtrS64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterU64PtrU64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsFloatPtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const f32, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsdoublePtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const f64, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsS8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS8, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsU8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU8, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsS16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS16, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsU16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU16, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsS32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS32, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsU32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU32, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsS64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS64, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsU64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU64, + count: ::std::os::raw::c_int, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsFloatPtrFloatPtr( + label_id: *const ::std::os::raw::c_char, + xs: *const f32, + ys: *const f32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsdoublePtrdoublePtr( + label_id: *const ::std::os::raw::c_char, + xs: *const f64, + ys: *const f64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsS8PtrS8Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS8, + ys: *const ImS8, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsU8PtrU8Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU8, + ys: *const ImU8, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsS16PtrS16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys: *const ImS16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsU16PtrU16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsS32PtrS32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsU32PtrU32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsS64PtrS64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsU64PtrU64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStairsG( label_id: *const ::std::os::raw::c_char, getter: ::std::option::Option< unsafe extern "C" fn( @@ -1722,41 +2338,229 @@ extern "C" { ); } extern "C" { - pub fn ImPlot_PlotShadedFloatPtrIntFloat( + pub fn ImPlot_PlotShadedFloatPtrIntdoubledoubleInt( label_id: *const ::std::os::raw::c_char, values: *const f32, count: ::std::os::raw::c_int, - y_ref: f32, + y_ref: f64, + xscale: f64, + x0: f64, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotShadeddoublePtrIntdouble( + pub fn ImPlot_PlotShadeddoublePtrIntdoubledoubleInt( label_id: *const ::std::os::raw::c_char, values: *const f64, count: ::std::os::raw::c_int, y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedS8PtrIntdoubledoubleInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS8, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedU8PtrIntdoubledoubleInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU8, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedS16PtrIntdoubledoubleInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS16, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedU16PtrIntdoubledoubleInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU16, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedS32PtrIntdoubledoubleInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS32, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedU32PtrIntdoubledoubleInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU32, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedS64PtrIntdoubledoubleInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS64, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedU64PtrIntdoubledoubleInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU64, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedFloatPtrFloatPtrIntInt( + label_id: *const ::std::os::raw::c_char, + xs: *const f32, + ys: *const f32, + count: ::std::os::raw::c_int, + y_ref: f64, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotShadedFloatPtrFloatPtrIntFloat( + pub fn ImPlot_PlotShadeddoublePtrdoublePtrIntInt( label_id: *const ::std::os::raw::c_char, - xs: *const f32, - ys: *const f32, + xs: *const f64, + ys: *const f64, count: ::std::os::raw::c_int, - y_ref: f32, + y_ref: f64, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotShadeddoublePtrdoublePtrIntdouble( + pub fn ImPlot_PlotShadedS8PtrS8PtrIntInt( label_id: *const ::std::os::raw::c_char, - xs: *const f64, - ys: *const f64, + xs: *const ImS8, + ys: *const ImS8, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedU8PtrU8PtrIntInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU8, + ys: *const ImU8, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedS16PtrS16PtrIntInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys: *const ImS16, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedU16PtrU16PtrIntInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedS32PtrS32PtrIntInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedU32PtrU32PtrIntInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedS64PtrS64PtrIntInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedU64PtrU64PtrIntInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, count: ::std::os::raw::c_int, y_ref: f64, offset: ::std::os::raw::c_int, @@ -1786,39 +2590,106 @@ extern "C" { ); } extern "C" { - pub fn ImPlot_PlotShadedFnPlotPoIntPtr( + pub fn ImPlot_PlotShadedS8PtrS8PtrS8Ptr( label_id: *const ::std::os::raw::c_char, - getter1: ::std::option::Option< - unsafe extern "C" fn( - data: *mut ::std::os::raw::c_void, - idx: ::std::os::raw::c_int, - ) -> ImPlotPoint, - >, - data1: *mut ::std::os::raw::c_void, - getter2: ::std::option::Option< - unsafe extern "C" fn( - data: *mut ::std::os::raw::c_void, - idx: ::std::os::raw::c_int, - ) -> ImPlotPoint, - >, - data2: *mut ::std::os::raw::c_void, + xs: *const ImS8, + ys1: *const ImS8, + ys2: *const ImS8, count: ::std::os::raw::c_int, offset: ::std::os::raw::c_int, - ); -} -extern "C" { - pub fn ImPlot_PlotBarsFloatPtrIntFloat( - label_id: *const ::std::os::raw::c_char, - values: *const f32, - count: ::std::os::raw::c_int, - width: f32, - shift: f32, - offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotBarsdoublePtrIntdouble( + pub fn ImPlot_PlotShadedU8PtrU8PtrU8Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU8, + ys1: *const ImU8, + ys2: *const ImU8, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedS16PtrS16PtrS16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys1: *const ImS16, + ys2: *const ImS16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedU16PtrU16PtrU16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys1: *const ImU16, + ys2: *const ImU16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedS32PtrS32PtrS32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys1: *const ImS32, + ys2: *const ImS32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedU32PtrU32PtrU32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys1: *const ImU32, + ys2: *const ImU32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedS64PtrS64PtrS64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys1: *const ImS64, + ys2: *const ImS64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedU64PtrU64PtrU64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys1: *const ImU64, + ys2: *const ImU64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsFloatPtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const f32, + count: ::std::os::raw::c_int, + width: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsdoublePtrInt( label_id: *const ::std::os::raw::c_char, values: *const f64, count: ::std::os::raw::c_int, @@ -1828,13 +2699,101 @@ extern "C" { stride: ::std::os::raw::c_int, ); } +extern "C" { + pub fn ImPlot_PlotBarsS8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS8, + count: ::std::os::raw::c_int, + width: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsU8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU8, + count: ::std::os::raw::c_int, + width: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsS16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS16, + count: ::std::os::raw::c_int, + width: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsU16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU16, + count: ::std::os::raw::c_int, + width: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsS32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS32, + count: ::std::os::raw::c_int, + width: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsU32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU32, + count: ::std::os::raw::c_int, + width: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsS64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS64, + count: ::std::os::raw::c_int, + width: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsU64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU64, + count: ::std::os::raw::c_int, + width: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} extern "C" { pub fn ImPlot_PlotBarsFloatPtrFloatPtr( label_id: *const ::std::os::raw::c_char, xs: *const f32, ys: *const f32, count: ::std::os::raw::c_int, - width: f32, + width: f64, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); @@ -1851,33 +2810,106 @@ extern "C" { ); } extern "C" { - pub fn ImPlot_PlotBarsFnPlotPoIntPtr( + pub fn ImPlot_PlotBarsS8PtrS8Ptr( label_id: *const ::std::os::raw::c_char, - getter: ::std::option::Option< - unsafe extern "C" fn( - data: *mut ::std::os::raw::c_void, - idx: ::std::os::raw::c_int, - ) -> ImPlotPoint, - >, - data: *mut ::std::os::raw::c_void, + xs: *const ImS8, + ys: *const ImS8, count: ::std::os::raw::c_int, width: f64, offset: ::std::os::raw::c_int, - ); -} -extern "C" { - pub fn ImPlot_PlotBarsHFloatPtrIntFloat( - label_id: *const ::std::os::raw::c_char, - values: *const f32, - count: ::std::os::raw::c_int, - height: f32, - shift: f32, - offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotBarsHdoublePtrIntdouble( + pub fn ImPlot_PlotBarsU8PtrU8Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU8, + ys: *const ImU8, + count: ::std::os::raw::c_int, + width: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsS16PtrS16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys: *const ImS16, + count: ::std::os::raw::c_int, + width: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsU16PtrU16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + count: ::std::os::raw::c_int, + width: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsS32PtrS32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + count: ::std::os::raw::c_int, + width: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsU32PtrU32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + count: ::std::os::raw::c_int, + width: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsS64PtrS64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + count: ::std::os::raw::c_int, + width: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsU64PtrU64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, + count: ::std::os::raw::c_int, + width: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHFloatPtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const f32, + count: ::std::os::raw::c_int, + height: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHdoublePtrInt( label_id: *const ::std::os::raw::c_char, values: *const f64, count: ::std::os::raw::c_int, @@ -1887,13 +2919,101 @@ extern "C" { stride: ::std::os::raw::c_int, ); } +extern "C" { + pub fn ImPlot_PlotBarsHS8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS8, + count: ::std::os::raw::c_int, + height: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHU8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU8, + count: ::std::os::raw::c_int, + height: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHS16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS16, + count: ::std::os::raw::c_int, + height: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHU16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU16, + count: ::std::os::raw::c_int, + height: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHS32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS32, + count: ::std::os::raw::c_int, + height: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHU32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU32, + count: ::std::os::raw::c_int, + height: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHS64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS64, + count: ::std::os::raw::c_int, + height: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHU64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU64, + count: ::std::os::raw::c_int, + height: f64, + shift: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} extern "C" { pub fn ImPlot_PlotBarsHFloatPtrFloatPtr( label_id: *const ::std::os::raw::c_char, xs: *const f32, ys: *const f32, count: ::std::os::raw::c_int, - height: f32, + height: f64, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); @@ -1910,18 +3030,91 @@ extern "C" { ); } extern "C" { - pub fn ImPlot_PlotBarsHFnPlotPoIntPtr( + pub fn ImPlot_PlotBarsHS8PtrS8Ptr( label_id: *const ::std::os::raw::c_char, - getter: ::std::option::Option< - unsafe extern "C" fn( - data: *mut ::std::os::raw::c_void, - idx: ::std::os::raw::c_int, - ) -> ImPlotPoint, - >, - data: *mut ::std::os::raw::c_void, + xs: *const ImS8, + ys: *const ImS8, count: ::std::os::raw::c_int, height: f64, offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHU8PtrU8Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU8, + ys: *const ImU8, + count: ::std::os::raw::c_int, + height: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHS16PtrS16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys: *const ImS16, + count: ::std::os::raw::c_int, + height: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHU16PtrU16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + count: ::std::os::raw::c_int, + height: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHS32PtrS32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + count: ::std::os::raw::c_int, + height: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHU32PtrU32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + count: ::std::os::raw::c_int, + height: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHS64PtrS64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + count: ::std::os::raw::c_int, + height: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHU64PtrU64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, + count: ::std::os::raw::c_int, + height: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, ); } extern "C" { @@ -1946,6 +3139,94 @@ extern "C" { stride: ::std::os::raw::c_int, ); } +extern "C" { + pub fn ImPlot_PlotErrorBarsS8PtrS8PtrS8PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS8, + ys: *const ImS8, + err: *const ImS8, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsU8PtrU8PtrU8PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU8, + ys: *const ImU8, + err: *const ImU8, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsS16PtrS16PtrS16PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys: *const ImS16, + err: *const ImS16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsU16PtrU16PtrU16PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + err: *const ImU16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsS32PtrS32PtrS32PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + err: *const ImS32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsU32PtrU32PtrU32PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + err: *const ImU32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsS64PtrS64PtrS64PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + err: *const ImS64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsU64PtrU64PtrU64PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, + err: *const ImU64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} extern "C" { pub fn ImPlot_PlotErrorBarsFloatPtrFloatPtrFloatPtrFloatPtr( label_id: *const ::std::os::raw::c_char, @@ -1970,6 +3251,102 @@ extern "C" { stride: ::std::os::raw::c_int, ); } +extern "C" { + pub fn ImPlot_PlotErrorBarsS8PtrS8PtrS8PtrS8Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS8, + ys: *const ImS8, + neg: *const ImS8, + pos: *const ImS8, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsU8PtrU8PtrU8PtrU8Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU8, + ys: *const ImU8, + neg: *const ImU8, + pos: *const ImU8, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsS16PtrS16PtrS16PtrS16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys: *const ImS16, + neg: *const ImS16, + pos: *const ImS16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsU16PtrU16PtrU16PtrU16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + neg: *const ImU16, + pos: *const ImU16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsS32PtrS32PtrS32PtrS32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + neg: *const ImS32, + pos: *const ImS32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsU32PtrU32PtrU32PtrU32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + neg: *const ImU32, + pos: *const ImU32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsS64PtrS64PtrS64PtrS64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + neg: *const ImS64, + pos: *const ImS64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsU64PtrU64PtrU64PtrU64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, + neg: *const ImU64, + pos: *const ImU64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} extern "C" { pub fn ImPlot_PlotErrorBarsHFloatPtrFloatPtrFloatPtrInt( label_id: *const ::std::os::raw::c_char, @@ -1992,6 +3369,94 @@ extern "C" { stride: ::std::os::raw::c_int, ); } +extern "C" { + pub fn ImPlot_PlotErrorBarsHS8PtrS8PtrS8PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS8, + ys: *const ImS8, + err: *const ImS8, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHU8PtrU8PtrU8PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU8, + ys: *const ImU8, + err: *const ImU8, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHS16PtrS16PtrS16PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys: *const ImS16, + err: *const ImS16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHU16PtrU16PtrU16PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + err: *const ImU16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHS32PtrS32PtrS32PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + err: *const ImS32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHU32PtrU32PtrU32PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + err: *const ImU32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHS64PtrS64PtrS64PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + err: *const ImS64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHU64PtrU64PtrU64PtrInt( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, + err: *const ImU64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} extern "C" { pub fn ImPlot_PlotErrorBarsHFloatPtrFloatPtrFloatPtrFloatPtr( label_id: *const ::std::os::raw::c_char, @@ -2017,21 +3482,217 @@ extern "C" { ); } extern "C" { - pub fn ImPlot_PlotStemsFloatPtrIntFloat( + pub fn ImPlot_PlotErrorBarsHS8PtrS8PtrS8PtrS8Ptr( label_id: *const ::std::os::raw::c_char, - values: *const f32, + xs: *const ImS8, + ys: *const ImS8, + neg: *const ImS8, + pos: *const ImS8, count: ::std::os::raw::c_int, - y_ref: f32, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotStemsdoublePtrIntdouble( + pub fn ImPlot_PlotErrorBarsHU8PtrU8PtrU8PtrU8Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU8, + ys: *const ImU8, + neg: *const ImU8, + pos: *const ImU8, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHS16PtrS16PtrS16PtrS16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys: *const ImS16, + neg: *const ImS16, + pos: *const ImS16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHU16PtrU16PtrU16PtrU16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + neg: *const ImU16, + pos: *const ImU16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHS32PtrS32PtrS32PtrS32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + neg: *const ImS32, + pos: *const ImS32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHU32PtrU32PtrU32PtrU32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + neg: *const ImU32, + pos: *const ImU32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHS64PtrS64PtrS64PtrS64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + neg: *const ImS64, + pos: *const ImS64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotErrorBarsHU64PtrU64PtrU64PtrU64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, + neg: *const ImU64, + pos: *const ImU64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsFloatPtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const f32, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsdoublePtrInt( label_id: *const ::std::os::raw::c_char, values: *const f64, count: ::std::os::raw::c_int, y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsS8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS8, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsU8PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU8, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsS16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS16, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsU16PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU16, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsS32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS32, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsU32PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU32, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsS64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImS64, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsU64PtrInt( + label_id: *const ::std::os::raw::c_char, + values: *const ImU64, + count: ::std::os::raw::c_int, + y_ref: f64, + xscale: f64, + x0: f64, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); @@ -2042,7 +3703,7 @@ extern "C" { xs: *const f32, ys: *const f32, count: ::std::os::raw::c_int, - y_ref: f32, + y_ref: f64, offset: ::std::os::raw::c_int, stride: ::std::os::raw::c_int, ); @@ -2058,22 +3719,110 @@ extern "C" { stride: ::std::os::raw::c_int, ); } +extern "C" { + pub fn ImPlot_PlotStemsS8PtrS8Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS8, + ys: *const ImS8, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsU8PtrU8Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU8, + ys: *const ImU8, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsS16PtrS16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys: *const ImS16, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsU16PtrU16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsS32PtrS32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsU32PtrU32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsS64PtrS64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotStemsU64PtrU64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, + count: ::std::os::raw::c_int, + y_ref: f64, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} extern "C" { pub fn ImPlot_PlotPieChartFloatPtr( - label_ids: *mut *const ::std::os::raw::c_char, + label_ids: *const *const ::std::os::raw::c_char, values: *const f32, count: ::std::os::raw::c_int, - x: f32, - y: f32, - radius: f32, + x: f64, + y: f64, + radius: f64, normalize: bool, label_fmt: *const ::std::os::raw::c_char, - angle0: f32, + angle0: f64, ); } extern "C" { pub fn ImPlot_PlotPieChartdoublePtr( - label_ids: *mut *const ::std::os::raw::c_char, + label_ids: *const *const ::std::os::raw::c_char, values: *const f64, count: ::std::os::raw::c_int, x: f64, @@ -2084,14 +3833,118 @@ extern "C" { angle0: f64, ); } +extern "C" { + pub fn ImPlot_PlotPieChartS8Ptr( + label_ids: *const *const ::std::os::raw::c_char, + values: *const ImS8, + count: ::std::os::raw::c_int, + x: f64, + y: f64, + radius: f64, + normalize: bool, + label_fmt: *const ::std::os::raw::c_char, + angle0: f64, + ); +} +extern "C" { + pub fn ImPlot_PlotPieChartU8Ptr( + label_ids: *const *const ::std::os::raw::c_char, + values: *const ImU8, + count: ::std::os::raw::c_int, + x: f64, + y: f64, + radius: f64, + normalize: bool, + label_fmt: *const ::std::os::raw::c_char, + angle0: f64, + ); +} +extern "C" { + pub fn ImPlot_PlotPieChartS16Ptr( + label_ids: *const *const ::std::os::raw::c_char, + values: *const ImS16, + count: ::std::os::raw::c_int, + x: f64, + y: f64, + radius: f64, + normalize: bool, + label_fmt: *const ::std::os::raw::c_char, + angle0: f64, + ); +} +extern "C" { + pub fn ImPlot_PlotPieChartU16Ptr( + label_ids: *const *const ::std::os::raw::c_char, + values: *const ImU16, + count: ::std::os::raw::c_int, + x: f64, + y: f64, + radius: f64, + normalize: bool, + label_fmt: *const ::std::os::raw::c_char, + angle0: f64, + ); +} +extern "C" { + pub fn ImPlot_PlotPieChartS32Ptr( + label_ids: *const *const ::std::os::raw::c_char, + values: *const ImS32, + count: ::std::os::raw::c_int, + x: f64, + y: f64, + radius: f64, + normalize: bool, + label_fmt: *const ::std::os::raw::c_char, + angle0: f64, + ); +} +extern "C" { + pub fn ImPlot_PlotPieChartU32Ptr( + label_ids: *const *const ::std::os::raw::c_char, + values: *const ImU32, + count: ::std::os::raw::c_int, + x: f64, + y: f64, + radius: f64, + normalize: bool, + label_fmt: *const ::std::os::raw::c_char, + angle0: f64, + ); +} +extern "C" { + pub fn ImPlot_PlotPieChartS64Ptr( + label_ids: *const *const ::std::os::raw::c_char, + values: *const ImS64, + count: ::std::os::raw::c_int, + x: f64, + y: f64, + radius: f64, + normalize: bool, + label_fmt: *const ::std::os::raw::c_char, + angle0: f64, + ); +} +extern "C" { + pub fn ImPlot_PlotPieChartU64Ptr( + label_ids: *const *const ::std::os::raw::c_char, + values: *const ImU64, + count: ::std::os::raw::c_int, + x: f64, + y: f64, + radius: f64, + normalize: bool, + label_fmt: *const ::std::os::raw::c_char, + angle0: f64, + ); +} extern "C" { pub fn ImPlot_PlotHeatmapFloatPtr( label_id: *const ::std::os::raw::c_char, values: *const f32, rows: ::std::os::raw::c_int, cols: ::std::os::raw::c_int, - scale_min: f32, - scale_max: f32, + scale_min: f64, + scale_max: f64, label_fmt: *const ::std::os::raw::c_char, bounds_min: ImPlotPoint, bounds_max: ImPlotPoint, @@ -2110,6 +3963,110 @@ extern "C" { bounds_max: ImPlotPoint, ); } +extern "C" { + pub fn ImPlot_PlotHeatmapS8Ptr( + label_id: *const ::std::os::raw::c_char, + values: *const ImS8, + rows: ::std::os::raw::c_int, + cols: ::std::os::raw::c_int, + scale_min: f64, + scale_max: f64, + label_fmt: *const ::std::os::raw::c_char, + bounds_min: ImPlotPoint, + bounds_max: ImPlotPoint, + ); +} +extern "C" { + pub fn ImPlot_PlotHeatmapU8Ptr( + label_id: *const ::std::os::raw::c_char, + values: *const ImU8, + rows: ::std::os::raw::c_int, + cols: ::std::os::raw::c_int, + scale_min: f64, + scale_max: f64, + label_fmt: *const ::std::os::raw::c_char, + bounds_min: ImPlotPoint, + bounds_max: ImPlotPoint, + ); +} +extern "C" { + pub fn ImPlot_PlotHeatmapS16Ptr( + label_id: *const ::std::os::raw::c_char, + values: *const ImS16, + rows: ::std::os::raw::c_int, + cols: ::std::os::raw::c_int, + scale_min: f64, + scale_max: f64, + label_fmt: *const ::std::os::raw::c_char, + bounds_min: ImPlotPoint, + bounds_max: ImPlotPoint, + ); +} +extern "C" { + pub fn ImPlot_PlotHeatmapU16Ptr( + label_id: *const ::std::os::raw::c_char, + values: *const ImU16, + rows: ::std::os::raw::c_int, + cols: ::std::os::raw::c_int, + scale_min: f64, + scale_max: f64, + label_fmt: *const ::std::os::raw::c_char, + bounds_min: ImPlotPoint, + bounds_max: ImPlotPoint, + ); +} +extern "C" { + pub fn ImPlot_PlotHeatmapS32Ptr( + label_id: *const ::std::os::raw::c_char, + values: *const ImS32, + rows: ::std::os::raw::c_int, + cols: ::std::os::raw::c_int, + scale_min: f64, + scale_max: f64, + label_fmt: *const ::std::os::raw::c_char, + bounds_min: ImPlotPoint, + bounds_max: ImPlotPoint, + ); +} +extern "C" { + pub fn ImPlot_PlotHeatmapU32Ptr( + label_id: *const ::std::os::raw::c_char, + values: *const ImU32, + rows: ::std::os::raw::c_int, + cols: ::std::os::raw::c_int, + scale_min: f64, + scale_max: f64, + label_fmt: *const ::std::os::raw::c_char, + bounds_min: ImPlotPoint, + bounds_max: ImPlotPoint, + ); +} +extern "C" { + pub fn ImPlot_PlotHeatmapS64Ptr( + label_id: *const ::std::os::raw::c_char, + values: *const ImS64, + rows: ::std::os::raw::c_int, + cols: ::std::os::raw::c_int, + scale_min: f64, + scale_max: f64, + label_fmt: *const ::std::os::raw::c_char, + bounds_min: ImPlotPoint, + bounds_max: ImPlotPoint, + ); +} +extern "C" { + pub fn ImPlot_PlotHeatmapU64Ptr( + label_id: *const ::std::os::raw::c_char, + values: *const ImU64, + rows: ::std::os::raw::c_int, + cols: ::std::os::raw::c_int, + scale_min: f64, + scale_max: f64, + label_fmt: *const ::std::os::raw::c_char, + bounds_min: ImPlotPoint, + bounds_max: ImPlotPoint, + ); +} extern "C" { pub fn ImPlot_PlotDigitalFloatPtr( label_id: *const ::std::os::raw::c_char, @@ -2131,37 +4088,108 @@ extern "C" { ); } extern "C" { - pub fn ImPlot_PlotDigitalFnPlotPoIntPtr( + pub fn ImPlot_PlotDigitalS8Ptr( label_id: *const ::std::os::raw::c_char, - getter: ::std::option::Option< - unsafe extern "C" fn( - data: *mut ::std::os::raw::c_void, - idx: ::std::os::raw::c_int, - ) -> ImPlotPoint, - >, - data: *mut ::std::os::raw::c_void, + xs: *const ImS8, + ys: *const ImS8, count: ::std::os::raw::c_int, offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotTextFloat( - text: *const ::std::os::raw::c_char, - x: f32, - y: f32, - vertical: bool, - pixel_offset: ImVec2, + pub fn ImPlot_PlotDigitalU8Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU8, + ys: *const ImU8, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, ); } extern "C" { - pub fn ImPlot_PlotTextdouble( + pub fn ImPlot_PlotDigitalS16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS16, + ys: *const ImS16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotDigitalU16Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU16, + ys: *const ImU16, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotDigitalS32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS32, + ys: *const ImS32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotDigitalU32Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU32, + ys: *const ImU32, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotDigitalS64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImS64, + ys: *const ImS64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotDigitalU64Ptr( + label_id: *const ::std::os::raw::c_char, + xs: *const ImU64, + ys: *const ImU64, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + stride: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotImage( + label_id: *const ::std::os::raw::c_char, + user_texture_id: ImTextureID, + bounds_min: ImPlotPoint, + bounds_max: ImPlotPoint, + uv0: ImVec2, + uv1: ImVec2, + tint_col: ImVec4, + ); +} +extern "C" { + pub fn ImPlot_PlotText( text: *const ::std::os::raw::c_char, x: f64, y: f64, vertical: bool, - pixel_offset: ImVec2, + pix_offset: ImVec2, ); } +extern "C" { + pub fn ImPlot_PlotDummy(label_id: *const ::std::os::raw::c_char); +} extern "C" { pub fn ImPlot_SetNextPlotLimits(xmin: f64, xmax: f64, ymin: f64, ymax: f64, cond: ImGuiCond); } @@ -2169,12 +4197,7 @@ extern "C" { pub fn ImPlot_SetNextPlotLimitsX(xmin: f64, xmax: f64, cond: ImGuiCond); } extern "C" { - pub fn ImPlot_SetNextPlotLimitsY( - ymin: f64, - ymax: f64, - cond: ImGuiCond, - y_axis: ::std::os::raw::c_int, - ); + pub fn ImPlot_SetNextPlotLimitsY(ymin: f64, ymax: f64, cond: ImGuiCond, y_axis: ImPlotYAxis); } extern "C" { pub fn ImPlot_LinkNextPlotLimits( @@ -2195,7 +4218,7 @@ extern "C" { pub fn ImPlot_SetNextPlotTicksXdoublePtr( values: *const f64, n_ticks: ::std::os::raw::c_int, - labels: *mut *const ::std::os::raw::c_char, + labels: *const *const ::std::os::raw::c_char, show_default: bool, ); } @@ -2204,7 +4227,7 @@ extern "C" { x_min: f64, x_max: f64, n_ticks: ::std::os::raw::c_int, - labels: *mut *const ::std::os::raw::c_char, + labels: *const *const ::std::os::raw::c_char, show_default: bool, ); } @@ -2212,9 +4235,9 @@ extern "C" { pub fn ImPlot_SetNextPlotTicksYdoublePtr( values: *const f64, n_ticks: ::std::os::raw::c_int, - labels: *mut *const ::std::os::raw::c_char, + labels: *const *const ::std::os::raw::c_char, show_default: bool, - y_axis: ::std::os::raw::c_int, + y_axis: ImPlotYAxis, ); } extern "C" { @@ -2222,43 +4245,28 @@ extern "C" { y_min: f64, y_max: f64, n_ticks: ::std::os::raw::c_int, - labels: *mut *const ::std::os::raw::c_char, + labels: *const *const ::std::os::raw::c_char, show_default: bool, - y_axis: ::std::os::raw::c_int, + y_axis: ImPlotYAxis, ); } extern "C" { - pub fn ImPlot_SetPlotYAxis(y_axis: ::std::os::raw::c_int); + pub fn ImPlot_SetPlotYAxis(y_axis: ImPlotYAxis); } extern "C" { - pub fn ImPlot_PixelsToPlotVec2( - pOut: *mut ImPlotPoint, - pix: ImVec2, - y_axis: ::std::os::raw::c_int, - ); + pub fn ImPlot_HideNextItem(hidden: bool, cond: ImGuiCond); } extern "C" { - pub fn ImPlot_PixelsToPlotFloat( - pOut: *mut ImPlotPoint, - x: f32, - y: f32, - y_axis: ::std::os::raw::c_int, - ); + pub fn ImPlot_PixelsToPlotVec2(pOut: *mut ImPlotPoint, pix: ImVec2, y_axis: ImPlotYAxis); } extern "C" { - pub fn ImPlot_PlotToPixelsPlotPoInt( - pOut: *mut ImVec2, - plt: ImPlotPoint, - y_axis: ::std::os::raw::c_int, - ); + pub fn ImPlot_PixelsToPlotFloat(pOut: *mut ImPlotPoint, x: f32, y: f32, y_axis: ImPlotYAxis); } extern "C" { - pub fn ImPlot_PlotToPixelsdouble( - pOut: *mut ImVec2, - x: f64, - y: f64, - y_axis: ::std::os::raw::c_int, - ); + pub fn ImPlot_PlotToPixelsPlotPoInt(pOut: *mut ImVec2, plt: ImPlotPoint, y_axis: ImPlotYAxis); +} +extern "C" { + pub fn ImPlot_PlotToPixelsdouble(pOut: *mut ImVec2, x: f64, y: f64, y_axis: ImPlotYAxis); } extern "C" { pub fn ImPlot_GetPlotPos(pOut: *mut ImVec2); @@ -2273,19 +4281,154 @@ extern "C" { pub fn ImPlot_IsPlotXAxisHovered() -> bool; } extern "C" { - pub fn ImPlot_IsPlotYAxisHovered(y_axis: ::std::os::raw::c_int) -> bool; + pub fn ImPlot_IsPlotYAxisHovered(y_axis: ImPlotYAxis) -> bool; } extern "C" { - pub fn ImPlot_GetPlotMousePos(pOut: *mut ImPlotPoint, y_axis: ::std::os::raw::c_int); + pub fn ImPlot_GetPlotMousePos(pOut: *mut ImPlotPoint, y_axis: ImPlotYAxis); } extern "C" { - pub fn ImPlot_GetPlotLimits(pOut: *mut ImPlotLimits, y_axis: ::std::os::raw::c_int); + pub fn ImPlot_GetPlotLimits(pOut: *mut ImPlotLimits, y_axis: ImPlotYAxis); } extern "C" { pub fn ImPlot_IsPlotQueried() -> bool; } extern "C" { - pub fn ImPlot_GetPlotQuery(pOut: *mut ImPlotLimits, y_axis: ::std::os::raw::c_int); + pub fn ImPlot_GetPlotQuery(pOut: *mut ImPlotLimits, y_axis: ImPlotYAxis); +} +extern "C" { + pub fn ImPlot_AnnotateStr( + x: f64, + y: f64, + pix_offset: ImVec2, + fmt: *const ::std::os::raw::c_char, + ... + ); +} +extern "C" { + pub fn ImPlot_AnnotateVec4( + x: f64, + y: f64, + pix_offset: ImVec2, + color: ImVec4, + fmt: *const ::std::os::raw::c_char, + ... + ); +} +extern "C" { + pub fn ImPlot_AnnotateVStr( + x: f64, + y: f64, + pix_offset: ImVec2, + fmt: *const ::std::os::raw::c_char, + args: *mut __va_list_tag, + ); +} +extern "C" { + pub fn ImPlot_AnnotateVVec4( + x: f64, + y: f64, + pix_offset: ImVec2, + color: ImVec4, + fmt: *const ::std::os::raw::c_char, + args: *mut __va_list_tag, + ); +} +extern "C" { + pub fn ImPlot_AnnotateClampedStr( + x: f64, + y: f64, + pix_offset: ImVec2, + fmt: *const ::std::os::raw::c_char, + ... + ); +} +extern "C" { + pub fn ImPlot_AnnotateClampedVec4( + x: f64, + y: f64, + pix_offset: ImVec2, + color: ImVec4, + fmt: *const ::std::os::raw::c_char, + ... + ); +} +extern "C" { + pub fn ImPlot_AnnotateClampedVStr( + x: f64, + y: f64, + pix_offset: ImVec2, + fmt: *const ::std::os::raw::c_char, + args: *mut __va_list_tag, + ); +} +extern "C" { + pub fn ImPlot_AnnotateClampedVVec4( + x: f64, + y: f64, + pix_offset: ImVec2, + color: ImVec4, + fmt: *const ::std::os::raw::c_char, + args: *mut __va_list_tag, + ); +} +extern "C" { + pub fn ImPlot_DragLineX( + id: *const ::std::os::raw::c_char, + x_value: *mut f64, + show_label: bool, + col: ImVec4, + thickness: f32, + ) -> bool; +} +extern "C" { + pub fn ImPlot_DragLineY( + id: *const ::std::os::raw::c_char, + y_value: *mut f64, + show_label: bool, + col: ImVec4, + thickness: f32, + ) -> bool; +} +extern "C" { + pub fn ImPlot_DragPoint( + id: *const ::std::os::raw::c_char, + x: *mut f64, + y: *mut f64, + show_label: bool, + col: ImVec4, + radius: f32, + ) -> bool; +} +extern "C" { + pub fn ImPlot_SetLegendLocation( + location: ImPlotLocation, + orientation: ImPlotOrientation, + outside: bool, + ); +} +extern "C" { + pub fn ImPlot_SetMousePosLocation(location: ImPlotLocation); +} +extern "C" { + pub fn ImPlot_IsLegendEntryHovered(label_id: *const ::std::os::raw::c_char) -> bool; +} +extern "C" { + pub fn ImPlot_BeginLegendDragDropSource( + label_id: *const ::std::os::raw::c_char, + flags: ImGuiDragDropFlags, + ) -> bool; +} +extern "C" { + pub fn ImPlot_EndLegendDragDropSource(); +} +extern "C" { + pub fn ImPlot_BeginLegendPopup( + label_id: *const ::std::os::raw::c_char, + mouse_button: ImGuiMouseButton, + ) -> bool; +} +extern "C" { + pub fn ImPlot_EndLegendPopup(); } extern "C" { pub fn ImPlot_GetStyle() -> *mut ImPlotStyle; @@ -2342,10 +4485,13 @@ extern "C" { pub fn ImPlot_SetNextErrorBarStyle(col: ImVec4, size: f32, weight: f32); } extern "C" { - pub fn ImPlot_GetStyleColorName(color: ImPlotCol) -> *const ::std::os::raw::c_char; + pub fn ImPlot_GetLastItemColor(pOut: *mut ImVec4); } extern "C" { - pub fn ImPlot_GetMarkerName(marker: ImPlotMarker) -> *const ::std::os::raw::c_char; + pub fn ImPlot_GetStyleColorName(idx: ImPlotCol) -> *const ::std::os::raw::c_char; +} +extern "C" { + pub fn ImPlot_GetMarkerName(idx: ImPlotMarker) -> *const ::std::os::raw::c_char; } extern "C" { pub fn ImPlot_PushColormapPlotColormap(colormap: ImPlotColormap); @@ -2380,27 +4526,6 @@ extern "C" { extern "C" { pub fn ImPlot_GetColormapName(colormap: ImPlotColormap) -> *const ::std::os::raw::c_char; } -extern "C" { - pub fn ImPlot_IsLegendEntryHovered(label_id: *const ::std::os::raw::c_char) -> bool; -} -extern "C" { - pub fn ImPlot_BeginLegendDragDropSource( - label_id: *const ::std::os::raw::c_char, - flags: ImGuiDragDropFlags, - ) -> bool; -} -extern "C" { - pub fn ImPlot_EndLegendDragDropSource(); -} -extern "C" { - pub fn ImPlot_BeginLegendPopup( - label_id: *const ::std::os::raw::c_char, - mouse_button: ImGuiMouseButton, - ) -> bool; -} -extern "C" { - pub fn ImPlot_EndLegendPopup(); -} extern "C" { pub fn ImPlot_GetInputMap() -> *mut ImPlotInputMap; } @@ -2416,12 +4541,176 @@ extern "C" { extern "C" { pub fn ImPlot_ShowStyleSelector(label: *const ::std::os::raw::c_char) -> bool; } +extern "C" { + pub fn ImPlot_ShowColormapSelector(label: *const ::std::os::raw::c_char) -> bool; +} extern "C" { pub fn ImPlot_ShowStyleEditor(ref_: *mut ImPlotStyle); } extern "C" { pub fn ImPlot_ShowUserGuide(); } +extern "C" { + pub fn ImPlot_ShowMetricsWindow(p_popen: *mut bool); +} +extern "C" { + pub fn ImPlot_SetImGuiContext(ctx: *mut ImGuiContext); +} extern "C" { pub fn ImPlot_ShowDemoWindow(p_open: *mut bool); } +extern "C" { + pub fn ImPlot_PlotLineG( + label_id: *const ::std::os::raw::c_char, + getter: ::std::option::Option< + unsafe extern "C" fn( + data: *mut ::std::os::raw::c_void, + idx: ::std::os::raw::c_int, + ) -> *mut ImPlotPoint, + >, + data: *mut ::std::os::raw::c_void, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotScatterG( + label_id: *const ::std::os::raw::c_char, + getter: ::std::option::Option< + unsafe extern "C" fn( + data: *mut ::std::os::raw::c_void, + idx: ::std::os::raw::c_int, + ) -> *mut ImPlotPoint, + >, + data: *mut ::std::os::raw::c_void, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotShadedG( + label_id: *const ::std::os::raw::c_char, + getter1: ::std::option::Option< + unsafe extern "C" fn( + data: *mut ::std::os::raw::c_void, + idx: ::std::os::raw::c_int, + ) -> *mut ImPlotPoint, + >, + data1: *mut ::std::os::raw::c_void, + getter2: ::std::option::Option< + unsafe extern "C" fn( + data: *mut ::std::os::raw::c_void, + idx: ::std::os::raw::c_int, + ) -> *mut ImPlotPoint, + >, + data2: *mut ::std::os::raw::c_void, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsG( + label_id: *const ::std::os::raw::c_char, + getter: ::std::option::Option< + unsafe extern "C" fn( + data: *mut ::std::os::raw::c_void, + idx: ::std::os::raw::c_int, + ) -> *mut ImPlotPoint, + >, + data: *mut ::std::os::raw::c_void, + count: ::std::os::raw::c_int, + width: f64, + offset: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotBarsHG( + label_id: *const ::std::os::raw::c_char, + getter: ::std::option::Option< + unsafe extern "C" fn( + data: *mut ::std::os::raw::c_void, + idx: ::std::os::raw::c_int, + ) -> *mut ImPlotPoint, + >, + data: *mut ::std::os::raw::c_void, + count: ::std::os::raw::c_int, + height: f64, + offset: ::std::os::raw::c_int, + ); +} +extern "C" { + pub fn ImPlot_PlotDigitalG( + label_id: *const ::std::os::raw::c_char, + getter: ::std::option::Option< + unsafe extern "C" fn( + data: *mut ::std::os::raw::c_void, + idx: ::std::os::raw::c_int, + ) -> *mut ImPlotPoint, + >, + data: *mut ::std::os::raw::c_void, + count: ::std::os::raw::c_int, + offset: ::std::os::raw::c_int, + ); +} +pub type __builtin_va_list = [__va_list_tag; 1usize]; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __va_list_tag { + pub gp_offset: ::std::os::raw::c_uint, + pub fp_offset: ::std::os::raw::c_uint, + pub overflow_arg_area: *mut ::std::os::raw::c_void, + pub reg_save_area: *mut ::std::os::raw::c_void, +} +#[test] +fn bindgen_test_layout___va_list_tag() { + assert_eq!( + ::std::mem::size_of::<__va_list_tag>(), + 24usize, + concat!("Size of: ", stringify!(__va_list_tag)) + ); + assert_eq!( + ::std::mem::align_of::<__va_list_tag>(), + 8usize, + concat!("Alignment of ", stringify!(__va_list_tag)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(__va_list_tag), + "::", + stringify!(gp_offset) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(__va_list_tag), + "::", + stringify!(fp_offset) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(__va_list_tag), + "::", + stringify!(overflow_arg_area) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(__va_list_tag), + "::", + stringify!(reg_save_area) + ) + ); +} diff --git a/implot-sys/third-party/cimplot b/implot-sys/third-party/cimplot index 54ed676..a7760f2 160000 --- a/implot-sys/third-party/cimplot +++ b/implot-sys/third-party/cimplot @@ -1 +1 @@ -Subproject commit 54ed676f42b7d96d6622f1c90df7d884246cc944 +Subproject commit a7760f2f7557e15f50fe7916c9243b192345b38e diff --git a/src/lib.rs b/src/lib.rs index 5ce3b75..d6d297c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -83,7 +83,7 @@ pub enum Marker { /// Colorable plot elements. These are called "ImPlotCol" in ImPlot itself, but I found that /// name somewhat confusing because we are not referring to colors, but _which_ thing can /// be colored - hence I added the "Element". -#[repr(i32)] +#[repr(u32)] #[derive(Copy, Clone, Debug)] pub enum PlotColorElement { /// Plot line/outline color (defaults to next unused color in current colormap) @@ -137,7 +137,7 @@ pub enum PlotColorElement { } /// Colormap choice. Documentation copied from implot.h for convenience. -#[repr(i32)] +#[repr(u32)] #[derive(Copy, Clone, Debug)] pub enum Colormap { /// ImPlot default colormap (n=10). Called "Standard" here because Default is reserved. @@ -164,7 +164,7 @@ pub enum Colormap { Jet = sys::ImPlotColormap__ImPlotColormap_Jet, } -#[repr(i32)] +#[repr(u32)] #[derive(Copy, Clone, Debug)] pub enum StyleVar { /// f32, line weight in pixels @@ -207,8 +207,16 @@ pub enum StyleVar { LabelPadding = sys::ImPlotStyleVar__ImPlotStyleVar_LabelPadding, /// ImVec2, legend padding from top-left of plot LegendPadding = sys::ImPlotStyleVar__ImPlotStyleVar_LegendPadding, + /// ImVec2, legend inner padding from legend edges + LegendInnerPadding = sys::ImPlotStyleVar__ImPlotStyleVar_LegendInnerPadding, + /// ImVec2, spacing between legend entries + LegendSpacing = sys::ImPlotStyleVar__ImPlotStyleVar_LegendSpacing, /// ImVec2, padding between plot edge and interior info text - InfoPadding = sys::ImPlotStyleVar__ImPlotStyleVar_InfoPadding, + MousePosPadding = sys::ImPlotStyleVar__ImPlotStyleVar_MousePosPadding, + /// ImVec2, text padding around annotation labels + AnnotationPadding = sys::ImPlotStyleVar__ImPlotStyleVar_AnnotationPadding, + /// ImVec2, default size used when ImVec2(0,0) is passed to BeginPlot + PlotDefaultSize = sys::ImPlotStyleVar__ImPlotStyleVar_PlotDefaultSize, /// ImVec2, minimum size plot frame can be when shrunk PlotMinSize = sys::ImPlotStyleVar__ImPlotStyleVar_PlotMinSize, } diff --git a/src/plot.rs b/src/plot.rs index bae0d63..34319c6 100644 --- a/src/plot.rs +++ b/src/plot.rs @@ -17,7 +17,7 @@ bitflags! { /// convenience. ImPlot itself also has a "CanvasOnly" flag, which can be emulated here with /// the combination of `NO_LEGEND`, `NO_MENUS`, `NO_BOX_SELECT` and `NO_MOUSE_POSITION`. #[repr(transparent)] - pub struct PlotFlags: i32 { + pub struct PlotFlags: u32 { /// "Default" according to original docs const NONE = sys::ImPlotFlags__ImPlotFlags_None; /// Plot items will not be highlighted when their legend entry is hovered @@ -51,7 +51,7 @@ bitflags! { /// has `Lock`, which combines `LOCK_MIN` and `LOCK_MAX`, and `NoDecorations`, which combines /// `NO_GRID_LINES`, `NO_TICK_MARKS` and `NO_TICK_LABELS`. #[repr(transparent)] - pub struct AxisFlags: i32 { + pub struct AxisFlags: u32 { /// "Default" according to original docs const NONE = sys::ImPlotAxisFlags__ImPlotAxisFlags_None; /// Grid lines will not be displayed diff --git a/src/plot_elements.rs b/src/plot_elements.rs index 924427d..c844001 100644 --- a/src/plot_elements.rs +++ b/src/plot_elements.rs @@ -191,7 +191,7 @@ impl PlotText { } unsafe { - sys::ImPlot_PlotTextdouble( + sys::ImPlot_PlotText( im_str!("{}", self.label).as_ptr() as *const i8, x, y,