123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142 |
- /*
- Copyright (c) 2025 Bruce A Henderson
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
- The above copyright notice and this permission notice shall be included in all
- copies or substantial portions of the Software.
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE.
- */
- #include "implot.h"
- #include "brl.mod/blitz.mod/blitz.h"
- typedef signed char ImS8; // 8-bit signed integer
- typedef unsigned char ImU8; // 8-bit unsigned integer
- typedef signed short ImS16; // 16-bit signed integer
- typedef unsigned short ImU16; // 16-bit unsigned integer
- typedef signed int ImS32; // 32-bit signed integer == int
- typedef unsigned int ImU32; // 32-bit unsigned integer (often used to store packed colors)
- typedef signed long long ImS64; // 64-bit signed integer
- typedef unsigned long long ImU64; // 64-bit unsigned integer
- // begin extern "C" {
- extern "C" {
- void ImPlot_ShowDemoWindow(int * open) {
- bool op = *open;
- ImPlot::ShowDemoWindow(&op);
- *open = op;
- }
- ///////////////////////////////////////////////////////////
- ImPlotContext * ImPlot_CreateContext() {
- return ImPlot::CreateContext();
- }
- void ImPlot_DestroyContext(ImPlotContext * ctx) {
- ImPlot::DestroyContext(ctx);
- }
- void ImPlot_SetCurrentContext(ImPlotContext * ctx) {
- ImPlot::SetCurrentContext(ctx);
- }
- ImPlotContext * ImPlot_GetCurrentContext() {
- return ImPlot::GetCurrentContext();
- }
- ///////////////////////////////////////////////////////////
- typedef struct MaxVec2 {
- float x, y;
- } MaxVec2;
- typedef struct MaxVec4 {
- float x, y, z, w;
- } MaxVec4;
- typedef struct MaxPlotPoint {
- double x, y;
- } MaxPlotPoint;
- typedef struct MaxPlotRange {
- double min, max;
- } MaxPlotRange;
- typedef struct MaxPlotRect {
- MaxPlotRange x, y;
- } MaxPlotRect;
- static inline MaxVec2 ConvertFromCPP_MaxVec2(const ::ImVec2& src)
- {
- MaxVec2 dest;
- dest.x = src.x;
- dest.y = src.y;
- return dest;
- }
- static inline ::ImVec2 ConvertToCPP_MaxVec2(const MaxVec2& src)
- {
- ::ImVec2 dest;
- dest.x = src.x;
- dest.y = src.y;
- return dest;
- }
- static inline MaxVec4 ConvertFromCPP_MaxVec4(const ::ImVec4& src)
- {
- MaxVec4 dest;
- dest.x = src.x;
- dest.y = src.y;
- dest.z = src.z;
- dest.w = src.w;
- return dest;
- }
- static inline ::ImVec4 ConvertToCPP_MaxVec4(const MaxVec4& src)
- {
- ::ImVec4 dest;
- dest.x = src.x;
- dest.y = src.y;
- dest.z = src.z;
- dest.w = src.w;
- return dest;
- }
- static inline MaxPlotPoint ConvertFromCPP_MaxPlotPoint(const ImPlotPoint& src)
- {
- MaxPlotPoint dest;
- dest.x = src.x;
- dest.y = src.y;
- return dest;
- }
- static inline ::ImPlotPoint ConvertToCPP_MaxPlotPoint(const MaxPlotPoint& src)
- {
- ::ImPlotPoint dest;
- dest.x = src.x;
- dest.y = src.y;
- return dest;
- }
- static inline MaxPlotRange ConvertFromCPP_MaxPlotRange(const ImPlotRange& src)
- {
- MaxPlotRange dest;
- dest.min = src.Min;
- dest.max = src.Max;
- return dest;
- }
- static inline ::ImPlotRange ConvertToCPP_MaxPlotRange(const MaxPlotRange& src)
- {
- ::ImPlotRange dest;
- dest.Min = src.min;
- dest.Max = src.max;
- return dest;
- }
- static inline MaxPlotRect ConvertFromCPP_MaxPlotRect(const ImPlotRect& src)
- {
- MaxPlotRect dest;
- dest.x = ConvertFromCPP_MaxPlotRange(src.X);
- dest.y = ConvertFromCPP_MaxPlotRange(src.Y);
- return dest;
- }
- static inline ::ImPlotRect ConvertToCPP_MaxPlotRect(const MaxPlotRect& src)
- {
- ::ImPlotRect dest;
- dest.X = ConvertToCPP_MaxPlotRange(src.x);
- dest.Y = ConvertToCPP_MaxPlotRange(src.y);
- return dest;
- }
- ///////////////////////////////////////////////////////////
- int ImPlot_BeginPlotSize(BBString * title_id, MaxVec2 size, ImPlotFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(title_id);
- int result = ImPlot::BeginPlot(v0, ConvertToCPP_MaxVec2(size), flags);
- bbMemFree((void*)v0);
- return result;
- }
- int ImPlot_BeginPlot(BBString * title_id, ImPlotFlags flags) {
- return ImPlot_BeginPlotSize(title_id, {-1, 0}, flags);
- }
- void ImPlot_EndPlot() {
- ImPlot::EndPlot();
- }
- ///////////////////////////////////////////////////////////
- int ImPlot_BeginSubplots(BBString * title_id, int rows, int cols, MaxVec2 size, ImPlotSubplotFlags flags, float * row_ratios, float * col_ratios) {
- const char * v0 = (const char *)bbStringToUTF8String(title_id);
- int result = ImPlot::BeginSubplots(v0, rows, cols, ConvertToCPP_MaxVec2(size), flags, row_ratios, col_ratios);
- bbMemFree((void*)v0);
- return result;
- }
- void ImPlot_EndSubplots() {
- ImPlot::EndSubplots();
- }
- ///////////////////////////////////////////////////////////
- void ImPlot_SetupAxis(ImAxis axis, BBString * label, ImPlotAxisFlags flags) {
- const char * v0;
- if ( label == &bbEmptyString ) {
- v0 = nullptr;
- } else {
- v0 = (const char *)bbStringToUTF8String(label);
- }
- ImPlot::SetupAxis(axis, v0, flags);
- bbMemFree((void*)v0);
- }
- void ImPlot_SetupAxisLimits(ImAxis axis, double v_min, double v_max, ImPlotCond cond) {
- ImPlot::SetupAxisLimits(axis, v_min, v_max, cond);
- }
- void ImPlot_SetupAxisLinks(ImAxis axis, double * link_min, double * link_max) {
- ImPlot::SetupAxisLinks(axis, link_min, link_max);
- }
- void ImPlot_SetupAxisFormat(ImAxis axis, BBString * fmt) {
- const char * v0;
- if ( fmt == &bbEmptyString ) {
- v0 = nullptr;
- } else {
- v0 = (const char *)bbStringToUTF8String(fmt);
- }
- ImPlot::SetupAxisFormat(axis, v0);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- // float
- void ImPlot_PlotLineFloat(BBString * label, float * values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, values, count, xscale, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotLineXYFloat(BBString * label, float * xs, float * ys, int count, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // double
- void ImPlot_PlotLineDouble(BBString * label, double * values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, values, count, xscale, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotLineXYDouble(BBString * label, double * xs, double * ys, int count, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // byte
- void ImPlot_PlotLineByte(BBString * label, ImU8 * values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, values, count, xscale, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotLineXYByte(BBString * label, ImU8 * xs, ImU8 * ys, int count, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // short
- void ImPlot_PlotLineShort(BBString * label, ImU16 * values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, values, count, xscale, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotLineXYShort(BBString * label, ImU16 * xs, ImU16 * ys, int count, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // int
- void ImPlot_PlotLineInt(BBString * label, ImS32 * values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, values, count, xscale, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotLineXYInt(BBString * label, ImS32 * xs, ImS32 * ys, int count, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // long
- void ImPlot_PlotLineLong(BBString * label, ImS64 * values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, values, count, xscale, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotLineXYLong(BBString * label, ImS64 * xs, ImS64 * ys, int count, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // uint
- void ImPlot_PlotLineUInt(BBString * label, ImU32 * values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, values, count, xscale, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotLineXYUInt(BBString * label, ImU32 * xs, ImU32 * ys, int count, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // ulong
- void ImPlot_PlotLineULong(BBString * label, ImU64 * values, int count, double xscale, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, values, count, xscale, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotLineXYULong(BBString * label, ImU64 * xs, ImU64 * ys, int count, ImPlotLineFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotLine(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- // float
- void ImPlot_PlotScatterFloat(BBString * label, float * values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotScatterXYFloat(BBString * label, float * xs, float * ys, int count, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // double
- void ImPlot_PlotScatterDouble(BBString * label, double * values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotScatterXYDouble(BBString * label, double * xs, double * ys, int count, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // byte
- void ImPlot_PlotScatterByte(BBString * label, ImU8 * values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotScatterXYByte(BBString * label, ImU8 * xs, ImU8 * ys, int count, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // short
- void ImPlot_PlotScatterShort(BBString * label, ImU16 * values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotScatterXYShort(BBString * label, ImU16 * xs, ImU16 * ys, int count, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // int
- void ImPlot_PlotScatterInt(BBString * label, ImS32 * values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotScatterXYInt(BBString * label, ImS32 * xs, ImS32 * ys, int count, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // long
- void ImPlot_PlotScatterLong(BBString * label, ImS64 * values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotScatterXYLong(BBString * label, ImS64 * xs, ImS64 * ys, int count, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // uint
- void ImPlot_PlotScatterUInt(BBString * label, ImU32 * values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotScatterXYUInt(BBString * label, ImU32 * xs, ImU32 * ys, int count, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // ulong
- void ImPlot_PlotScatterULong(BBString * label, ImU64 * values, int count, double xscale, double xstart, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotScatterXYULong(BBString * label, ImU64 * xs, ImU64 * ys, int count, ImPlotScatterFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotScatter(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- // float
- void ImPlot_PlotStairsFloat(BBString * label, float * values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStairsXYFloat(BBString * label, float * xs, float * ys, int count, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // double
- void ImPlot_PlotStairsDouble(BBString * label, double * values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStairsXYDouble(BBString * label, double * xs, double * ys, int count, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // byte
- void ImPlot_PlotStairsByte(BBString * label, ImU8 * values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStairsXYByte(BBString * label, ImU8 * xs, ImU8 * ys, int count, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // short
- void ImPlot_PlotStairsShort(BBString * label, ImU16 * values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStairsXYShort(BBString * label, ImU16 * xs, ImU16 * ys, int count, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // int
- void ImPlot_PlotStairsInt(BBString * label, ImS32 * values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStairsXYInt(BBString * label, ImS32 * xs, ImS32 * ys, int count, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // long
- void ImPlot_PlotStairsLong(BBString * label, ImS64 * values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStairsXYLong(BBString * label, ImS64 * xs, ImS64 * ys, int count, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // uint
- void ImPlot_PlotStairsUInt(BBString * label, ImU32 * values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStairsXYUInt(BBString * label, ImU32 * xs, ImU32 * ys, int count, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // ulong
- void ImPlot_PlotStairsULong(BBString * label, ImU64 * values, int count, double xscale, double xstart, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, values, count, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStairsXYULong(BBString * label, ImU64 * xs, ImU64 * ys, int count, ImPlotStairsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStairs(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- // float
- void ImPlot_PlotShadedFloat(BBString * label, float * values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, values, count, yref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYFloat(BBString * label, float * xs, float * ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys, count, yref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYYFloat(BBString * label, float * xs, float * ys1, float * ys2, int count, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys1, ys2, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // double
- void ImPlot_PlotShadedDouble(BBString * label, double * values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, values, count, yref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYDouble(BBString * label, double * xs, double * ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys, count, yref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYYDouble(BBString * label, double * xs, double * ys1, double * ys2, int count, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys1, ys2, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // byte
- void ImPlot_PlotShadedByte(BBString * label, ImU8 * values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, values, count, yref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYByte(BBString * label, ImU8 * xs, ImU8 * ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys, count, yref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYYByte(BBString * label, ImU8 * xs, ImU8 * ys1, ImU8 * ys2, int count, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys1, ys2, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // short
- void ImPlot_PlotShadedShort(BBString * label, ImU16 * values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, values, count, yref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYShort(BBString * label, ImU16 * xs, ImU16 * ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys, count, yref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYYShort(BBString * label, ImU16 * xs, ImU16 * ys1, ImU16 * ys2, int count, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys1, ys2, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // int
- void ImPlot_PlotShadedInt(BBString * label, ImS32 * values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, values, count, yref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYInt(BBString * label, ImS32 * xs, ImS32 * ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys, count, yref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYYInt(BBString * label, ImS32 * xs, ImS32 * ys1, ImS32 * ys2, int count, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys1, ys2, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // long
- void ImPlot_PlotShadedLong(BBString * label, ImS64 * values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, values, count, yref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYLong(BBString * label, ImS64 * xs, ImS64 * ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys, count, yref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYYLong(BBString * label, ImS64 * xs, ImS64 * ys1, ImS64 * ys2, int count, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys1, ys2, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // uint
- void ImPlot_PlotShadedUInt(BBString * label, ImU32 * values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, values, count, yref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYUInt(BBString * label, ImU32 * xs, ImU32 * ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys, count, yref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYYUInt(BBString * label, ImU32 * xs, ImU32 * ys1, ImU32 * ys2, int count, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys1, ys2, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // ulong
- void ImPlot_PlotShadedULong(BBString * label, ImU64 * values, int count, double yref, double xscale, double xstart, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, values, count, yref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYULong(BBString * label, ImU64 * xs, ImU64 * ys, int count, double yref, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys, count, yref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotShadedXYYULong(BBString * label, ImU64 * xs, ImU64 * ys1, ImU64 * ys2, int count, ImPlotShadedFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotShaded(v0, xs, ys1, ys2, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- // float
- void ImPlot_PlotBarsFloat(BBString * label, float * values, int count, double bar_size, double shift, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, values, count, bar_size, shift, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotBarsXYFloat(BBString * label, float * xs, float * ys, int count, double bar_size, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, xs, ys, count, bar_size, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // double
- void ImPlot_PlotBarsDouble(BBString * label, double * values, int count, double bar_size, double shift, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, values, count, bar_size, shift, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotBarsXYDouble(BBString * label, double * xs, double * ys, int count, double bar_size, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, xs, ys, count, bar_size, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // byte
- void ImPlot_PlotBarsByte(BBString * label, ImU8 * values, int count, double bar_size, double shift, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, values, count, bar_size, shift, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotBarsXYByte(BBString * label, ImU8 * xs, ImU8 * ys, int count, double bar_size, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, xs, ys, count, bar_size, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // short
- void ImPlot_PlotBarsShort(BBString * label, ImU16 * values, int count, double bar_size, double shift, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, values, count, bar_size, shift, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotBarsXYShort(BBString * label, ImU16 * xs, ImU16 * ys, int count, double bar_size, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, xs, ys, count, bar_size, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // int
- void ImPlot_PlotBarsInt(BBString * label, ImS32 * values, int count, double bar_size, double shift, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, values, count, bar_size, shift, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotBarsXYInt(BBString * label, ImS32 * xs, ImS32 * ys, int count, double bar_size, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, xs, ys, count, bar_size, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // long
- void ImPlot_PlotBarsLong(BBString * label, ImS64 * values, int count, double bar_size, double shift, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, values, count, bar_size, shift, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotBarsXYLong(BBString * label, ImS64 * xs, ImS64 * ys, int count, double bar_size, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, xs, ys, count, bar_size, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // uint
- void ImPlot_PlotBarsUInt(BBString * label, ImU32 * values, int count, double bar_size, double shift, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, values, count, bar_size, shift, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotBarsXYUInt(BBString * label, ImU32 * xs, ImU32 * ys, int count, double bar_size, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, xs, ys, count, bar_size, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // ulong
- void ImPlot_PlotBarsULong(BBString * label, ImU64 * values, int count, double bar_size, double shift, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, values, count, bar_size, shift, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotBarsXYULong(BBString * label, ImU64 * xs, ImU64 * ys, int count, double bar_size, ImPlotBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotBars(v0, xs, ys, count, bar_size, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- char** bmx_bbStringArrayToUTF8StringArray(BBArray * arr) {
- int count = arr->scales[0];
- BBString **s=(BBString**)BBARRAYDATA( arr,arr->dims );
- char ** utf8_arr = (char **)bbMemAlloc(count * sizeof(char *));
- for (int i = 0; i < count; i++) {
- utf8_arr[i] = (char *)bbStringToUTF8String(s[i]);
- }
- return utf8_arr;
- }
- // float
- void ImPlot_PlotBarGroupsFloat(BBArray * label_ids, float * values, int item_count, int group_count, double group_size, double shift, ImPlotBarGroupsFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- ImPlot::PlotBarGroups(v0, values, item_count, group_count, group_size, shift, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- }
- // double
- void ImPlot_PlotBarGroupsDouble(BBArray * label_ids, double * values, int item_count, int group_count, double group_size, double shift, ImPlotBarGroupsFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- ImPlot::PlotBarGroups(v0, values, item_count, group_count, group_size, shift, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- }
- // byte
- void ImPlot_PlotBarGroupsByte(BBArray * label_ids, ImU8 * values, int item_count, int group_count, double group_size, double shift, ImPlotBarGroupsFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- ImPlot::PlotBarGroups(v0, values, item_count, group_count, group_size, shift, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- }
- // short
- void ImPlot_PlotBarGroupsShort(BBArray * label_ids, ImU16 * values, int item_count, int group_count, double group_size, double shift, ImPlotBarGroupsFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- ImPlot::PlotBarGroups(v0, values, item_count, group_count, group_size, shift, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- }
- // int
- void ImPlot_PlotBarGroupsInt(BBArray * label_ids, ImS32 * values, int item_count, int group_count, double group_size, double shift, ImPlotBarGroupsFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- ImPlot::PlotBarGroups(v0, values, item_count, group_count, group_size, shift, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- }
- // long
- void ImPlot_PlotBarGroupsLong(BBArray * label_ids, ImS64 * values, int item_count, int group_count, double group_size, double shift, ImPlotBarGroupsFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- ImPlot::PlotBarGroups(v0, values, item_count, group_count, group_size, shift, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- }
- // uint
- void ImPlot_PlotBarGroupsUInt(BBArray * label_ids, ImU32 * values, int item_count, int group_count, double group_size, double shift, ImPlotBarGroupsFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- ImPlot::PlotBarGroups(v0, values, item_count, group_count, group_size, shift, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- }
- // ulong
- void ImPlot_PlotBarGroupsULong(BBArray * label_ids, ImU64 * values, int item_count, int group_count, double group_size, double shift, ImPlotBarGroupsFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- ImPlot::PlotBarGroups(v0, values, item_count, group_count, group_size, shift, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- }
-
- ///////////////////////////////////////////////////////////
- // float
- void ImPlot_PlotErrorBarsFloat(BBString * label, float * xs, float * ys, float * err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, err, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotErrorBarsNPFloat(BBString * label, float * xs, float * ys, float * neg, float * pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, neg, pos, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // double
- void ImPlot_PlotErrorBarsDouble(BBString * label, double * xs, double * ys, double * err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, err, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotErrorBarsNPDouble(BBString * label, double * xs, double * ys, double * neg, double * pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, neg, pos, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // byte
- void ImPlot_PlotErrorBarsByte(BBString * label, ImU8 * xs, ImU8 * ys, ImU8 * err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, err, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotErrorBarsNPByte(BBString * label, ImU8 * xs, ImU8 * ys, ImU8 * neg, ImU8 * pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, neg, pos, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // short
- void ImPlot_PlotErrorBarsShort(BBString * label, ImU16 * xs, ImU16 * ys, ImU16 * err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, err, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotErrorBarsNPShort(BBString * label, ImU16 * xs, ImU16 * ys, ImU16 * neg, ImU16 * pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, neg, pos, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // int
- void ImPlot_PlotErrorBarsInt(BBString * label, ImS32 * xs, ImS32 * ys, ImS32 * err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, err, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotErrorBarsNPInt(BBString * label, ImS32 * xs, ImS32 * ys, ImS32 * neg, ImS32 * pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, neg, pos, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // long
- void ImPlot_PlotErrorBarsLong(BBString * label, ImS64 * xs, ImS64 * ys, ImS64 * err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, err, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotErrorBarsNPLong(BBString * label, ImS64 * xs, ImS64 * ys, ImS64 * neg, ImS64 * pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, neg, pos, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // uint
- void ImPlot_PlotErrorBarsUInt(BBString * label, ImU32 * xs, ImU32 * ys, ImU32 * err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, err, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotErrorBarsNPUInt(BBString * label, ImU32 * xs, ImU32 * ys, ImU32 * neg, ImU32 * pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, neg, pos, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // ulong
- void ImPlot_PlotErrorBarsULong(BBString * label, ImU64 * xs, ImU64 * ys, ImU64 * err, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, err, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotErrorBarsNPULong(BBString * label, ImU64 * xs, ImU64 * ys, ImU64 * neg, ImU64 * pos, int count, ImPlotErrorBarsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotErrorBars(v0, xs, ys, neg, pos, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- // float
- void ImPlot_PlotStemsFloat(BBString * label, float * values, int count, double ref, double xscale, double xstart, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, values, count, ref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStemsXYFloat(BBString * label, float * xs, float * ys, int count, double ref, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, xs, ys, count, ref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // double
- void ImPlot_PlotStemsDouble(BBString * label, double * values, int count, double ref, double xscale, double xstart, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, values, count, ref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStemsXYDouble(BBString * label, double * xs, double * ys, int count, double ref, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, xs, ys, count, ref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // byte
- void ImPlot_PlotStemsByte(BBString * label, ImU8 * values, int count, double ref, double xscale, double xstart, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, values, count, ref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStemsXYByte(BBString * label, ImU8 * xs, ImU8 * ys, int count, double ref, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, xs, ys, count, ref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // short
- void ImPlot_PlotStemsShort(BBString * label, ImU16 * values, int count, double ref, double xscale, double xstart, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, values, count, ref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStemsXYShort(BBString * label, ImU16 * xs, ImU16 * ys, int count, double ref, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, xs, ys, count, ref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // int
- void ImPlot_PlotStemsInt(BBString * label, ImS32 * values, int count, double ref, double xscale, double xstart, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, values, count, ref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStemsXYInt(BBString * label, ImS32 * xs, ImS32 * ys, int count, double ref, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, xs, ys, count, ref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // long
- void ImPlot_PlotStemsLong(BBString * label, ImS64 * values, int count, double ref, double xscale, double xstart, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, values, count, ref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStemsXYLong(BBString * label, ImS64 * xs, ImS64 * ys, int count, double ref, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, xs, ys, count, ref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // uint
- void ImPlot_PlotStemsUInt(BBString * label, ImU32 * values, int count, double ref, double xscale, double xstart, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, values, count, ref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStemsXYUInt(BBString * label, ImU32 * xs, ImU32 * ys, int count, double ref, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, xs, ys, count, ref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // ulong
- void ImPlot_PlotStemsULong(BBString * label, ImU64 * values, int count, double ref, double xscale, double xstart, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, values, count, ref, xscale, xstart, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotStemsXYULong(BBString * label, ImU64 * xs, ImU64 * ys, int count, double ref, ImPlotStemsFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotStems(v0, xs, ys, count, ref, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- // float
- void ImPlot_PlotInfLinesFloat(BBString * label, float * values, int count, ImPlotInfLinesFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotInfLines(v0, values, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // double
- void ImPlot_PlotInfLinesDouble(BBString * label, double * values, int count, ImPlotInfLinesFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotInfLines(v0, values, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // byte
- void ImPlot_PlotInfLinesByte(BBString * label, ImU8 * values, int count, ImPlotInfLinesFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotInfLines(v0, values, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // short
- void ImPlot_PlotInfLinesShort(BBString * label, ImU16 * values, int count, ImPlotInfLinesFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotInfLines(v0, values, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // int
- void ImPlot_PlotInfLinesInt(BBString * label, ImS32 * values, int count, ImPlotInfLinesFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotInfLines(v0, values, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // long
- void ImPlot_PlotInfLinesLong(BBString * label, ImS64 * values, int count, ImPlotInfLinesFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotInfLines(v0, values, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // uint
- void ImPlot_PlotInfLinesUInt(BBString * label, ImU32 * values, int count, ImPlotInfLinesFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotInfLines(v0, values, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // ulong
- void ImPlot_PlotInfLinesULong(BBString * label, ImU64 * values, int count, ImPlotInfLinesFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotInfLines(v0, values, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- // float
- void ImPlot_PlotPieChartFloat(BBArray * label_ids, float * values, int count, double x, double y, double radius, BBString * label_fmt, double angle0, ImPlotPieChartFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotPieChart(v0, values, count, x, y, radius, v1, angle0, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // double
- void ImPlot_PlotPieChartDouble(BBArray * label_ids, double * values, int count, double x, double y, double radius, BBString * label_fmt, double angle0, ImPlotPieChartFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotPieChart(v0, values, count, x, y, radius, v1, angle0, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // byte
- void ImPlot_PlotPieChartByte(BBArray * label_ids, ImU8 * values, int count, double x, double y, double radius, BBString * label_fmt, double angle0, ImPlotPieChartFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotPieChart(v0, values, count, x, y, radius, v1, angle0, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // short
- void ImPlot_PlotPieChartShort(BBArray * label_ids, ImU16 * values, int count, double x, double y, double radius, BBString * label_fmt, double angle0, ImPlotPieChartFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotPieChart(v0, values, count, x, y, radius, v1, angle0, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // int
- void ImPlot_PlotPieChartInt(BBArray * label_ids, ImS32 * values, int count, double x, double y, double radius, BBString * label_fmt, double angle0, ImPlotPieChartFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotPieChart(v0, values, count, x, y, radius, v1, angle0, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // long
- void ImPlot_PlotPieChartLong(BBArray * label_ids, ImS64 * values, int count, double x, double y, double radius, BBString * label_fmt, double angle0, ImPlotPieChartFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotPieChart(v0, values, count, x, y, radius, v1, angle0, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // uint
- void ImPlot_PlotPieChartUInt(BBArray * label_ids, ImU32 * values, int count, double x, double y, double radius, BBString * label_fmt, double angle0, ImPlotPieChartFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotPieChart(v0, values, count, x, y, radius, v1, angle0, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // ulong
- void ImPlot_PlotPieChartULong(BBArray * label_ids, ImU64 * values, int count, double x, double y, double radius, BBString * label_fmt, double angle0, ImPlotPieChartFlags flags) {
- char ** v0 = bmx_bbStringArrayToUTF8StringArray(label_ids);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotPieChart(v0, values, count, x, y, radius, v1, angle0, flags);
- for (int i = 0; i < label_ids->scales[0]; i++) {
- bbMemFree((void*)v0[i]);
- }
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- ///////////////////////////////////////////////////////////
- // float
- void ImPlot_PlotHeatmapFloat(BBString * label, float * values, int rows, int cols, double scale_min, double scale_max, BBString * label_fmt, MaxPlotPoint & bounds_min, MaxPlotPoint & bounds_max, ImPlotHeatmapFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotHeatmap(v0, values, rows, cols, scale_min, scale_max, v1, ConvertToCPP_MaxPlotPoint(bounds_min), ConvertToCPP_MaxPlotPoint(bounds_max), flags);
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // double
- void ImPlot_PlotHeatmapDouble(BBString * label, double * values, int rows, int cols, double scale_min, double scale_max, BBString * label_fmt, MaxPlotPoint & bounds_min, MaxPlotPoint & bounds_max, ImPlotHeatmapFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotHeatmap(v0, values, rows, cols, scale_min, scale_max, v1, ConvertToCPP_MaxPlotPoint(bounds_min), ConvertToCPP_MaxPlotPoint(bounds_max), flags);
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // byte
- void ImPlot_PlotHeatmapByte(BBString * label, ImU8 * values, int rows, int cols, double scale_min, double scale_max, BBString * label_fmt, MaxPlotPoint & bounds_min, MaxPlotPoint & bounds_max, ImPlotHeatmapFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotHeatmap(v0, values, rows, cols, scale_min, scale_max, v1, ConvertToCPP_MaxPlotPoint(bounds_min), ConvertToCPP_MaxPlotPoint(bounds_max), flags);
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // short
- void ImPlot_PlotHeatmapShort(BBString * label, ImU16 * values, int rows, int cols, double scale_min, double scale_max, BBString * label_fmt, MaxPlotPoint & bounds_min, MaxPlotPoint & bounds_max, ImPlotHeatmapFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotHeatmap(v0, values, rows, cols, scale_min, scale_max, v1, ConvertToCPP_MaxPlotPoint(bounds_min), ConvertToCPP_MaxPlotPoint(bounds_max), flags);
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // int
- void ImPlot_PlotHeatmapInt(BBString * label, ImS32 * values, int rows, int cols, double scale_min, double scale_max, BBString * label_fmt, MaxPlotPoint & bounds_min, MaxPlotPoint & bounds_max, ImPlotHeatmapFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotHeatmap(v0, values, rows, cols, scale_min, scale_max, v1, ConvertToCPP_MaxPlotPoint(bounds_min), ConvertToCPP_MaxPlotPoint(bounds_max), flags);
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // long
- void ImPlot_PlotHeatmapLong(BBString * label, ImS64 * values, int rows, int cols, double scale_min, double scale_max, BBString * label_fmt, MaxPlotPoint & bounds_min, MaxPlotPoint & bounds_max, ImPlotHeatmapFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotHeatmap(v0, values, rows, cols, scale_min, scale_max, v1, ConvertToCPP_MaxPlotPoint(bounds_min), ConvertToCPP_MaxPlotPoint(bounds_max), flags);
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // uint
- void ImPlot_PlotHeatmapUInt(BBString * label, ImU32 * values, int rows, int cols, double scale_min, double scale_max, BBString * label_fmt, MaxPlotPoint & bounds_min, MaxPlotPoint & bounds_max, ImPlotHeatmapFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotHeatmap(v0, values, rows, cols, scale_min, scale_max, v1, ConvertToCPP_MaxPlotPoint(bounds_min), ConvertToCPP_MaxPlotPoint(bounds_max), flags);
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- // ulong
- void ImPlot_PlotHeatmapULong(BBString * label, ImU64 * values, int rows, int cols, double scale_min, double scale_max, BBString * label_fmt, MaxPlotPoint & bounds_min, MaxPlotPoint & bounds_max, ImPlotHeatmapFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- const char * v1 = label_fmt == &bbEmptyString ? nullptr : (const char *)bbStringToUTF8String(label_fmt);
- ImPlot::PlotHeatmap(v0, values, rows, cols, scale_min, scale_max, v1, ConvertToCPP_MaxPlotPoint(bounds_min), ConvertToCPP_MaxPlotPoint(bounds_max), flags);
- bbMemFree((void*)v0);
- bbMemFree((void*)v1);
- }
- ///////////////////////////////////////////////////////////
- // float
- double ImPlot_PlotHistogramFloat(BBString * label, float * values, int count, int bins, double bar_scale, MaxPlotRange range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram(v0, values, count, bins, bar_scale, ConvertToCPP_MaxPlotRange(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // double
- double ImPlot_PlotHistogramDouble(BBString * label, double * values, int count, int bins, double bar_scale, MaxPlotRange range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram(v0, values, count, bins, bar_scale, ConvertToCPP_MaxPlotRange(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // byte
- double ImPlot_PlotHistogramByte(BBString * label, ImU8 * values, int count, int bins, double bar_scale, MaxPlotRange range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram(v0, values, count, bins, bar_scale, ConvertToCPP_MaxPlotRange(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // short
- double ImPlot_PlotHistogramShort(BBString * label, ImU16 * values, int count, int bins, double bar_scale, MaxPlotRange range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram(v0, values, count, bins, bar_scale, ConvertToCPP_MaxPlotRange(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // int
- double ImPlot_PlotHistogramInt(BBString * label, ImS32 * values, int count, int bins, double bar_scale, MaxPlotRange range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram(v0, values, count, bins, bar_scale, ConvertToCPP_MaxPlotRange(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // long
- double ImPlot_PlotHistogramLong(BBString * label, ImS64 * values, int count, int bins, double bar_scale, MaxPlotRange range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram(v0, values, count, bins, bar_scale, ConvertToCPP_MaxPlotRange(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // uint
- double ImPlot_PlotHistogramUInt(BBString * label, ImU32 * values, int count, int bins, double bar_scale, MaxPlotRange range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram(v0, values, count, bins, bar_scale, ConvertToCPP_MaxPlotRange(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // ulong
- double ImPlot_PlotHistogramULong(BBString * label, ImU64 * values, int count, int bins, double bar_scale, MaxPlotRange range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram(v0, values, count, bins, bar_scale, ConvertToCPP_MaxPlotRange(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- ///////////////////////////////////////////////////////////
- // float
- double ImPlot_PlotHistogram2DFloat(BBString * label, float * xs, float * ys, int count, int x_bins, int y_bins, MaxPlotRect range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram2D(v0, xs, ys, count, x_bins, y_bins, ConvertToCPP_MaxPlotRect(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // double
- double ImPlot_PlotHistogram2DDouble(BBString * label, double * xs, double * ys, int count, int x_bins, int y_bins, MaxPlotRect range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram2D(v0, xs, ys, count, x_bins, y_bins, ConvertToCPP_MaxPlotRect(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // byte
- double ImPlot_PlotHistogram2DByte(BBString * label, ImU8 * xs, ImU8 * ys, int count, int x_bins, int y_bins, MaxPlotRect range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram2D(v0, xs, ys, count, x_bins, y_bins, ConvertToCPP_MaxPlotRect(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // short
- double ImPlot_PlotHistogram2DShort(BBString * label, ImU16 * xs, ImU16 * ys, int count, int x_bins, int y_bins, MaxPlotRect range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram2D(v0, xs, ys, count, x_bins, y_bins, ConvertToCPP_MaxPlotRect(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // int
- double ImPlot_PlotHistogram2DInt(BBString * label, ImS32 * xs, ImS32 * ys, int count, int x_bins, int y_bins, MaxPlotRect range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram2D(v0, xs, ys, count, x_bins, y_bins, ConvertToCPP_MaxPlotRect(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // long
- double ImPlot_PlotHistogram2DLong(BBString * label, ImS64 * xs, ImS64 * ys, int count, int x_bins, int y_bins, MaxPlotRect range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram2D(v0, xs, ys, count, x_bins, y_bins, ConvertToCPP_MaxPlotRect(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // uint
- double ImPlot_PlotHistogram2DUInt(BBString * label, ImU32 * xs, ImU32 * ys, int count, int x_bins, int y_bins, MaxPlotRect range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram2D(v0, xs, ys, count, x_bins, y_bins, ConvertToCPP_MaxPlotRect(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- // ulong
- double ImPlot_PlotHistogram2DULong(BBString * label, ImU64 * xs, ImU64 * ys, int count, int x_bins, int y_bins, MaxPlotRect range, ImPlotHistogramFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- double result = ImPlot::PlotHistogram2D(v0, xs, ys, count, x_bins, y_bins, ConvertToCPP_MaxPlotRect(range), flags);
- bbMemFree((void*)v0);
- return result;
- }
- ///////////////////////////////////////////////////////////
- // float
- void ImPlot_PlotDigitalFloat(BBString * label, float * xs, float * ys, int count, ImPlotDigitalFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotDigital(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // double
- void ImPlot_PlotDigitalDouble(BBString * label, double * xs, double * ys, int count, ImPlotDigitalFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotDigital(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // byte
- void ImPlot_PlotDigitalByte(BBString * label, ImU8 * xs, ImU8 * ys, int count, ImPlotDigitalFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotDigital(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // short
- void ImPlot_PlotDigitalShort(BBString * label, ImU16 * xs, ImU16 * ys, int count, ImPlotDigitalFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotDigital(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // int
- void ImPlot_PlotDigitalInt(BBString * label, ImS32 * xs, ImS32 * ys, int count, ImPlotDigitalFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotDigital(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // long
- void ImPlot_PlotDigitalLong(BBString * label, ImS64 * xs, ImS64 * ys, int count, ImPlotDigitalFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotDigital(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // uint
- void ImPlot_PlotDigitalUInt(BBString * label, ImU32 * xs, ImU32 * ys, int count, ImPlotDigitalFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotDigital(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- // ulong
- void ImPlot_PlotDigitalULong(BBString * label, ImU64 * xs, ImU64 * ys, int count, ImPlotDigitalFlags flags, int offset, int stride) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotDigital(v0, xs, ys, count, flags, offset, stride);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- void ImPlot_PlotText(BBString * text, double x, double y, MaxVec2 pix_offset, ImPlotTextFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(text);
- ImPlot::PlotText(v0, x, y, ConvertToCPP_MaxVec2(pix_offset), flags);
- bbMemFree((void*)v0);
- }
- void ImPlot_PlotDummy(BBString * label, ImPlotDummyFlags flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- ImPlot::PlotDummy(v0, flags);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- int ImPlot_DragPoint(int id, double * x, double * y, MaxVec4 col, float size, ImPlotDragToolFlags flags, int * out_clicked, int * out_hovered, int * held) {
- bool oc;
- bool oh;
- bool h;
- int res = ImPlot::DragPoint(id, x, y, ConvertToCPP_MaxVec4(col), size, flags, &oc, &oh, &h);
- if (out_clicked) *out_clicked = oc;
- if (out_hovered) *out_hovered = oh;
- if (held) *held = h;
- return res;
- }
- int ImPlot_DragLineX(int id, double * x, MaxVec4 col, float thickness, ImPlotDragToolFlags flags, int * out_clicked, int * out_hovered, int * held) {
- bool oc;
- bool oh;
- bool h;
- int res = ImPlot::DragLineX(id, x, ConvertToCPP_MaxVec4(col), thickness, flags, &oc, &oh, &h);
- if (out_clicked) *out_clicked = oc;
- if (out_hovered) *out_hovered = oh;
- if (held) *held = h;
- return res;
- }
- int ImPlot_DragLineY(int id, double * y, MaxVec4 col, float thickness, ImPlotDragToolFlags flags, int * out_clicked, int * out_hovered, int * held) {
- bool oc;
- bool oh;
- bool h;
- int res = ImPlot::DragLineY(id, y, ConvertToCPP_MaxVec4(col), thickness, flags, &oc, &oh, &h);
- if (out_clicked) *out_clicked = oc;
- if (out_hovered) *out_hovered = oh;
- if (held) *held = h;
- return res;
- }
- int ImPlot_DragRect(int id, double * x1, double * y1, double * x2, double * y2, MaxVec4 col, ImPlotDragToolFlags flags, int * out_clicked, int * out_hovered, int * held) {
- bool oc;
- bool oh;
- bool h;
- int res = ImPlot::DragRect(id, x1, y1, x2, y2, ConvertToCPP_MaxVec4(col), flags, &oc, &oh, &h);
- if (out_clicked) *out_clicked = oc;
- if (out_hovered) *out_hovered = oh;
- if (held) *held = h;
- return res;
- }
- void ImPlot_Annotation(double x, double y, MaxVec4 col, MaxVec2 pix_offset, int clamp, int round) {
- ImPlot::Annotation(x, y, ConvertToCPP_MaxVec4(col), ConvertToCPP_MaxVec2(pix_offset), clamp, round);
- }
- void ImPlot_AnnotationFmt(double x, double y, MaxVec4 col, MaxVec2 pix_offset, int clamp, BBString * fmt) {
- const char * v0 = (const char *)bbStringToUTF8String(fmt);
- ImPlot::Annotation(x, y, ConvertToCPP_MaxVec4(col), ConvertToCPP_MaxVec2(pix_offset), clamp, v0);
- bbMemFree((void*)v0);
- }
- void ImPlot_TagX(double x, MaxVec4 col, int round) {
- ImPlot::TagX(x, ConvertToCPP_MaxVec4(col), round);
- }
- void ImPlot_TagXFmt(double x, MaxVec4 col, BBString * fmt) {
- const char * v0 = (const char *)bbStringToUTF8String(fmt);
- ImPlot::TagX(x, ConvertToCPP_MaxVec4(col), v0);
- bbMemFree((void*)v0);
- }
- void ImPlot_TagY(double y, MaxVec4 col, int round) {
- ImPlot::TagY(y, ConvertToCPP_MaxVec4(col), round);
- }
- void ImPlot_TagYFmt(double y, MaxVec4 col, BBString * fmt) {
- const char * v0 = (const char *)bbStringToUTF8String(fmt);
- ImPlot::TagY(y, ConvertToCPP_MaxVec4(col), v0);
- bbMemFree((void*)v0);
- }
- ///////////////////////////////////////////////////////////
- void ImPlot_SetAxis(ImAxis axis) {
- ImPlot::SetAxis(axis);
- }
- void ImPlot_SetAxes(ImAxis x_axis, ImAxis y_axis) {
- ImPlot::SetAxes(x_axis, y_axis);
- }
- MaxPlotPoint ImPlot_PixelsToPlot(MaxVec2 pix, ImAxis x_axis, ImAxis y_axis) {
- return ConvertFromCPP_MaxPlotPoint(ImPlot::PixelsToPlot(ConvertToCPP_MaxVec2(pix), x_axis, y_axis));
- }
- MaxPlotPoint ImPlot_PixelsToPlotXY(float x, float y, ImAxis x_axis, ImAxis y_axis) {
- return ConvertFromCPP_MaxPlotPoint(ImPlot::PixelsToPlot(x, y, x_axis, y_axis));
- }
- MaxVec2 ImPlot_PlotToPixels(MaxPlotPoint plt, ImAxis x_axis, ImAxis y_axis) {
- return ConvertFromCPP_MaxVec2(ImPlot::PlotToPixels(ConvertToCPP_MaxPlotPoint(plt), x_axis, y_axis));
- }
- MaxVec2 ImPlot_PlotToPixelsXY(double x, double y, ImAxis x_axis, ImAxis y_axis) {
- return ConvertFromCPP_MaxVec2(ImPlot::PlotToPixels(x, y, x_axis, y_axis));
- }
- MaxVec2 ImPlot_GetPlotPos() {
- return ConvertFromCPP_MaxVec2(ImPlot::GetPlotPos());
- }
- MaxVec2 ImPlot_GetPlotSize() {
- return ConvertFromCPP_MaxVec2(ImPlot::GetPlotSize());
- }
- MaxPlotPoint ImPlot_GetPlotMousePos(ImAxis x_axis, ImAxis y_axis) {
- return ConvertFromCPP_MaxPlotPoint(ImPlot::GetPlotMousePos(x_axis, y_axis));
- }
- MaxPlotRect ImPlot_GetPlotLimits(ImAxis x_axis, ImAxis y_axis) {
- return ConvertFromCPP_MaxPlotRect(ImPlot::GetPlotLimits(x_axis, y_axis));
- }
- int ImPlot_IsPlotHovered() {
- return ImPlot::IsPlotHovered();
- }
- int ImPlot_IsAxisHovered(ImAxis axis) {
- return ImPlot::IsAxisHovered(axis);
- }
- int ImPlot_IsSubplotsHovered() {
- return ImPlot::IsSubplotsHovered();
- }
- int ImPlot_IsPlotSelected() {
- return ImPlot::IsPlotSelected();
- }
- MaxPlotRect ImPlot_GetPlotSelection(ImAxis x_axis, ImAxis y_axis) {
- return ConvertFromCPP_MaxPlotRect(ImPlot::GetPlotSelection(x_axis, y_axis));
- }
- void ImPlot_CancelPlotSelection() {
- ImPlot::CancelPlotSelection();
- }
- void ImPlot_HideNextItem(int hidden, ImPlotCond cond) {
- ImPlot::HideNextItem(hidden, cond);
- }
- int ImPlot_BeginAlignedPlots(BBString * group_id, int vertical) {
- const char * v0 = (const char *)bbStringToUTF8String(group_id);
- int result = ImPlot::BeginAlignedPlots(v0, vertical);
- bbMemFree((void*)v0);
- return result;
- }
- void ImPlot_EndAlignedPlots() {
- ImPlot::EndAlignedPlots();
- }
- int ImPlot_BeginLegendPopup(BBString * label_id, int mouse_button) {
- const char * v0 = (const char *)bbStringToUTF8String(label_id);
- int result = ImPlot::BeginLegendPopup(v0, mouse_button);
- bbMemFree((void*)v0);
- return result;
- }
- void ImPlot_EndLegendPopup() {
- ImPlot::EndLegendPopup();
- }
- int ImPlot_IsLegendEntryHovered(BBString * label_id) {
- const char * v0 = (const char *)bbStringToUTF8String(label_id);
- int result = ImPlot::IsLegendEntryHovered(v0);
- bbMemFree((void*)v0);
- return result;
- }
- int ImPlot_BeginDragDropTargetPlot() {
- return ImPlot::BeginDragDropTargetPlot();
- }
- int ImPlot_BeginDragDropTargetAxis(ImAxis axis) {
- return ImPlot::BeginDragDropTargetAxis(axis);
- }
- int ImPlot_BeginDragDropTargetLegend() {
- return ImPlot::BeginDragDropTargetLegend();
- }
- void ImPlot_EndDragDropTarget() {
- ImPlot::EndDragDropTarget();
- }
- int ImPlot_BeginDragDropSourcePlot(int flags) {
- return ImPlot::BeginDragDropSourcePlot(flags);
- }
- int ImPlot_BeginDragDropSourceAxis(ImAxis axis, int flags) {
- return ImPlot::BeginDragDropSourceAxis(axis, flags);
- }
- int ImPlot_BeginDragDropSourceItem(BBString * label_id, int flags) {
- const char * v0 = (const char *)bbStringToUTF8String(label_id);
- int result = ImPlot::BeginDragDropSourceItem(v0, flags);
- bbMemFree((void*)v0);
- return result;
- }
- void ImPlot_EndDragDropSource() {
- ImPlot::EndDragDropSource();
- }
- ///////////////////////////////////////////////////////////
- ImPlotStyle * bmx_implot_style_create() {
- return new ImPlotStyle();
- }
- void bmx_implot_style_delete(ImPlotStyle * style) {
- delete style;
- }
- float bmx_implot_style_get_line_weight(ImPlotStyle * style) {
- return style->LineWeight;
- }
- void bmx_implot_style_set_line_weight(ImPlotStyle * style, float line_weight) {
- style->LineWeight = line_weight;
- }
- int bmx_implot_style_get_marker(ImPlotStyle * style) {
- return style->Marker;
- }
- void bmx_implot_style_set_marker(ImPlotStyle * style, int marker) {
- style->Marker = marker;
- }
- float bmx_implot_style_get_marker_size(ImPlotStyle * style) {
- return style->MarkerSize;
- }
- void bmx_implot_style_set_marker_size(ImPlotStyle * style, float marker_size) {
- style->MarkerSize = marker_size;
- }
- float bmx_implot_style_get_marker_weight(ImPlotStyle * style) {
- return style->MarkerWeight;
- }
- void bmx_implot_style_set_marker_weight(ImPlotStyle * style, float marker_weight) {
- style->MarkerWeight = marker_weight;
- }
- float bmx_implot_style_get_fill_alpha(ImPlotStyle * style) {
- return style->FillAlpha;
- }
- void bmx_implot_style_set_fill_alpha(ImPlotStyle * style, float fill_alpha) {
- style->FillAlpha = fill_alpha;
- }
- float bmx_implot_style_get_error_bar_size(ImPlotStyle * style) {
- return style->ErrorBarSize;
- }
- void bmx_implot_style_set_error_bar_size(ImPlotStyle * style, float error_bar_size) {
- style->ErrorBarSize = error_bar_size;
- }
- void bmx_implot_style_set_error_bar_weight(ImPlotStyle * style, float error_bar_weight) {
- style->ErrorBarWeight = error_bar_weight;
- }
- float bmx_implot_style_get_error_bar_weight(ImPlotStyle * style) {
- return style->ErrorBarWeight;
- }
- void bmx_implot_style_set_digital_bit_height(ImPlotStyle * style, float digital_bit_height) {
- style->DigitalBitHeight = digital_bit_height;
- }
- float bmx_implot_style_get_digital_bit_height(ImPlotStyle * style) {
- return style->DigitalBitHeight;
- }
- void bmx_implot_style_set_digital_bit_gap(ImPlotStyle * style, float digital_bit_gap) {
- style->DigitalBitGap = digital_bit_gap;
- }
- float bmx_implot_style_get_digital_bit_gap(ImPlotStyle * style) {
- return style->DigitalBitGap;
- }
- float bmx_implot_style_get_plot_border_size(ImPlotStyle * style) {
- return style->PlotBorderSize;
- }
- void bmx_implot_style_set_plot_border_size(ImPlotStyle * style, float plot_border_size) {
- style->PlotBorderSize = plot_border_size;
- }
- float bmx_implot_style_get_minor_alpha(ImPlotStyle * style) {
- return style->MinorAlpha;
- }
- void bmx_implot_style_set_minor_alpha(ImPlotStyle * style, float minor_alpha) {
- style->MinorAlpha = minor_alpha;
- }
- MaxVec2 bmx_implot_style_get_major_tick_len(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->MajorTickLen);
- }
- void bmx_implot_style_set_major_tick_len(ImPlotStyle * style, MaxVec2 major_tick_len) {
- style->MajorTickLen = ConvertToCPP_MaxVec2(major_tick_len);
- }
- MaxVec2 bmx_implot_style_get_minor_tick_len(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->MinorTickLen);
- }
- void bmx_implot_style_set_minor_tick_len(ImPlotStyle * style, MaxVec2 minor_tick_len) {
- style->MinorTickLen = ConvertToCPP_MaxVec2(minor_tick_len);
- }
- MaxVec2 bmx_implot_style_get_major_tick_size(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->MajorTickSize);
- }
- void bmx_implot_style_set_major_tick_size(ImPlotStyle * style, MaxVec2 major_tick_size) {
- style->MajorTickSize = ConvertToCPP_MaxVec2(major_tick_size);
- }
- MaxVec2 bmx_implot_style_get_minor_tick_size(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->MinorTickSize);
- }
- void bmx_implot_style_set_minor_tick_size(ImPlotStyle * style, MaxVec2 minor_tick_size) {
- style->MinorTickSize = ConvertToCPP_MaxVec2(minor_tick_size);
- }
- MaxVec2 bmx_implot_style_get_major_grid_size(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->MajorGridSize);
- }
- void bmx_implot_style_set_major_grid_size(ImPlotStyle * style, MaxVec2 major_grid_size) {
- style->MajorGridSize = ConvertToCPP_MaxVec2(major_grid_size);
- }
- MaxVec2 bmx_implot_style_get_minor_grid_size(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->MinorGridSize);
- }
- void bmx_implot_style_set_minor_grid_size(ImPlotStyle * style, MaxVec2 minor_grid_size) {
- style->MinorGridSize = ConvertToCPP_MaxVec2(minor_grid_size);
- }
- MaxVec2 bmx_implot_style_get_plot_padding(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->PlotPadding);
- }
- void bmx_implot_style_set_plot_padding(ImPlotStyle * style, MaxVec2 plot_padding) {
- style->PlotPadding = ConvertToCPP_MaxVec2(plot_padding);
- }
- MaxVec2 bmx_implot_style_get_label_padding(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->LabelPadding);
- }
- void bmx_implot_style_set_label_padding(ImPlotStyle * style, MaxVec2 label_padding) {
- style->LabelPadding = ConvertToCPP_MaxVec2(label_padding);
- }
- MaxVec2 bmx_implot_style_get_legend_padding(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->LegendPadding);
- }
- void bmx_implot_style_set_legend_padding(ImPlotStyle * style, MaxVec2 legend_padding) {
- style->LegendPadding = ConvertToCPP_MaxVec2(legend_padding);
- }
- MaxVec2 bmx_implot_style_get_legend_inner_padding(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->LegendInnerPadding);
- }
- void bmx_implot_style_set_legend_inner_padding(ImPlotStyle * style, MaxVec2 legend_inner_padding) {
- style->LegendInnerPadding = ConvertToCPP_MaxVec2(legend_inner_padding);
- }
- MaxVec2 bmx_implot_style_get_legend_spacing(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->LegendSpacing);
- }
- void bmx_implot_style_set_legend_spacing(ImPlotStyle * style, MaxVec2 legend_spacing) {
- style->LegendSpacing = ConvertToCPP_MaxVec2(legend_spacing);
- }
- MaxVec2 bmx_implot_style_get_mouse_pos_padding(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->MousePosPadding);
- }
- void bmx_implot_style_set_mouse_pos_padding(ImPlotStyle * style, MaxVec2 mouse_pos_padding) {
- style->MousePosPadding = ConvertToCPP_MaxVec2(mouse_pos_padding);
- }
- MaxVec2 bmx_implot_style_get_annotation_padding(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->AnnotationPadding);
- }
- void bmx_implot_style_set_annotation_padding(ImPlotStyle * style, MaxVec2 annotation_padding) {
- style->AnnotationPadding = ConvertToCPP_MaxVec2(annotation_padding);
- }
- MaxVec2 bmx_implot_style_get_fit_padding(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->FitPadding);
- }
- void bmx_implot_style_set_fit_padding(ImPlotStyle * style, MaxVec2 fit_padding) {
- style->FitPadding = ConvertToCPP_MaxVec2(fit_padding);
- }
- MaxVec2 bmx_implot_style_get_plot_default_size(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->PlotDefaultSize);
- }
- void bmx_implot_style_set_plot_default_size(ImPlotStyle * style, MaxVec2 plot_default_size) {
- style->PlotDefaultSize = ConvertToCPP_MaxVec2(plot_default_size);
- }
- MaxVec2 bmx_implot_style_get_plot_min_size(ImPlotStyle * style) {
- return ConvertFromCPP_MaxVec2(style->PlotMinSize);
- }
- void bmx_implot_style_set_plot_min_size(ImPlotStyle * style, MaxVec2 plot_min_size) {
- style->PlotMinSize = ConvertToCPP_MaxVec2(plot_min_size);
- }
- MaxVec4 bmx_implot_style_get_color(ImPlotStyle * style, int index) {
- return ConvertFromCPP_MaxVec4(style->Colors[index]);
- }
- void bmx_implot_style_set_color(ImPlotStyle * style, int index, MaxVec4 color) {
- style->Colors[index] = ConvertToCPP_MaxVec4(color);
- }
- int bmx_implot_style_get_colormap(ImPlotStyle * style) {
- return style->Colormap;
- }
- void bmx_implot_style_set_colormap(ImPlotStyle * style, int colormap) {
- style->Colormap = colormap;
- }
- int bmx_implot_style_get_use_local_time(ImPlotStyle * style) {
- return style->UseLocalTime;
- }
- void bmx_implot_style_set_use_local_time(ImPlotStyle * style, int use_local_time) {
- style->UseLocalTime = use_local_time;
- }
- int bmx_implot_style_get_use_iso_8601(ImPlotStyle * style) {
- return style->UseISO8601;
- }
- void bmx_implot_style_set_use_iso_8601(ImPlotStyle * style, int use_iso_8601) {
- style->UseISO8601 = use_iso_8601;
- }
- int bmx_implot_style_get_use_24_hour_clock(ImPlotStyle * style) {
- return style->Use24HourClock;
- }
- void bmx_implot_style_set_use_24_hour_clock(ImPlotStyle * style, int use_24_hour_clock) {
- style->Use24HourClock = use_24_hour_clock;
- }
- ///////////////////////////////////////////////////////////
- ImPlotStyle * ImPlot_GetStyle() {
- return &ImPlot::GetStyle();
- }
- void ImPlot_StyleColorsAuto(ImPlotStyle * dst) {
- ImPlot::StyleColorsAuto(dst);
- }
- void ImPlot_StyleColorsClassic(ImPlotStyle * dst) {
- ImPlot::StyleColorsClassic(dst);
- }
- void ImPlot_StyleColorsDark(ImPlotStyle * dst) {
- ImPlot::StyleColorsDark(dst);
- }
- void ImPlot_StyleColorsLight(ImPlotStyle * dst) {
- ImPlot::StyleColorsLight(dst);
- }
- // IMPLOT_API void PushStyleColor(ImPlotCol idx, ImU32 col);
- void ImPlot_PushStyleColor(ImPlotCol idx, unsigned int col) {
- ImPlot::PushStyleColor(idx, col);
- }
- void ImPlot_PushStyleColorVec4(ImPlotCol idx, MaxVec4 col) {
- ImPlot::PushStyleColor(idx, ConvertToCPP_MaxVec4(col));
- }
- void ImPlot_PopStyleColor(int count) {
- ImPlot::PopStyleColor(count);
- }
- void ImPlot_PushStyleVar(ImPlotStyleVar idx, float val) {
- ImPlot::PushStyleVar(idx, val);
- }
- void ImPlot_PushStyleVarInt(ImPlotStyleVar idx, int val) {
- ImPlot::PushStyleVar(idx, val);
- }
- void ImPlot_PushStyleVarVec2(ImPlotStyleVar idx, MaxVec2 val) {
- ImPlot::PushStyleVar(idx, ConvertToCPP_MaxVec2(val));
- }
- void ImPlot_PopStyleVar(int count) {
- ImPlot::PopStyleVar(count);
- }
- void ImPlot_SetNextLineStyle(MaxVec4 col, float weight) {
- ImPlot::SetNextLineStyle(ConvertToCPP_MaxVec4(col), weight);
- }
- void ImPlot_SetNextFillStyle(MaxVec4 col, float alpha_mod) {
- ImPlot::SetNextFillStyle(ConvertToCPP_MaxVec4(col), alpha_mod);
- }
- void ImPlot_SetNextMarkerStyle(int marker, float size, MaxVec4 fill, float weight, MaxVec4 outline) {
- ImPlot::SetNextMarkerStyle(marker, size, ConvertToCPP_MaxVec4(fill), weight, ConvertToCPP_MaxVec4(outline));
- }
- void ImPlot_SetNextErrorBarStyle(MaxVec4 col, float size, float weight) {
- ImPlot::SetNextErrorBarStyle(ConvertToCPP_MaxVec4(col), size, weight);
- }
- MaxVec4 ImPlot_GetLastItemColor() {
- return ConvertFromCPP_MaxVec4(ImPlot::GetLastItemColor());
- }
- BBString * ImPlot_GetStyleColorName(ImPlotCol idx) {
- const char * name = ImPlot::GetStyleColorName(idx);
- BBString * result = bbStringFromUTF8String((unsigned char*)name);
- return result;
- }
- BBString * ImPlot_GetMarkerName(ImPlotMarker idx) {
- const char * name = ImPlot::GetMarkerName(idx);
- BBString * result = bbStringFromUTF8String((unsigned char*)name);
- return result;
- }
- ///////////////////////////////////////////////////////////
- int ImPlot_ShowStyleSelector(BBString * label) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- int result = ImPlot::ShowStyleSelector(v0);
- bbMemFree((void*)v0);
- return result;
- }
- int ImPlot_ShowColormapSelector(BBString * label) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- int result = ImPlot::ShowColormapSelector(v0);
- bbMemFree((void*)v0);
- return result;
- }
- int ImPlot_ShowInputMapSelector(BBString * label) {
- const char * v0 = (const char *)bbStringToUTF8String(label);
- int result = ImPlot::ShowInputMapSelector(v0);
- bbMemFree((void*)v0);
- return result;
- }
- void ImPlot_ShowStyleEditor(ImPlotStyle * ref) {
- ImPlot::ShowStyleEditor(ref);
- }
- void ImPlot_ShowUserGuide() {
- ImPlot::ShowUserGuide();
- }
- void ImPlot_ShowMetricsWindow(int * p_popen) {
- bool op = *p_popen;
- ImPlot::ShowMetricsWindow(&op);
- *p_popen = op;
- }
- // end extern "C"
- }
|