mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 20:08:31 +01:00
Compare commits
72 Commits
v1.62.0-be
...
v1.65.1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
52a693a96c | ||
![]() |
a0cb8aff23 | ||
![]() |
d704b33196 | ||
![]() |
9738a5816e | ||
![]() |
327e3236ae | ||
![]() |
259dc4afc8 | ||
![]() |
54118273ff | ||
![]() |
e8ac6079b5 | ||
![]() |
a2c1665e31 | ||
![]() |
bba07596a6 | ||
![]() |
e99f8dc918 | ||
![]() |
6ceba86ff6 | ||
![]() |
2023d29fc9 | ||
![]() |
552a5f5cf2 | ||
![]() |
f1b55d57e5 | ||
![]() |
d7e8b142d0 | ||
![]() |
9ae5a207f6 | ||
![]() |
9846ee640f | ||
![]() |
1bf9256998 | ||
![]() |
c8ff56e0b0 | ||
![]() |
1c88ef9c37 | ||
![]() |
cf82b3a356 | ||
![]() |
56d6cbfd38 | ||
![]() |
d863cbe3b4 | ||
![]() |
4a0e927c23 | ||
![]() |
3d232c5369 | ||
![]() |
e721909a97 | ||
![]() |
15c711e4f4 | ||
![]() |
96f24d52a5 | ||
![]() |
f0dd5bc5f8 | ||
![]() |
c06facb80a | ||
![]() |
9e6f792b74 | ||
![]() |
f323beede6 | ||
![]() |
8508f7b0ff | ||
![]() |
23b51b499a | ||
![]() |
60b7ab90ff | ||
![]() |
69ac20dd7c | ||
![]() |
44d1d8c190 | ||
![]() |
006fc575fa | ||
![]() |
c0a30cff81 | ||
![]() |
cd98bfd9b4 | ||
![]() |
5f9a7b58bf | ||
![]() |
1bb1d061be | ||
![]() |
6bce915abb | ||
![]() |
a0eab2686f | ||
![]() |
d45f3594ce | ||
![]() |
7afdf07cbb | ||
![]() |
d47cbcb44a | ||
![]() |
fc01fa6486 | ||
![]() |
b5150cc1ac | ||
![]() |
07d6c6897a | ||
![]() |
444b30c2cb | ||
![]() |
a190ec10f4 | ||
![]() |
f4a4369392 | ||
![]() |
395ab5108e | ||
![]() |
af67beb082 | ||
![]() |
4b1ae5a6c5 | ||
![]() |
1a5752271c | ||
![]() |
960c4daa70 | ||
![]() |
031bfe5dcc | ||
![]() |
963e5fcf82 | ||
![]() |
edf209e09e | ||
![]() |
ac4a2f13c0 | ||
![]() |
1c61237dbf | ||
![]() |
726816cb6a | ||
![]() |
ed4e178a85 | ||
![]() |
70eb52f582 | ||
![]() |
9694c710b7 | ||
![]() |
ce4ac9dfcf | ||
![]() |
7f688bf409 | ||
![]() |
423fc1c532 | ||
![]() |
1a5e261a8e |
@@ -8,5 +8,4 @@ compiler:
|
||||
- clang
|
||||
|
||||
script:
|
||||
- make -C cimgui
|
||||
- $CC cimgui.h # Make sure we can include in a plain C compiler
|
||||
make
|
||||
|
29
CMakeLists.txt
Normal file
29
CMakeLists.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
Project(cimgui)
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
#general settings
|
||||
include_directories(imgui)
|
||||
add_definitions("-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS=1")
|
||||
|
||||
include_directories(.)
|
||||
set(IMGUI_SOURCES ./cimgui.cpp ./imgui/imgui.cpp ./imgui/imgui_draw.cpp ./imgui/imgui_demo.cpp ./imgui/imgui_widgets.cpp)
|
||||
|
||||
set(IMGUI_LIBRARIES )
|
||||
|
||||
if (WIN32)
|
||||
add_definitions("-DIMGUI_IMPL_API=extern \"C\" __declspec\(dllexport\)")
|
||||
else(WIN32)
|
||||
add_definitions("-DIMGUI_IMPL_API=extern \"C\" ")
|
||||
endif(WIN32)
|
||||
|
||||
|
||||
#add library and link
|
||||
add_library(cimgui SHARED ${IMGUI_SOURCES})
|
||||
target_link_libraries(cimgui ${IMGUI_LIBRARIES})
|
||||
|
||||
#install
|
||||
install(TARGETS cimgui
|
||||
RUNTIME DESTINATION .
|
||||
LIBRARY DESTINATION .
|
||||
#ARCHIVE DESTINATION lib
|
||||
)
|
19
Makefile
19
Makefile
@@ -1,11 +1,14 @@
|
||||
#
|
||||
# Cross Platform Makefile
|
||||
# Compatible with Ubuntu 14.04.1 and Mac OS X
|
||||
# Compatible with Ubuntu 14.04.1 and macOS
|
||||
|
||||
OBJS = cimgui.o
|
||||
OBJS += ../imgui/imgui.o
|
||||
OBJS += ../imgui/imgui_draw.o
|
||||
OBJS += ../imgui/imgui_demo.o
|
||||
OBJS += ./imgui/imgui.o
|
||||
OBJS += ./imgui/imgui_draw.o
|
||||
OBJS += ./imgui/imgui_demo.o
|
||||
OBJS += ./imgui/imgui_widgets.o
|
||||
|
||||
CXXFLAGS=-O2
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
|
||||
@@ -13,17 +16,17 @@ ifeq ($(UNAME_S), Linux) #LINUX
|
||||
ECHO_MESSAGE = "Linux"
|
||||
|
||||
OUTPUTNAME = cimgui.so
|
||||
CXXFLAGS = -I../../
|
||||
CXXFLAGS += -I./imgui/
|
||||
CXXFLAGS += -Wall
|
||||
CXXFLAGS += -shared -fPIC
|
||||
CFLAGS = $(CXXFLAGS)
|
||||
endif
|
||||
|
||||
ifeq ($(UNAME_S), Darwin) #APPLE
|
||||
ECHO_MESSAGE = "Mac OS X"
|
||||
ECHO_MESSAGE = "macOS"
|
||||
|
||||
OUTPUTNAME = cimgui.dylib
|
||||
CXXFLAGS = -I/usr/local/include
|
||||
CXXFLAGS += -I/usr/local/include
|
||||
CXXFLAGS += -Wall
|
||||
LINKFLAGS = -dynamiclib
|
||||
CFLAGS = $(CXXFLAGS)
|
||||
@@ -33,7 +36,7 @@ ifeq ($(OS), Windows_NT)
|
||||
ECHO_MESSAGE = "Windows"
|
||||
|
||||
OUTPUTNAME = cimgui.dll
|
||||
CXXFLAGS = -I../../
|
||||
CXXFLAGS += -I./imgui/
|
||||
CXXFLAGS += -Wall
|
||||
CXXFLAGS += -shared
|
||||
LINKFLAGS = -limm32
|
||||
|
39
README.md
39
README.md
@@ -1,35 +1,50 @@
|
||||
# cimgui [](https://travis-ci.org/Extrawurst/cimgui)
|
||||
# cimgui [](https://travis-ci.org/sonoro1234/cimgui)
|
||||
|
||||

|
||||
|
||||
This is a thin c-api wrapper programmatically generated for the excellent C++ intermediate gui [imgui](https://github.com/ocornut/imgui).
|
||||
All functions are programmatically wrapped except contructors, destructors and ImVector.(Unless someone find a use case for them)
|
||||
Generated files are: cimgui.cpp, cimgui.h for C compilation. Also for helping in bindings creation, definitions.lua with function definitions information and structs_and_enums.lua.
|
||||
This library is intended as a intermediate layer to be able to use imgui from other languages that can interface with C (like D - see [D-binding](https://github.com/Extrawurst/DerelictImgui))
|
||||
This is a thin c-api wrapper programmatically generated for the excellent C++ immediate mode gui [Dear ImGui](https://github.com/ocornut/imgui).
|
||||
All functions are programmatically wrapped except constructors, destructors and `ImVector`. (Unless someone find a use case for them)
|
||||
Generated files are: `cimgui.cpp`, `cimgui.h` for C compilation. Also for helping in bindings creation, `definitions.lua` with function definition information and `structs_and_enums.lua`.
|
||||
This library is intended as a intermediate layer to be able to use Dear ImGui from other languages that can interface with C (like D - see [D-binding](https://github.com/Extrawurst/DerelictImgui))
|
||||
|
||||
History:
|
||||
|
||||
Initially cimgui was developed by Stephan Dilly as hand-written code but lately turned into an auto-generated version by sonoro1234 in order to keep up with imgui more easily (letting the user select the desired branch and commit)
|
||||
|
||||
Notes:
|
||||
* currently this wrapper is based on version [1.62 of imgui](https://github.com/ocornut/imgui/tree/v1.62)
|
||||
* overloaded function names try to be the most compatible with traditional cimgui names. So all naming is algorithmic except for those names that were in conflict with widely used cimgui names and were thus coded in a table (https://github.com/sonoro1234/cimgui/blob/cimgui_auto_implementations/generator/generator.lua#L40). Until the comunity finish with defining this table tag will be 1.62beta. Current overloaded function names can be found in (https://github.com/sonoro1234/cimgui/tree/cimgui_auto_implementations/generator/generated/overloads.txt)
|
||||
* currently this wrapper is based on version [1.65 of Dear ImGui]
|
||||
* overloaded function names try to be the most compatible with traditional cimgui names. So all naming is algorithmic except for those names that were in conflict with widely used cimgui names and were thus coded in a table (https://github.com/cimgui/cimgui/blob/master/generator/generator.lua#L40). Current overloaded function names can be found in (https://github.com/cimgui/cimgui/blob/master/generator/output/overloads.txt)
|
||||
|
||||
# compilation
|
||||
|
||||
* clone
|
||||
* git clone --recursive https://github.com/cimgui/cimgui.git
|
||||
* git submodule update
|
||||
* make using makefile on linux/macOS/mingw (Or use CMake to generate project)
|
||||
|
||||
# auto binding generation
|
||||
|
||||
* update imgui folder to the version you desire.
|
||||
* run imgui/generator/generator.bat (or make a .sh version and please PR) with gcc and Lua on your PATH.
|
||||
* you will need LuaJIT (https://github.com/LuaJIT/LuaJIT.git better 2.1 branch) or precompiled for linux/macOS/windows in https://luapower.com/luajit/download
|
||||
* need also gcc compiler for doing preprocessing (In windows MinGW-W64-builds for example)
|
||||
* update `imgui` folder to the version you desire.
|
||||
* run `generator/generator.bat` (or make a .sh version and please PR) with gcc and LuaJIT on your PATH.
|
||||
* as a result some files are generated: `cimgui.cpp` and `cimgui.h` for compiling and some lua/json files with information about the binding: `definitions.json` with function info, `structs_and_enums.json` with struct and enum info, `impl_definitions.json` with functions from the implementations info.
|
||||
* build as shown in https://github.com/sonoro1234/LuaJIT-ImGui/tree/master_auto_implementations/build
|
||||
* generate binding as done in https://github.com/sonoro1234/LuaJIT-ImGui/blob/master_auto_implementations/lua/build.bat
|
||||
|
||||
# usage
|
||||
|
||||
* clone
|
||||
* make using makefile on linux/osx
|
||||
* use whatever method is in ImGui c++ namespace in the original [imgui.h](https://github.com/ocornut/imgui/blob/master/imgui.h) by prepending `ig`
|
||||
* methods have the same parameter list and return values (where possible)
|
||||
* functions that belong to a struct have an extra first argument with a pointer to the struct.
|
||||
* where a function returns UDT (user defined type) by value some compilers complain so another function with the name `function_name_nonUDT` is generated accepting a pointer to the UDT type as the first argument. (or second argument if it is a struct function)
|
||||
* also is generated `function_name_nonUDT2` which instead of returning the UDT type returns a simple version (without functions) called `UDTType_Simple` (`ImVec2_Simple` for `ImVec2`)
|
||||
|
||||
# example bindings based on cimgui
|
||||
|
||||
* [DerelictImgui](https://github.com/Extrawurst/DerelictImgui)
|
||||
* [ImGui.NET](https://github.com/mellinoe/ImGui.NET)
|
||||
* [ImGuiCS](https://github.com/0x0ade/ImGuiCS)
|
||||
* [ImGuiCS](https://github.com/conatuscreative/ImGuiCS)
|
||||
* [imgui-rs](https://github.com/Gekkio/imgui-rs)
|
||||
* [imgui-pas](https://github.com/dpethes/imgui-pas)
|
||||
* [odin-dear_imgui](https://github.com/ThisDrunkDane/odin-dear_imgui)
|
||||
|
@@ -1,8 +1,9 @@
|
||||
|
||||
#include "../imgui/imgui.h"
|
||||
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
|
||||
//based on imgui.h file version "1.65" from Dear ImGui https://github.com/ocornut/imgui
|
||||
#include "./imgui/imgui.h"
|
||||
#include "cimgui.h"
|
||||
|
||||
#include "../imgui/imgui_internal.h"
|
||||
#include "./imgui/imgui_internal.h"
|
||||
|
||||
CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas)
|
||||
{
|
||||
@@ -594,22 +595,6 @@ CIMGUI_API bool igRadioButtonIntPtr(const char* label,int* v,int v_button)
|
||||
{
|
||||
return ImGui::RadioButton(label,v,v_button);
|
||||
}
|
||||
CIMGUI_API void igPlotLines(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotLinesFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotLines(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay)
|
||||
{
|
||||
return ImGui::ProgressBar(fraction,size_arg,overlay);
|
||||
@@ -686,58 +671,6 @@ CIMGUI_API bool igDragScalarN(const char* label,ImGuiDataType data_type,void* v,
|
||||
{
|
||||
return ImGui::DragScalarN(label,data_type,v,components,v_speed,v_min,v_max,format,power);
|
||||
}
|
||||
CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiTextEditCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputText(label,buf,buf_size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiTextEditCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputTextMultiline(label,buf,buf_size,size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat2(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat3(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat4(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt(label,v,step,step_fast,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt2(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt3(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt4(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputDouble(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalar(const char* label,ImGuiDataType data_type,void* v,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalar(label,data_type,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalarN(label,data_type,v,components,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igSliderFloat(const char* label,float* v,float v_min,float v_max,const char* format,float power)
|
||||
{
|
||||
return ImGui::SliderFloat(label,v,v_min,v_max,format,power);
|
||||
@@ -794,6 +727,58 @@ CIMGUI_API bool igVSliderScalar(const char* label,const ImVec2 size,ImGuiDataTyp
|
||||
{
|
||||
return ImGui::VSliderScalar(label,size,data_type,v,v_min,v_max,format,power);
|
||||
}
|
||||
CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputText(label,buf,buf_size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputTextMultiline(label,buf,buf_size,size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat2(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat3(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat4(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt(label,v,step,step_fast,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt2(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt3(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt4(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputDouble(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalar(const char* label,ImGuiDataType data_type,void* v,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalar(label,data_type,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalarN(label,data_type,v,components,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags flags)
|
||||
{
|
||||
return ImGui::ColorEdit3(label,col,flags);
|
||||
@@ -826,15 +811,17 @@ CIMGUI_API bool igTreeNodeStrStr(const char* str_id,const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeV(str_id,fmt,args);
|
||||
bool ret = ImGui::TreeNodeV(str_id,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodePtr(const void* ptr_id,const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeV(ptr_id,fmt,args);
|
||||
bool ret = ImGui::TreeNodeV(ptr_id,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodeVStr(const char* str_id,const char* fmt,va_list args)
|
||||
{
|
||||
@@ -852,15 +839,17 @@ CIMGUI_API bool igTreeNodeExStrStr(const char* str_id,ImGuiTreeNodeFlags flags,c
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeExV(str_id,flags,fmt,args);
|
||||
bool ret = ImGui::TreeNodeExV(str_id,flags,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodeExPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeExV(ptr_id,flags,fmt,args);
|
||||
bool ret = ImGui::TreeNodeExV(ptr_id,flags,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodeExVStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)
|
||||
{
|
||||
@@ -930,6 +919,22 @@ CIMGUI_API void igListBoxFooter()
|
||||
{
|
||||
return ImGui::ListBoxFooter();
|
||||
}
|
||||
CIMGUI_API void igPlotLines(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotLinesFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotLines(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igValueBool(const char* prefix,bool b)
|
||||
{
|
||||
return ImGui::Value(prefix,b);
|
||||
@@ -946,25 +951,6 @@ CIMGUI_API void igValueFloat(const char* prefix,float v,const char* float_format
|
||||
{
|
||||
return ImGui::Value(prefix,v,float_format);
|
||||
}
|
||||
CIMGUI_API void igBeginTooltip()
|
||||
{
|
||||
return ImGui::BeginTooltip();
|
||||
}
|
||||
CIMGUI_API void igEndTooltip()
|
||||
{
|
||||
return ImGui::EndTooltip();
|
||||
}
|
||||
CIMGUI_API void igSetTooltip(const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::SetTooltipV(fmt,args);
|
||||
va_end(args);
|
||||
}
|
||||
CIMGUI_API void igSetTooltipV(const char* fmt,va_list args)
|
||||
{
|
||||
return ImGui::SetTooltipV(fmt,args);
|
||||
}
|
||||
CIMGUI_API bool igBeginMainMenuBar()
|
||||
{
|
||||
return ImGui::BeginMainMenuBar();
|
||||
@@ -997,6 +983,25 @@ CIMGUI_API bool igMenuItemBoolPtr(const char* label,const char* shortcut,bool* p
|
||||
{
|
||||
return ImGui::MenuItem(label,shortcut,p_selected,enabled);
|
||||
}
|
||||
CIMGUI_API void igBeginTooltip()
|
||||
{
|
||||
return ImGui::BeginTooltip();
|
||||
}
|
||||
CIMGUI_API void igEndTooltip()
|
||||
{
|
||||
return ImGui::EndTooltip();
|
||||
}
|
||||
CIMGUI_API void igSetTooltip(const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::SetTooltipV(fmt,args);
|
||||
va_end(args);
|
||||
}
|
||||
CIMGUI_API void igSetTooltipV(const char* fmt,va_list args)
|
||||
{
|
||||
return ImGui::SetTooltipV(fmt,args);
|
||||
}
|
||||
CIMGUI_API void igOpenPopup(const char* str_id)
|
||||
{
|
||||
return ImGui::OpenPopup(str_id);
|
||||
@@ -1149,13 +1154,17 @@ CIMGUI_API bool igIsItemVisible()
|
||||
{
|
||||
return ImGui::IsItemVisible();
|
||||
}
|
||||
CIMGUI_API bool igIsItemEdited()
|
||||
{
|
||||
return ImGui::IsItemEdited();
|
||||
}
|
||||
CIMGUI_API bool igIsItemDeactivated()
|
||||
{
|
||||
return ImGui::IsItemDeactivated();
|
||||
}
|
||||
CIMGUI_API bool igIsItemDeactivatedAfterChange()
|
||||
CIMGUI_API bool igIsItemDeactivatedAfterEdit()
|
||||
{
|
||||
return ImGui::IsItemDeactivatedAfterChange();
|
||||
return ImGui::IsItemDeactivatedAfterEdit();
|
||||
}
|
||||
CIMGUI_API bool igIsAnyItemHovered()
|
||||
{
|
||||
@@ -1193,7 +1202,7 @@ CIMGUI_API bool igIsRectVisibleVec2(const ImVec2 rect_min,const ImVec2 rect_max)
|
||||
{
|
||||
return ImGui::IsRectVisible(rect_min,rect_max);
|
||||
}
|
||||
CIMGUI_API float igGetTime()
|
||||
CIMGUI_API double igGetTime()
|
||||
{
|
||||
return ImGui::GetTime();
|
||||
}
|
||||
@@ -1245,14 +1254,6 @@ CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in)
|
||||
{
|
||||
return ImGui::ColorConvertFloat4ToU32(in);
|
||||
}
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float out_h,float out_s,float out_v)
|
||||
{
|
||||
return ImGui::ColorConvertRGBtoHSV(r,g,b,out_h,out_s,out_v);
|
||||
}
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float out_r,float out_g,float out_b)
|
||||
{
|
||||
return ImGui::ColorConvertHSVtoRGB(h,s,v,out_r,out_g,out_b);
|
||||
}
|
||||
CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key)
|
||||
{
|
||||
return ImGui::GetKeyIndex(imgui_key);
|
||||
@@ -1385,38 +1386,10 @@ CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self,const char* utf8_ch
|
||||
{
|
||||
return self->AddInputCharactersUTF8(utf8_chars);
|
||||
}
|
||||
CIMGUI_API inline void ImGuiIO_ClearInputCharacters(ImGuiIO* self)
|
||||
CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self)
|
||||
{
|
||||
return self->ClearInputCharacters();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_begin(TextRange* self)
|
||||
{
|
||||
return self->begin();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_end(TextRange* self)
|
||||
{
|
||||
return self->end();
|
||||
}
|
||||
CIMGUI_API bool TextRange_empty(TextRange* self)
|
||||
{
|
||||
return self->empty();
|
||||
}
|
||||
CIMGUI_API char TextRange_front(TextRange* self)
|
||||
{
|
||||
return self->front();
|
||||
}
|
||||
CIMGUI_API bool TextRange_is_blank(TextRange* self,char c)
|
||||
{
|
||||
return self->is_blank(c);
|
||||
}
|
||||
CIMGUI_API void TextRange_trim_blanks(TextRange* self)
|
||||
{
|
||||
return self->trim_blanks();
|
||||
}
|
||||
CIMGUI_API void TextRange_split(TextRange* self,char separator,ImVector_TextRange out)
|
||||
{
|
||||
return self->split(separator,out);
|
||||
}
|
||||
CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self,const char* label,float width)
|
||||
{
|
||||
return self->Draw(label,width);
|
||||
@@ -1437,6 +1410,22 @@ CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self)
|
||||
{
|
||||
return self->IsActive();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_begin(TextRange* self)
|
||||
{
|
||||
return self->begin();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_end(TextRange* self)
|
||||
{
|
||||
return self->end();
|
||||
}
|
||||
CIMGUI_API bool TextRange_empty(TextRange* self)
|
||||
{
|
||||
return self->empty();
|
||||
}
|
||||
CIMGUI_API void TextRange_split(TextRange* self,char separator,ImVector_TextRange* out)
|
||||
{
|
||||
return self->split(separator,out);
|
||||
}
|
||||
CIMGUI_API const char* ImGuiTextBuffer_begin(ImGuiTextBuffer* self)
|
||||
{
|
||||
return self->begin();
|
||||
@@ -1529,15 +1518,15 @@ CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self)
|
||||
{
|
||||
return self->BuildSortByKey();
|
||||
}
|
||||
CIMGUI_API void ImGuiTextEditCallbackData_DeleteChars(ImGuiTextEditCallbackData* self,int pos,int bytes_count)
|
||||
CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self,int pos,int bytes_count)
|
||||
{
|
||||
return self->DeleteChars(pos,bytes_count);
|
||||
}
|
||||
CIMGUI_API void ImGuiTextEditCallbackData_InsertChars(ImGuiTextEditCallbackData* self,int pos,const char* text,const char* text_end)
|
||||
CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end)
|
||||
{
|
||||
return self->InsertChars(pos,text,text_end);
|
||||
}
|
||||
CIMGUI_API bool ImGuiTextEditCallbackData_HasSelection(ImGuiTextEditCallbackData* self)
|
||||
CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self)
|
||||
{
|
||||
return self->HasSelection();
|
||||
}
|
||||
@@ -1557,7 +1546,7 @@ CIMGUI_API bool ImGuiPayload_IsDelivery(ImGuiPayload* self)
|
||||
{
|
||||
return self->IsDelivery();
|
||||
}
|
||||
CIMGUI_API inline void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a)
|
||||
CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a)
|
||||
{
|
||||
return self->SetHSV(h,s,v,a);
|
||||
}
|
||||
@@ -1597,11 +1586,11 @@ CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self)
|
||||
{
|
||||
return self->PopTextureID();
|
||||
}
|
||||
CIMGUI_API inline ImVec2 ImDrawList_GetClipRectMin(ImDrawList* self)
|
||||
CIMGUI_API ImVec2 ImDrawList_GetClipRectMin(ImDrawList* self)
|
||||
{
|
||||
return self->GetClipRectMin();
|
||||
}
|
||||
CIMGUI_API inline ImVec2 ImDrawList_GetClipRectMax(ImDrawList* self)
|
||||
CIMGUI_API ImVec2 ImDrawList_GetClipRectMax(ImDrawList* self)
|
||||
{
|
||||
return self->GetClipRectMax();
|
||||
}
|
||||
@@ -1677,23 +1666,23 @@ CIMGUI_API void ImDrawList_AddBezierCurve(ImDrawList* self,const ImVec2 pos0,con
|
||||
{
|
||||
return self->AddBezierCurve(pos0,cp0,cp1,pos1,col,thickness,num_segments);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathClear(ImDrawList* self)
|
||||
CIMGUI_API void ImDrawList_PathClear(ImDrawList* self)
|
||||
{
|
||||
return self->PathClear();
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos)
|
||||
CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos)
|
||||
{
|
||||
return self->PathLineTo(pos);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos)
|
||||
CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos)
|
||||
{
|
||||
return self->PathLineToMergeDuplicate(pos);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col)
|
||||
CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col)
|
||||
{
|
||||
return self->PathFillConvex(col);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness)
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness)
|
||||
{
|
||||
return self->PathStroke(col,closed,thickness);
|
||||
}
|
||||
@@ -1761,15 +1750,15 @@ CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self,const ImVec2 a,const ImVe
|
||||
{
|
||||
return self->PrimQuadUV(a,b,c,d,uv_a,uv_b,uv_c,uv_d,col);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
{
|
||||
return self->PrimWriteVtx(pos,uv,col);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx)
|
||||
CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx)
|
||||
{
|
||||
return self->PrimWriteIdx(idx);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
{
|
||||
return self->PrimVtx(pos,uv,col);
|
||||
}
|
||||
@@ -1989,6 +1978,227 @@ CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool ov
|
||||
{
|
||||
return self->AddRemapChar(dst,src,overwrite_dst);
|
||||
}
|
||||
CIMGUI_API void igGetWindowPos_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetWindowPos();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetWindowPos_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetWindowPos();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetWindowSize_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetWindowSize();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetWindowSize_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetWindowSize();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetContentRegionMax_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetContentRegionMax();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetContentRegionMax_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetContentRegionMax();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetContentRegionAvail_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetContentRegionAvail();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetContentRegionAvail_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetContentRegionAvail();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetWindowContentRegionMin_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetWindowContentRegionMin();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetWindowContentRegionMin_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetWindowContentRegionMin();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetWindowContentRegionMax_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetWindowContentRegionMax();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetWindowContentRegionMax_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetWindowContentRegionMax();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetFontTexUvWhitePixel_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetFontTexUvWhitePixel();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetFontTexUvWhitePixel_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetFontTexUvWhitePixel();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetCursorPos_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetCursorPos();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetCursorPos_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetCursorPos();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetCursorStartPos_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetCursorStartPos();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetCursorStartPos_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetCursorStartPos();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetCursorScreenPos_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetCursorScreenPos();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetCursorScreenPos_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetCursorScreenPos();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetItemRectMin_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetItemRectMin();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectMin_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetItemRectMin();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetItemRectMax_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetItemRectMax();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectMax_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetItemRectMax();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetItemRectSize_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetItemRectSize();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectSize_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetItemRectSize();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igCalcTextSize_nonUDT(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)
|
||||
{
|
||||
*pOut = ImGui::CalcTextSize(text,text_end,hide_text_after_double_hash,wrap_width);
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igCalcTextSize_nonUDT2(const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)
|
||||
{
|
||||
ImVec2 ret = ImGui::CalcTextSize(text,text_end,hide_text_after_double_hash,wrap_width);
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igColorConvertU32ToFloat4_nonUDT(ImVec4 *pOut,ImU32 in)
|
||||
{
|
||||
*pOut = ImGui::ColorConvertU32ToFloat4(in);
|
||||
}
|
||||
CIMGUI_API ImVec4_Simple igColorConvertU32ToFloat4_nonUDT2(ImU32 in)
|
||||
{
|
||||
ImVec4 ret = ImGui::ColorConvertU32ToFloat4(in);
|
||||
ImVec4_Simple ret2 = ImVec4ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetMousePos_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetMousePos();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetMousePos_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetMousePos();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetMousePosOnOpeningCurrentPopup_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetMousePosOnOpeningCurrentPopup();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetMousePosOnOpeningCurrentPopup_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetMousePosOnOpeningCurrentPopup();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetMouseDragDelta_nonUDT(ImVec2 *pOut,int button,float lock_threshold)
|
||||
{
|
||||
*pOut = ImGui::GetMouseDragDelta(button,lock_threshold);
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetMouseDragDelta_nonUDT2(int button,float lock_threshold)
|
||||
{
|
||||
ImVec2 ret = ImGui::GetMouseDragDelta(button,lock_threshold);
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void ImColor_HSV_nonUDT(ImColor* self,ImColor *pOut,float h,float s,float v,float a)
|
||||
{
|
||||
*pOut = self->HSV(h,s,v,a);
|
||||
}
|
||||
CIMGUI_API ImColor_Simple ImColor_HSV_nonUDT2(ImColor* self,float h,float s,float v,float a)
|
||||
{
|
||||
ImColor ret = self->HSV(h,s,v,a);
|
||||
ImColor_Simple ret2 = ImColorToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void ImDrawList_GetClipRectMin_nonUDT(ImDrawList* self,ImVec2 *pOut)
|
||||
{
|
||||
*pOut = self->GetClipRectMin();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple ImDrawList_GetClipRectMin_nonUDT2(ImDrawList* self)
|
||||
{
|
||||
ImVec2 ret = self->GetClipRectMin();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void ImDrawList_GetClipRectMax_nonUDT(ImDrawList* self,ImVec2 *pOut)
|
||||
{
|
||||
*pOut = self->GetClipRectMax();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple ImDrawList_GetClipRectMax_nonUDT2(ImDrawList* self)
|
||||
{
|
||||
ImVec2 ret = self->GetClipRectMax();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void ImFont_CalcTextSizeA_nonUDT(ImFont* self,ImVec2 *pOut,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining)
|
||||
{
|
||||
*pOut = self->CalcTextSizeA(size,max_width,wrap_width,text_begin,text_end,remaining);
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple ImFont_CalcTextSizeA_nonUDT2(ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining)
|
||||
{
|
||||
ImVec2 ret = self->CalcTextSizeA(size,max_width,wrap_width,text_begin,text_end,remaining);
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/////////////////////////////manual written functions
|
||||
@@ -2017,3 +2227,11 @@ CIMGUI_API float igGET_FLT_MAX()
|
||||
{
|
||||
return FLT_MAX;
|
||||
}
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float *out_h,float *out_s,float *out_v)
|
||||
{
|
||||
ImGui::ColorConvertRGBtoHSV(r,g,b,*out_h,*out_s,*out_v);
|
||||
}
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float *out_r,float *out_g,float *out_b)
|
||||
{
|
||||
ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b);
|
||||
}
|
@@ -1,4 +1,5 @@
|
||||
|
||||
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
|
||||
//based on imgui.h file version "1.65" from Dear ImGui https://github.com/ocornut/imgui
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
@@ -29,51 +30,35 @@
|
||||
#ifdef _MSC_VER
|
||||
typedef unsigned __int64 ImU64;
|
||||
#else
|
||||
typedef unsigned long long ImU64;
|
||||
//typedef unsigned long long ImU64;
|
||||
#endif
|
||||
|
||||
//struct GLFWwindow;
|
||||
//struct SDL_Window;
|
||||
//UDT stuff
|
||||
typedef struct ImVec2_Simple { float x; float y; } ImVec2_Simple;
|
||||
typedef struct ImVec4_Simple { float x; float y; float z; float w;} ImVec4_Simple;
|
||||
typedef struct ImColor_Simple { ImVec4_Simple Value;} ImColor_Simple;
|
||||
|
||||
|
||||
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
|
||||
typedef struct ImFont ImFont;
|
||||
typedef struct ImFontAtlas ImFontAtlas;
|
||||
typedef struct CustomRect CustomRect;
|
||||
typedef struct GlyphRangesBuilder GlyphRangesBuilder;
|
||||
typedef struct ImFontGlyph ImFontGlyph;
|
||||
typedef struct ImFontConfig ImFontConfig;
|
||||
typedef struct ImDrawData ImDrawData;
|
||||
typedef struct ImDrawList ImDrawList;
|
||||
typedef struct ImDrawChannel ImDrawChannel;
|
||||
typedef struct ImDrawVert ImDrawVert;
|
||||
typedef struct ImDrawCmd ImDrawCmd;
|
||||
typedef struct ImGuiListClipper ImGuiListClipper;
|
||||
typedef struct ImColor ImColor;
|
||||
typedef struct ImGuiPayload ImGuiPayload;
|
||||
typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData;
|
||||
typedef struct ImGuiTextEditCallbackData ImGuiTextEditCallbackData;
|
||||
typedef struct ImGuiStorage ImGuiStorage;
|
||||
typedef struct Pair Pair;
|
||||
typedef struct ImGuiTextBuffer ImGuiTextBuffer;
|
||||
typedef struct ImGuiTextFilter ImGuiTextFilter;
|
||||
typedef struct TextRange TextRange;
|
||||
typedef struct ImGuiOnceUponAFrame ImGuiOnceUponAFrame;
|
||||
typedef struct ImGuiIO ImGuiIO;
|
||||
typedef struct ImGuiStyle ImGuiStyle;
|
||||
typedef struct ImVec4 ImVec4;
|
||||
typedef struct ImVec2 ImVec2;
|
||||
typedef struct ImGuiContext ImGuiContext;
|
||||
typedef struct ImGuiPayload ImGuiPayload;
|
||||
typedef struct ImGuiListClipper ImGuiListClipper;
|
||||
typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData;
|
||||
typedef struct ImGuiTextEditCallbackData ImGuiTextEditCallbackData;
|
||||
typedef struct ImGuiTextBuffer ImGuiTextBuffer;
|
||||
typedef struct ImGuiTextFilter ImGuiTextFilter;
|
||||
typedef struct ImGuiStyle ImGuiStyle;
|
||||
typedef struct ImGuiStorage ImGuiStorage;
|
||||
typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData;
|
||||
typedef struct ImGuiPayload ImGuiPayload;
|
||||
typedef struct ImGuiOnceUponAFrame ImGuiOnceUponAFrame;
|
||||
typedef struct ImGuiListClipper ImGuiListClipper;
|
||||
typedef struct ImGuiInputTextCallbackData ImGuiInputTextCallbackData;
|
||||
typedef struct ImGuiIO ImGuiIO;
|
||||
typedef struct ImGuiContext ImGuiContext;
|
||||
typedef struct ImColor ImColor;
|
||||
typedef struct ImFontConfig ImFontConfig;
|
||||
typedef struct ImFontAtlas ImFontAtlas;
|
||||
@@ -94,24 +79,24 @@ struct ImFont;
|
||||
struct ImFontAtlas;
|
||||
struct ImFontConfig;
|
||||
struct ImColor;
|
||||
typedef void* ImTextureID;
|
||||
struct ImGuiContext;
|
||||
struct ImGuiIO;
|
||||
struct ImGuiInputTextCallbackData;
|
||||
struct ImGuiListClipper;
|
||||
struct ImGuiOnceUponAFrame;
|
||||
struct ImGuiPayload;
|
||||
struct ImGuiSizeCallbackData;
|
||||
struct ImGuiStorage;
|
||||
struct ImGuiStyle;
|
||||
struct ImGuiTextFilter;
|
||||
struct ImGuiTextBuffer;
|
||||
struct ImGuiTextEditCallbackData;
|
||||
struct ImGuiSizeCallbackData;
|
||||
struct ImGuiListClipper;
|
||||
struct ImGuiPayload;
|
||||
struct ImGuiContext;
|
||||
typedef void* ImTextureID;
|
||||
typedef unsigned int ImGuiID;
|
||||
typedef unsigned short ImWchar;
|
||||
typedef int ImGuiCol;
|
||||
typedef int ImGuiCond;
|
||||
typedef int ImGuiDataType;
|
||||
typedef int ImGuiDir;
|
||||
typedef int ImGuiCond;
|
||||
typedef int ImGuiKey;
|
||||
typedef int ImGuiNavInput;
|
||||
typedef int ImGuiMouseCursor;
|
||||
@@ -131,12 +116,12 @@ typedef int ImGuiInputTextFlags;
|
||||
typedef int ImGuiSelectableFlags;
|
||||
typedef int ImGuiTreeNodeFlags;
|
||||
typedef int ImGuiWindowFlags;
|
||||
typedef int (*ImGuiTextEditCallback)(ImGuiTextEditCallbackData *data);
|
||||
typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData *data);
|
||||
typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data);
|
||||
typedef signed int ImS32;
|
||||
typedef unsigned int ImU32;
|
||||
typedef signed long long ImS64;
|
||||
typedef unsigned long long ImU64;
|
||||
typedef int64_t ImS64;
|
||||
typedef uint64_t ImU64;
|
||||
struct ImVec2
|
||||
{
|
||||
float x, y;
|
||||
@@ -164,7 +149,6 @@ enum ImGuiWindowFlags_
|
||||
ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14,
|
||||
ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15,
|
||||
ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16,
|
||||
ImGuiWindowFlags_ResizeFromAnySide = 1 << 17,
|
||||
ImGuiWindowFlags_NoNavInputs = 1 << 18,
|
||||
ImGuiWindowFlags_NoNavFocus = 1 << 19,
|
||||
ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus,
|
||||
@@ -196,6 +180,7 @@ enum ImGuiInputTextFlags_
|
||||
ImGuiInputTextFlags_Password = 1 << 15,
|
||||
ImGuiInputTextFlags_NoUndoRedo = 1 << 16,
|
||||
ImGuiInputTextFlags_CharsScientific = 1 << 17,
|
||||
ImGuiInputTextFlags_CallbackResize = 1 << 18,
|
||||
ImGuiInputTextFlags_Multiline = 1 << 20
|
||||
};
|
||||
enum ImGuiTreeNodeFlags_
|
||||
@@ -220,7 +205,8 @@ enum ImGuiSelectableFlags_
|
||||
ImGuiSelectableFlags_None = 0,
|
||||
ImGuiSelectableFlags_DontClosePopups = 1 << 0,
|
||||
ImGuiSelectableFlags_SpanAllColumns = 1 << 1,
|
||||
ImGuiSelectableFlags_AllowDoubleClick = 1 << 2
|
||||
ImGuiSelectableFlags_AllowDoubleClick = 1 << 2,
|
||||
ImGuiSelectableFlags_Disabled = 1 << 3
|
||||
};
|
||||
enum ImGuiComboFlags_
|
||||
{
|
||||
@@ -251,6 +237,7 @@ enum ImGuiHoveredFlags_
|
||||
ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 3,
|
||||
ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 5,
|
||||
ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 6,
|
||||
ImGuiHoveredFlags_AllowWhenDisabled = 1 << 7,
|
||||
ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped,
|
||||
ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows
|
||||
};
|
||||
@@ -262,6 +249,7 @@ enum ImGuiDragDropFlags_
|
||||
ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2,
|
||||
ImGuiDragDropFlags_SourceAllowNullID = 1 << 3,
|
||||
ImGuiDragDropFlags_SourceExtern = 1 << 4,
|
||||
ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5,
|
||||
ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10,
|
||||
ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11,
|
||||
ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12,
|
||||
@@ -394,10 +382,11 @@ enum ImGuiCol_
|
||||
ImGuiCol_PlotHistogram,
|
||||
ImGuiCol_PlotHistogramHovered,
|
||||
ImGuiCol_TextSelectedBg,
|
||||
ImGuiCol_ModalWindowDarkening,
|
||||
ImGuiCol_DragDropTarget,
|
||||
ImGuiCol_NavHighlight,
|
||||
ImGuiCol_NavWindowingHighlight,
|
||||
ImGuiCol_NavWindowingDimBg,
|
||||
ImGuiCol_ModalWindowDimBg,
|
||||
ImGuiCol_COUNT
|
||||
};
|
||||
enum ImGuiStyleVar_
|
||||
@@ -463,6 +452,7 @@ enum ImGuiMouseCursor_
|
||||
ImGuiMouseCursor_ResizeEW,
|
||||
ImGuiMouseCursor_ResizeNESW,
|
||||
ImGuiMouseCursor_ResizeNWSE,
|
||||
ImGuiMouseCursor_Hand,
|
||||
ImGuiMouseCursor_COUNT
|
||||
};
|
||||
enum ImGuiCond_
|
||||
@@ -528,19 +518,20 @@ struct ImGuiIO
|
||||
ImVec2 DisplayFramebufferScale;
|
||||
ImVec2 DisplayVisibleMin;
|
||||
ImVec2 DisplayVisibleMax;
|
||||
bool OptMacOSXBehaviors;
|
||||
bool OptCursorBlink;
|
||||
bool MouseDrawCursor;
|
||||
bool ConfigMacOSXBehaviors;
|
||||
bool ConfigInputTextCursorBlink;
|
||||
bool ConfigResizeWindowsFromEdges;
|
||||
const char* (*GetClipboardTextFn)(void* user_data);
|
||||
void (*SetClipboardTextFn)(void* user_data, const char* text);
|
||||
void* ClipboardUserData;
|
||||
void (*ImeSetInputScreenPosFn)(int x, int y);
|
||||
void* ImeWindowHandle;
|
||||
void* RenderDrawListsFnDummy;
|
||||
void* RenderDrawListsFnUnused;
|
||||
ImVec2 MousePos;
|
||||
bool MouseDown[5];
|
||||
float MouseWheel;
|
||||
float MouseWheelH;
|
||||
bool MouseDrawCursor;
|
||||
bool KeyCtrl;
|
||||
bool KeyShift;
|
||||
bool KeyAlt;
|
||||
@@ -558,11 +549,13 @@ struct ImGuiIO
|
||||
float Framerate;
|
||||
int MetricsRenderVertices;
|
||||
int MetricsRenderIndices;
|
||||
int MetricsRenderWindows;
|
||||
int MetricsActiveWindows;
|
||||
int MetricsActiveAllocations;
|
||||
ImVec2 MouseDelta;
|
||||
ImVec2 MousePosPrev;
|
||||
ImVec2 MouseClickedPos[5];
|
||||
float MouseClickedTime[5];
|
||||
double MouseClickedTime[5];
|
||||
bool MouseClicked[5];
|
||||
bool MouseDoubleClicked[5];
|
||||
bool MouseReleased[5];
|
||||
@@ -602,12 +595,11 @@ struct ImGuiStorage
|
||||
{
|
||||
ImVector/*<Pair>*/ Data;
|
||||
};
|
||||
struct ImGuiTextEditCallbackData
|
||||
struct ImGuiInputTextCallbackData
|
||||
{
|
||||
ImGuiInputTextFlags EventFlag;
|
||||
ImGuiInputTextFlags Flags;
|
||||
void* UserData;
|
||||
bool ReadOnly;
|
||||
ImWchar EventChar;
|
||||
ImGuiKey EventKey;
|
||||
char* Buf;
|
||||
@@ -742,11 +734,13 @@ struct ImFontGlyph
|
||||
};
|
||||
enum ImFontAtlasFlags_
|
||||
{
|
||||
ImFontAtlasFlags_None = 0,
|
||||
ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0,
|
||||
ImFontAtlasFlags_NoMouseCursors = 1 << 1
|
||||
};
|
||||
struct ImFontAtlas
|
||||
{
|
||||
bool Locked;
|
||||
ImFontAtlasFlags Flags;
|
||||
ImTextureID TexID;
|
||||
int TexDesiredWidth;
|
||||
@@ -808,6 +802,28 @@ struct ImFont
|
||||
struct GLFWwindow;
|
||||
struct SDL_Window;
|
||||
typedef union SDL_Event SDL_Event;
|
||||
inline ImVec2_Simple ImVec2ToSimple(ImVec2 vec)
|
||||
{
|
||||
ImVec2_Simple result;
|
||||
result.x = vec.x;
|
||||
result.y = vec.y;
|
||||
return result;
|
||||
}
|
||||
inline ImVec4_Simple ImVec4ToSimple(ImVec4 vec)
|
||||
{
|
||||
ImVec4_Simple result;
|
||||
result.x = vec.x;
|
||||
result.y = vec.y;
|
||||
result.z = vec.z;
|
||||
result.w = vec.w;
|
||||
return result;
|
||||
}
|
||||
inline ImColor_Simple ImColorToSimple(ImColor col)
|
||||
{
|
||||
ImColor_Simple result;
|
||||
result.Value = ImVec4ToSimple(col.Value);
|
||||
return result;
|
||||
}
|
||||
#endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
|
||||
#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
@@ -823,71 +839,71 @@ typedef ImVector ImVector_ImWchar;
|
||||
#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas);
|
||||
CIMGUI_API void igDestroyContext(ImGuiContext* ctx);
|
||||
CIMGUI_API ImGuiContext* igGetCurrentContext();
|
||||
CIMGUI_API ImGuiContext* igGetCurrentContext(void);
|
||||
CIMGUI_API void igSetCurrentContext(ImGuiContext* ctx);
|
||||
CIMGUI_API bool igDebugCheckVersionAndDataLayout(const char* version_str,size_t sz_io,size_t sz_style,size_t sz_vec2,size_t sz_vec4,size_t sz_drawvert);
|
||||
CIMGUI_API ImGuiIO* igGetIO();
|
||||
CIMGUI_API ImGuiStyle* igGetStyle();
|
||||
CIMGUI_API void igNewFrame();
|
||||
CIMGUI_API void igEndFrame();
|
||||
CIMGUI_API void igRender();
|
||||
CIMGUI_API ImDrawData* igGetDrawData();
|
||||
CIMGUI_API ImGuiIO* igGetIO(void);
|
||||
CIMGUI_API ImGuiStyle* igGetStyle(void);
|
||||
CIMGUI_API void igNewFrame(void);
|
||||
CIMGUI_API void igEndFrame(void);
|
||||
CIMGUI_API void igRender(void);
|
||||
CIMGUI_API ImDrawData* igGetDrawData(void);
|
||||
CIMGUI_API void igShowDemoWindow(bool* p_open);
|
||||
CIMGUI_API void igShowMetricsWindow(bool* p_open);
|
||||
CIMGUI_API void igShowStyleEditor(ImGuiStyle* ref);
|
||||
CIMGUI_API bool igShowStyleSelector(const char* label);
|
||||
CIMGUI_API void igShowFontSelector(const char* label);
|
||||
CIMGUI_API void igShowUserGuide();
|
||||
CIMGUI_API const char* igGetVersion();
|
||||
CIMGUI_API void igShowUserGuide(void);
|
||||
CIMGUI_API const char* igGetVersion(void);
|
||||
CIMGUI_API void igStyleColorsDark(ImGuiStyle* dst);
|
||||
CIMGUI_API void igStyleColorsClassic(ImGuiStyle* dst);
|
||||
CIMGUI_API void igStyleColorsLight(ImGuiStyle* dst);
|
||||
CIMGUI_API bool igBegin(const char* name,bool* p_open,ImGuiWindowFlags flags);
|
||||
CIMGUI_API void igEnd();
|
||||
CIMGUI_API void igEnd(void);
|
||||
CIMGUI_API bool igBeginChild(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags);
|
||||
CIMGUI_API bool igBeginChildID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags);
|
||||
CIMGUI_API void igEndChild();
|
||||
CIMGUI_API bool igIsWindowAppearing();
|
||||
CIMGUI_API bool igIsWindowCollapsed();
|
||||
CIMGUI_API void igEndChild(void);
|
||||
CIMGUI_API bool igIsWindowAppearing(void);
|
||||
CIMGUI_API bool igIsWindowCollapsed(void);
|
||||
CIMGUI_API bool igIsWindowFocused(ImGuiFocusedFlags flags);
|
||||
CIMGUI_API bool igIsWindowHovered(ImGuiHoveredFlags flags);
|
||||
CIMGUI_API ImDrawList* igGetWindowDrawList();
|
||||
CIMGUI_API ImVec2 igGetWindowPos();
|
||||
CIMGUI_API ImVec2 igGetWindowSize();
|
||||
CIMGUI_API float igGetWindowWidth();
|
||||
CIMGUI_API float igGetWindowHeight();
|
||||
CIMGUI_API ImVec2 igGetContentRegionMax();
|
||||
CIMGUI_API ImVec2 igGetContentRegionAvail();
|
||||
CIMGUI_API float igGetContentRegionAvailWidth();
|
||||
CIMGUI_API ImVec2 igGetWindowContentRegionMin();
|
||||
CIMGUI_API ImVec2 igGetWindowContentRegionMax();
|
||||
CIMGUI_API float igGetWindowContentRegionWidth();
|
||||
CIMGUI_API ImDrawList* igGetWindowDrawList(void);
|
||||
CIMGUI_API ImVec2 igGetWindowPos(void);
|
||||
CIMGUI_API ImVec2 igGetWindowSize(void);
|
||||
CIMGUI_API float igGetWindowWidth(void);
|
||||
CIMGUI_API float igGetWindowHeight(void);
|
||||
CIMGUI_API ImVec2 igGetContentRegionMax(void);
|
||||
CIMGUI_API ImVec2 igGetContentRegionAvail(void);
|
||||
CIMGUI_API float igGetContentRegionAvailWidth(void);
|
||||
CIMGUI_API ImVec2 igGetWindowContentRegionMin(void);
|
||||
CIMGUI_API ImVec2 igGetWindowContentRegionMax(void);
|
||||
CIMGUI_API float igGetWindowContentRegionWidth(void);
|
||||
CIMGUI_API void igSetNextWindowPos(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot);
|
||||
CIMGUI_API void igSetNextWindowSize(const ImVec2 size,ImGuiCond cond);
|
||||
CIMGUI_API void igSetNextWindowSizeConstraints(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data);
|
||||
CIMGUI_API void igSetNextWindowContentSize(const ImVec2 size);
|
||||
CIMGUI_API void igSetNextWindowCollapsed(bool collapsed,ImGuiCond cond);
|
||||
CIMGUI_API void igSetNextWindowFocus();
|
||||
CIMGUI_API void igSetNextWindowFocus(void);
|
||||
CIMGUI_API void igSetNextWindowBgAlpha(float alpha);
|
||||
CIMGUI_API void igSetWindowPosVec2(const ImVec2 pos,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowSizeVec2(const ImVec2 size,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowCollapsedBool(bool collapsed,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowFocus();
|
||||
CIMGUI_API void igSetWindowFocus(void);
|
||||
CIMGUI_API void igSetWindowFontScale(float scale);
|
||||
CIMGUI_API void igSetWindowPosStr(const char* name,const ImVec2 pos,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowSizeStr(const char* name,const ImVec2 size,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowCollapsedStr(const char* name,bool collapsed,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowFocusStr(const char* name);
|
||||
CIMGUI_API float igGetScrollX();
|
||||
CIMGUI_API float igGetScrollY();
|
||||
CIMGUI_API float igGetScrollMaxX();
|
||||
CIMGUI_API float igGetScrollMaxY();
|
||||
CIMGUI_API float igGetScrollX(void);
|
||||
CIMGUI_API float igGetScrollY(void);
|
||||
CIMGUI_API float igGetScrollMaxX(void);
|
||||
CIMGUI_API float igGetScrollMaxY(void);
|
||||
CIMGUI_API void igSetScrollX(float scroll_x);
|
||||
CIMGUI_API void igSetScrollY(float scroll_y);
|
||||
CIMGUI_API void igSetScrollHere(float center_y_ratio);
|
||||
CIMGUI_API void igSetScrollFromPosY(float pos_y,float center_y_ratio);
|
||||
CIMGUI_API void igPushFont(ImFont* font);
|
||||
CIMGUI_API void igPopFont();
|
||||
CIMGUI_API void igPopFont(void);
|
||||
CIMGUI_API void igPushStyleColorU32(ImGuiCol idx,ImU32 col);
|
||||
CIMGUI_API void igPushStyleColor(ImGuiCol idx,const ImVec4 col);
|
||||
CIMGUI_API void igPopStyleColor(int count);
|
||||
@@ -895,49 +911,49 @@ CIMGUI_API void igPushStyleVarFloat(ImGuiStyleVar idx,float val);
|
||||
CIMGUI_API void igPushStyleVarVec2(ImGuiStyleVar idx,const ImVec2 val);
|
||||
CIMGUI_API void igPopStyleVar(int count);
|
||||
CIMGUI_API const ImVec4* igGetStyleColorVec4(ImGuiCol idx);
|
||||
CIMGUI_API ImFont* igGetFont();
|
||||
CIMGUI_API float igGetFontSize();
|
||||
CIMGUI_API ImVec2 igGetFontTexUvWhitePixel();
|
||||
CIMGUI_API ImFont* igGetFont(void);
|
||||
CIMGUI_API float igGetFontSize(void);
|
||||
CIMGUI_API ImVec2 igGetFontTexUvWhitePixel(void);
|
||||
CIMGUI_API ImU32 igGetColorU32(ImGuiCol idx,float alpha_mul);
|
||||
CIMGUI_API ImU32 igGetColorU32Vec4(const ImVec4 col);
|
||||
CIMGUI_API ImU32 igGetColorU32U32(ImU32 col);
|
||||
CIMGUI_API void igPushItemWidth(float item_width);
|
||||
CIMGUI_API void igPopItemWidth();
|
||||
CIMGUI_API float igCalcItemWidth();
|
||||
CIMGUI_API void igPopItemWidth(void);
|
||||
CIMGUI_API float igCalcItemWidth(void);
|
||||
CIMGUI_API void igPushTextWrapPos(float wrap_pos_x);
|
||||
CIMGUI_API void igPopTextWrapPos();
|
||||
CIMGUI_API void igPopTextWrapPos(void);
|
||||
CIMGUI_API void igPushAllowKeyboardFocus(bool allow_keyboard_focus);
|
||||
CIMGUI_API void igPopAllowKeyboardFocus();
|
||||
CIMGUI_API void igPopAllowKeyboardFocus(void);
|
||||
CIMGUI_API void igPushButtonRepeat(bool repeat);
|
||||
CIMGUI_API void igPopButtonRepeat();
|
||||
CIMGUI_API void igSeparator();
|
||||
CIMGUI_API void igPopButtonRepeat(void);
|
||||
CIMGUI_API void igSeparator(void);
|
||||
CIMGUI_API void igSameLine(float pos_x,float spacing_w);
|
||||
CIMGUI_API void igNewLine();
|
||||
CIMGUI_API void igSpacing();
|
||||
CIMGUI_API void igNewLine(void);
|
||||
CIMGUI_API void igSpacing(void);
|
||||
CIMGUI_API void igDummy(const ImVec2 size);
|
||||
CIMGUI_API void igIndent(float indent_w);
|
||||
CIMGUI_API void igUnindent(float indent_w);
|
||||
CIMGUI_API void igBeginGroup();
|
||||
CIMGUI_API void igEndGroup();
|
||||
CIMGUI_API ImVec2 igGetCursorPos();
|
||||
CIMGUI_API float igGetCursorPosX();
|
||||
CIMGUI_API float igGetCursorPosY();
|
||||
CIMGUI_API void igBeginGroup(void);
|
||||
CIMGUI_API void igEndGroup(void);
|
||||
CIMGUI_API ImVec2 igGetCursorPos(void);
|
||||
CIMGUI_API float igGetCursorPosX(void);
|
||||
CIMGUI_API float igGetCursorPosY(void);
|
||||
CIMGUI_API void igSetCursorPos(const ImVec2 local_pos);
|
||||
CIMGUI_API void igSetCursorPosX(float x);
|
||||
CIMGUI_API void igSetCursorPosY(float y);
|
||||
CIMGUI_API ImVec2 igGetCursorStartPos();
|
||||
CIMGUI_API ImVec2 igGetCursorScreenPos();
|
||||
CIMGUI_API ImVec2 igGetCursorStartPos(void);
|
||||
CIMGUI_API ImVec2 igGetCursorScreenPos(void);
|
||||
CIMGUI_API void igSetCursorScreenPos(const ImVec2 screen_pos);
|
||||
CIMGUI_API void igAlignTextToFramePadding();
|
||||
CIMGUI_API float igGetTextLineHeight();
|
||||
CIMGUI_API float igGetTextLineHeightWithSpacing();
|
||||
CIMGUI_API float igGetFrameHeight();
|
||||
CIMGUI_API float igGetFrameHeightWithSpacing();
|
||||
CIMGUI_API void igAlignTextToFramePadding(void);
|
||||
CIMGUI_API float igGetTextLineHeight(void);
|
||||
CIMGUI_API float igGetTextLineHeightWithSpacing(void);
|
||||
CIMGUI_API float igGetFrameHeight(void);
|
||||
CIMGUI_API float igGetFrameHeightWithSpacing(void);
|
||||
CIMGUI_API void igPushIDStr(const char* str_id);
|
||||
CIMGUI_API void igPushIDRange(const char* str_id_begin,const char* str_id_end);
|
||||
CIMGUI_API void igPushIDPtr(const void* ptr_id);
|
||||
CIMGUI_API void igPushIDInt(int int_id);
|
||||
CIMGUI_API void igPopID();
|
||||
CIMGUI_API void igPopID(void);
|
||||
CIMGUI_API ImGuiID igGetIDStr(const char* str_id);
|
||||
CIMGUI_API ImGuiID igGetIDStrStr(const char* str_id_begin,const char* str_id_end);
|
||||
CIMGUI_API ImGuiID igGetIDPtr(const void* ptr_id);
|
||||
@@ -964,14 +980,10 @@ CIMGUI_API bool igCheckbox(const char* label,bool* v);
|
||||
CIMGUI_API bool igCheckboxFlags(const char* label,unsigned int* flags,unsigned int flags_value);
|
||||
CIMGUI_API bool igRadioButtonBool(const char* label,bool active);
|
||||
CIMGUI_API bool igRadioButtonIntPtr(const char* label,int* v,int v_button);
|
||||
CIMGUI_API void igPlotLines(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride);
|
||||
CIMGUI_API void igPlotLinesFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size);
|
||||
CIMGUI_API void igPlotHistogramFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride);
|
||||
CIMGUI_API void igPlotHistogramFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size);
|
||||
CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay);
|
||||
CIMGUI_API void igBullet();
|
||||
CIMGUI_API void igBullet(void);
|
||||
CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags);
|
||||
CIMGUI_API void igEndCombo();
|
||||
CIMGUI_API void igEndCombo(void);
|
||||
CIMGUI_API bool igCombo(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items);
|
||||
CIMGUI_API bool igComboStr(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items);
|
||||
CIMGUI_API bool igComboFnPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items);
|
||||
@@ -987,19 +999,6 @@ CIMGUI_API bool igDragInt4(const char* label,int v[4],float v_speed,int v_min,in
|
||||
CIMGUI_API bool igDragIntRange2(const char* label,int* v_current_min,int* v_current_max,float v_speed,int v_min,int v_max,const char* format,const char* format_max);
|
||||
CIMGUI_API bool igDragScalar(const char* label,ImGuiDataType data_type,void* v,float v_speed,const void* v_min,const void* v_max,const char* format,float power);
|
||||
CIMGUI_API bool igDragScalarN(const char* label,ImGuiDataType data_type,void* v,int components,float v_speed,const void* v_min,const void* v_max,const char* format,float power);
|
||||
CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiTextEditCallback callback,void* user_data);
|
||||
CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiTextEditCallback callback,void* user_data);
|
||||
CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputScalar(const char* label,ImGuiDataType data_type,void* v,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igSliderFloat(const char* label,float* v,float v_min,float v_max,const char* format,float power);
|
||||
CIMGUI_API bool igSliderFloat2(const char* label,float v[2],float v_min,float v_max,const char* format,float power);
|
||||
CIMGUI_API bool igSliderFloat3(const char* label,float v[3],float v_min,float v_max,const char* format,float power);
|
||||
@@ -1014,6 +1013,19 @@ CIMGUI_API bool igSliderScalarN(const char* label,ImGuiDataType data_type,void*
|
||||
CIMGUI_API bool igVSliderFloat(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,float power);
|
||||
CIMGUI_API bool igVSliderInt(const char* label,const ImVec2 size,int* v,int v_min,int v_max,const char* format);
|
||||
CIMGUI_API bool igVSliderScalar(const char* label,const ImVec2 size,ImGuiDataType data_type,void* v,const void* v_min,const void* v_max,const char* format,float power);
|
||||
CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data);
|
||||
CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data);
|
||||
CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputScalar(const char* label,ImGuiDataType data_type,void* v,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags flags);
|
||||
CIMGUI_API bool igColorEdit4(const char* label,float col[4],ImGuiColorEditFlags flags);
|
||||
CIMGUI_API bool igColorPicker3(const char* label,float col[3],ImGuiColorEditFlags flags);
|
||||
@@ -1032,9 +1044,9 @@ CIMGUI_API bool igTreeNodeExVStr(const char* str_id,ImGuiTreeNodeFlags flags,con
|
||||
CIMGUI_API bool igTreeNodeExVPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args);
|
||||
CIMGUI_API void igTreePushStr(const char* str_id);
|
||||
CIMGUI_API void igTreePushPtr(const void* ptr_id);
|
||||
CIMGUI_API void igTreePop();
|
||||
CIMGUI_API void igTreeAdvanceToLabelPos();
|
||||
CIMGUI_API float igGetTreeNodeToLabelSpacing();
|
||||
CIMGUI_API void igTreePop(void);
|
||||
CIMGUI_API void igTreeAdvanceToLabelPos(void);
|
||||
CIMGUI_API float igGetTreeNodeToLabelSpacing(void);
|
||||
CIMGUI_API void igSetNextTreeNodeOpen(bool is_open,ImGuiCond cond);
|
||||
CIMGUI_API bool igCollapsingHeader(const char* label,ImGuiTreeNodeFlags flags);
|
||||
CIMGUI_API bool igCollapsingHeaderBoolPtr(const char* label,bool* p_open,ImGuiTreeNodeFlags flags);
|
||||
@@ -1044,109 +1056,112 @@ CIMGUI_API bool igListBoxStr_arr(const char* label,int* current_item,const char*
|
||||
CIMGUI_API bool igListBoxFnPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items);
|
||||
CIMGUI_API bool igListBoxHeaderVec2(const char* label,const ImVec2 size);
|
||||
CIMGUI_API bool igListBoxHeaderInt(const char* label,int items_count,int height_in_items);
|
||||
CIMGUI_API void igListBoxFooter();
|
||||
CIMGUI_API void igListBoxFooter(void);
|
||||
CIMGUI_API void igPlotLines(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride);
|
||||
CIMGUI_API void igPlotLinesFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size);
|
||||
CIMGUI_API void igPlotHistogramFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride);
|
||||
CIMGUI_API void igPlotHistogramFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size);
|
||||
CIMGUI_API void igValueBool(const char* prefix,bool b);
|
||||
CIMGUI_API void igValueInt(const char* prefix,int v);
|
||||
CIMGUI_API void igValueUint(const char* prefix,unsigned int v);
|
||||
CIMGUI_API void igValueFloat(const char* prefix,float v,const char* float_format);
|
||||
CIMGUI_API void igBeginTooltip();
|
||||
CIMGUI_API void igEndTooltip();
|
||||
CIMGUI_API void igSetTooltip(const char* fmt,...);
|
||||
CIMGUI_API void igSetTooltipV(const char* fmt,va_list args);
|
||||
CIMGUI_API bool igBeginMainMenuBar();
|
||||
CIMGUI_API void igEndMainMenuBar();
|
||||
CIMGUI_API bool igBeginMenuBar();
|
||||
CIMGUI_API void igEndMenuBar();
|
||||
CIMGUI_API bool igBeginMainMenuBar(void);
|
||||
CIMGUI_API void igEndMainMenuBar(void);
|
||||
CIMGUI_API bool igBeginMenuBar(void);
|
||||
CIMGUI_API void igEndMenuBar(void);
|
||||
CIMGUI_API bool igBeginMenu(const char* label,bool enabled);
|
||||
CIMGUI_API void igEndMenu();
|
||||
CIMGUI_API void igEndMenu(void);
|
||||
CIMGUI_API bool igMenuItemBool(const char* label,const char* shortcut,bool selected,bool enabled);
|
||||
CIMGUI_API bool igMenuItemBoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled);
|
||||
CIMGUI_API void igBeginTooltip(void);
|
||||
CIMGUI_API void igEndTooltip(void);
|
||||
CIMGUI_API void igSetTooltip(const char* fmt,...);
|
||||
CIMGUI_API void igSetTooltipV(const char* fmt,va_list args);
|
||||
CIMGUI_API void igOpenPopup(const char* str_id);
|
||||
CIMGUI_API bool igBeginPopup(const char* str_id,ImGuiWindowFlags flags);
|
||||
CIMGUI_API bool igBeginPopupContextItem(const char* str_id,int mouse_button);
|
||||
CIMGUI_API bool igBeginPopupContextWindow(const char* str_id,int mouse_button,bool also_over_items);
|
||||
CIMGUI_API bool igBeginPopupContextVoid(const char* str_id,int mouse_button);
|
||||
CIMGUI_API bool igBeginPopupModal(const char* name,bool* p_open,ImGuiWindowFlags flags);
|
||||
CIMGUI_API void igEndPopup();
|
||||
CIMGUI_API void igEndPopup(void);
|
||||
CIMGUI_API bool igOpenPopupOnItemClick(const char* str_id,int mouse_button);
|
||||
CIMGUI_API bool igIsPopupOpen(const char* str_id);
|
||||
CIMGUI_API void igCloseCurrentPopup();
|
||||
CIMGUI_API void igCloseCurrentPopup(void);
|
||||
CIMGUI_API void igColumns(int count,const char* id,bool border);
|
||||
CIMGUI_API void igNextColumn();
|
||||
CIMGUI_API int igGetColumnIndex();
|
||||
CIMGUI_API void igNextColumn(void);
|
||||
CIMGUI_API int igGetColumnIndex(void);
|
||||
CIMGUI_API float igGetColumnWidth(int column_index);
|
||||
CIMGUI_API void igSetColumnWidth(int column_index,float width);
|
||||
CIMGUI_API float igGetColumnOffset(int column_index);
|
||||
CIMGUI_API void igSetColumnOffset(int column_index,float offset_x);
|
||||
CIMGUI_API int igGetColumnsCount();
|
||||
CIMGUI_API int igGetColumnsCount(void);
|
||||
CIMGUI_API void igLogToTTY(int max_depth);
|
||||
CIMGUI_API void igLogToFile(int max_depth,const char* filename);
|
||||
CIMGUI_API void igLogToClipboard(int max_depth);
|
||||
CIMGUI_API void igLogFinish();
|
||||
CIMGUI_API void igLogButtons();
|
||||
CIMGUI_API void igLogFinish(void);
|
||||
CIMGUI_API void igLogButtons(void);
|
||||
CIMGUI_API bool igBeginDragDropSource(ImGuiDragDropFlags flags);
|
||||
CIMGUI_API bool igSetDragDropPayload(const char* type,const void* data,size_t size,ImGuiCond cond);
|
||||
CIMGUI_API void igEndDragDropSource();
|
||||
CIMGUI_API bool igBeginDragDropTarget();
|
||||
CIMGUI_API void igEndDragDropSource(void);
|
||||
CIMGUI_API bool igBeginDragDropTarget(void);
|
||||
CIMGUI_API const ImGuiPayload* igAcceptDragDropPayload(const char* type,ImGuiDragDropFlags flags);
|
||||
CIMGUI_API void igEndDragDropTarget();
|
||||
CIMGUI_API void igEndDragDropTarget(void);
|
||||
CIMGUI_API void igPushClipRect(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect);
|
||||
CIMGUI_API void igPopClipRect();
|
||||
CIMGUI_API void igSetItemDefaultFocus();
|
||||
CIMGUI_API void igPopClipRect(void);
|
||||
CIMGUI_API void igSetItemDefaultFocus(void);
|
||||
CIMGUI_API void igSetKeyboardFocusHere(int offset);
|
||||
CIMGUI_API bool igIsItemHovered(ImGuiHoveredFlags flags);
|
||||
CIMGUI_API bool igIsItemActive();
|
||||
CIMGUI_API bool igIsItemFocused();
|
||||
CIMGUI_API bool igIsItemActive(void);
|
||||
CIMGUI_API bool igIsItemFocused(void);
|
||||
CIMGUI_API bool igIsItemClicked(int mouse_button);
|
||||
CIMGUI_API bool igIsItemVisible();
|
||||
CIMGUI_API bool igIsItemDeactivated();
|
||||
CIMGUI_API bool igIsItemDeactivatedAfterChange();
|
||||
CIMGUI_API bool igIsAnyItemHovered();
|
||||
CIMGUI_API bool igIsAnyItemActive();
|
||||
CIMGUI_API bool igIsAnyItemFocused();
|
||||
CIMGUI_API ImVec2 igGetItemRectMin();
|
||||
CIMGUI_API ImVec2 igGetItemRectMax();
|
||||
CIMGUI_API ImVec2 igGetItemRectSize();
|
||||
CIMGUI_API void igSetItemAllowOverlap();
|
||||
CIMGUI_API bool igIsItemVisible(void);
|
||||
CIMGUI_API bool igIsItemEdited(void);
|
||||
CIMGUI_API bool igIsItemDeactivated(void);
|
||||
CIMGUI_API bool igIsItemDeactivatedAfterEdit(void);
|
||||
CIMGUI_API bool igIsAnyItemHovered(void);
|
||||
CIMGUI_API bool igIsAnyItemActive(void);
|
||||
CIMGUI_API bool igIsAnyItemFocused(void);
|
||||
CIMGUI_API ImVec2 igGetItemRectMin(void);
|
||||
CIMGUI_API ImVec2 igGetItemRectMax(void);
|
||||
CIMGUI_API ImVec2 igGetItemRectSize(void);
|
||||
CIMGUI_API void igSetItemAllowOverlap(void);
|
||||
CIMGUI_API bool igIsRectVisible(const ImVec2 size);
|
||||
CIMGUI_API bool igIsRectVisibleVec2(const ImVec2 rect_min,const ImVec2 rect_max);
|
||||
CIMGUI_API float igGetTime();
|
||||
CIMGUI_API int igGetFrameCount();
|
||||
CIMGUI_API ImDrawList* igGetOverlayDrawList();
|
||||
CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData();
|
||||
CIMGUI_API double igGetTime(void);
|
||||
CIMGUI_API int igGetFrameCount(void);
|
||||
CIMGUI_API ImDrawList* igGetOverlayDrawList(void);
|
||||
CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData(void);
|
||||
CIMGUI_API const char* igGetStyleColorName(ImGuiCol idx);
|
||||
CIMGUI_API void igSetStateStorage(ImGuiStorage* storage);
|
||||
CIMGUI_API ImGuiStorage* igGetStateStorage();
|
||||
CIMGUI_API ImGuiStorage* igGetStateStorage(void);
|
||||
CIMGUI_API ImVec2 igCalcTextSize(const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width);
|
||||
CIMGUI_API void igCalcListClipping(int items_count,float items_height,int* out_items_display_start,int* out_items_display_end);
|
||||
CIMGUI_API bool igBeginChildFrame(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags);
|
||||
CIMGUI_API void igEndChildFrame();
|
||||
CIMGUI_API void igEndChildFrame(void);
|
||||
CIMGUI_API ImVec4 igColorConvertU32ToFloat4(ImU32 in);
|
||||
CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in);
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float out_h,float out_s,float out_v);
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float out_r,float out_g,float out_b);
|
||||
CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key);
|
||||
CIMGUI_API bool igIsKeyDown(int user_key_index);
|
||||
CIMGUI_API bool igIsKeyPressed(int user_key_index,bool repeat);
|
||||
CIMGUI_API bool igIsKeyReleased(int user_key_index);
|
||||
CIMGUI_API int igGetKeyPressedAmount(int key_index,float repeat_delay,float rate);
|
||||
CIMGUI_API bool igIsMouseDown(int button);
|
||||
CIMGUI_API bool igIsAnyMouseDown();
|
||||
CIMGUI_API bool igIsAnyMouseDown(void);
|
||||
CIMGUI_API bool igIsMouseClicked(int button,bool repeat);
|
||||
CIMGUI_API bool igIsMouseDoubleClicked(int button);
|
||||
CIMGUI_API bool igIsMouseReleased(int button);
|
||||
CIMGUI_API bool igIsMouseDragging(int button,float lock_threshold);
|
||||
CIMGUI_API bool igIsMouseHoveringRect(const ImVec2 r_min,const ImVec2 r_max,bool clip);
|
||||
CIMGUI_API bool igIsMousePosValid(const ImVec2* mouse_pos);
|
||||
CIMGUI_API ImVec2 igGetMousePos();
|
||||
CIMGUI_API ImVec2 igGetMousePosOnOpeningCurrentPopup();
|
||||
CIMGUI_API ImVec2 igGetMousePos(void);
|
||||
CIMGUI_API ImVec2 igGetMousePosOnOpeningCurrentPopup(void);
|
||||
CIMGUI_API ImVec2 igGetMouseDragDelta(int button,float lock_threshold);
|
||||
CIMGUI_API void igResetMouseDragDelta(int button);
|
||||
CIMGUI_API ImGuiMouseCursor igGetMouseCursor();
|
||||
CIMGUI_API ImGuiMouseCursor igGetMouseCursor(void);
|
||||
CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor type);
|
||||
CIMGUI_API void igCaptureKeyboardFromApp(bool capture);
|
||||
CIMGUI_API void igCaptureMouseFromApp(bool capture);
|
||||
CIMGUI_API const char* igGetClipboardText();
|
||||
CIMGUI_API const char* igGetClipboardText(void);
|
||||
CIMGUI_API void igSetClipboardText(const char* text);
|
||||
CIMGUI_API void igLoadIniSettingsFromDisk(const char* ini_filename);
|
||||
CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data,size_t ini_size);
|
||||
@@ -1158,19 +1173,16 @@ CIMGUI_API void igMemFree(void* ptr);
|
||||
CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor);
|
||||
CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self,ImWchar c);
|
||||
CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self,const char* utf8_chars);
|
||||
CIMGUI_API inline void ImGuiIO_ClearInputCharacters(ImGuiIO* self);
|
||||
CIMGUI_API const char* TextRange_begin(TextRange* self);
|
||||
CIMGUI_API const char* TextRange_end(TextRange* self);
|
||||
CIMGUI_API bool TextRange_empty(TextRange* self);
|
||||
CIMGUI_API char TextRange_front(TextRange* self);
|
||||
CIMGUI_API bool TextRange_is_blank(TextRange* self,char c);
|
||||
CIMGUI_API void TextRange_trim_blanks(TextRange* self);
|
||||
CIMGUI_API void TextRange_split(TextRange* self,char separator,ImVector_TextRange out);
|
||||
CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self);
|
||||
CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self,const char* label,float width);
|
||||
CIMGUI_API bool ImGuiTextFilter_PassFilter(ImGuiTextFilter* self,const char* text,const char* text_end);
|
||||
CIMGUI_API void ImGuiTextFilter_Build(ImGuiTextFilter* self);
|
||||
CIMGUI_API void ImGuiTextFilter_Clear(ImGuiTextFilter* self);
|
||||
CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self);
|
||||
CIMGUI_API const char* TextRange_begin(TextRange* self);
|
||||
CIMGUI_API const char* TextRange_end(TextRange* self);
|
||||
CIMGUI_API bool TextRange_empty(TextRange* self);
|
||||
CIMGUI_API void TextRange_split(TextRange* self,char separator,ImVector_TextRange* out);
|
||||
CIMGUI_API const char* ImGuiTextBuffer_begin(ImGuiTextBuffer* self);
|
||||
CIMGUI_API const char* ImGuiTextBuffer_end(ImGuiTextBuffer* self);
|
||||
CIMGUI_API int ImGuiTextBuffer_size(ImGuiTextBuffer* self);
|
||||
@@ -1194,14 +1206,14 @@ CIMGUI_API float* ImGuiStorage_GetFloatRef(ImGuiStorage* self,ImGuiID key,float
|
||||
CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self,ImGuiID key,void* default_val);
|
||||
CIMGUI_API void ImGuiStorage_SetAllInt(ImGuiStorage* self,int val);
|
||||
CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self);
|
||||
CIMGUI_API void ImGuiTextEditCallbackData_DeleteChars(ImGuiTextEditCallbackData* self,int pos,int bytes_count);
|
||||
CIMGUI_API void ImGuiTextEditCallbackData_InsertChars(ImGuiTextEditCallbackData* self,int pos,const char* text,const char* text_end);
|
||||
CIMGUI_API bool ImGuiTextEditCallbackData_HasSelection(ImGuiTextEditCallbackData* self);
|
||||
CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self,int pos,int bytes_count);
|
||||
CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end);
|
||||
CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self);
|
||||
CIMGUI_API void ImGuiPayload_Clear(ImGuiPayload* self);
|
||||
CIMGUI_API bool ImGuiPayload_IsDataType(ImGuiPayload* self,const char* type);
|
||||
CIMGUI_API bool ImGuiPayload_IsPreview(ImGuiPayload* self);
|
||||
CIMGUI_API bool ImGuiPayload_IsDelivery(ImGuiPayload* self);
|
||||
CIMGUI_API inline void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a);
|
||||
CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a);
|
||||
CIMGUI_API ImColor ImColor_HSV(ImColor* self,float h,float s,float v,float a);
|
||||
CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* self);
|
||||
CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* self,int items_count,float items_height);
|
||||
@@ -1211,8 +1223,8 @@ CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_PopClipRect(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_PushTextureID(ImDrawList* self,ImTextureID texture_id);
|
||||
CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self);
|
||||
CIMGUI_API inline ImVec2 ImDrawList_GetClipRectMin(ImDrawList* self);
|
||||
CIMGUI_API inline ImVec2 ImDrawList_GetClipRectMax(ImDrawList* self);
|
||||
CIMGUI_API ImVec2 ImDrawList_GetClipRectMin(ImDrawList* self);
|
||||
CIMGUI_API ImVec2 ImDrawList_GetClipRectMax(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col,float rounding,int rounding_corners_flags,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col,float rounding,int rounding_corners_flags);
|
||||
@@ -1231,11 +1243,11 @@ CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_tex
|
||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,const int num_points,ImU32 col,bool closed,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,const int num_points,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_AddBezierCurve(ImDrawList* self,const ImVec2 pos0,const ImVec2 cp0,const ImVec2 cp1,const ImVec2 pos1,ImU32 col,float thickness,int num_segments);
|
||||
CIMGUI_API inline void ImDrawList_PathClear(ImDrawList* self);
|
||||
CIMGUI_API inline void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos);
|
||||
CIMGUI_API inline void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos);
|
||||
CIMGUI_API inline void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col);
|
||||
CIMGUI_API inline void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness);
|
||||
CIMGUI_API void ImDrawList_PathClear(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos);
|
||||
CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos);
|
||||
CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness);
|
||||
CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2 centre,float radius,float a_min,float a_max,int num_segments);
|
||||
CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self,const ImVec2 centre,float radius,int a_min_of_12,int a_max_of_12);
|
||||
CIMGUI_API void ImDrawList_PathBezierCurveTo(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,int num_segments);
|
||||
@@ -1252,9 +1264,9 @@ CIMGUI_API void ImDrawList_PrimReserve(ImDrawList* self,int idx_count,int vtx_co
|
||||
CIMGUI_API void ImDrawList_PrimRect(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col);
|
||||
CIMGUI_API inline void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col);
|
||||
CIMGUI_API inline void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx);
|
||||
CIMGUI_API inline void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx);
|
||||
CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_UpdateClipRect(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_UpdateTextureID(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawData_Clear(ImDrawData* self);
|
||||
@@ -1309,6 +1321,50 @@ CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,
|
||||
CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size);
|
||||
CIMGUI_API void ImFont_AddGlyph(ImFont* self,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x);
|
||||
CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst);
|
||||
CIMGUI_API void igGetWindowPos_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetWindowPos_nonUDT2(void);
|
||||
CIMGUI_API void igGetWindowSize_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetWindowSize_nonUDT2(void);
|
||||
CIMGUI_API void igGetContentRegionMax_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetContentRegionMax_nonUDT2(void);
|
||||
CIMGUI_API void igGetContentRegionAvail_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetContentRegionAvail_nonUDT2(void);
|
||||
CIMGUI_API void igGetWindowContentRegionMin_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetWindowContentRegionMin_nonUDT2(void);
|
||||
CIMGUI_API void igGetWindowContentRegionMax_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetWindowContentRegionMax_nonUDT2(void);
|
||||
CIMGUI_API void igGetFontTexUvWhitePixel_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetFontTexUvWhitePixel_nonUDT2(void);
|
||||
CIMGUI_API void igGetCursorPos_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetCursorPos_nonUDT2(void);
|
||||
CIMGUI_API void igGetCursorStartPos_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetCursorStartPos_nonUDT2(void);
|
||||
CIMGUI_API void igGetCursorScreenPos_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetCursorScreenPos_nonUDT2(void);
|
||||
CIMGUI_API void igGetItemRectMin_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectMin_nonUDT2(void);
|
||||
CIMGUI_API void igGetItemRectMax_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectMax_nonUDT2(void);
|
||||
CIMGUI_API void igGetItemRectSize_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectSize_nonUDT2(void);
|
||||
CIMGUI_API void igCalcTextSize_nonUDT(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width);
|
||||
CIMGUI_API ImVec2_Simple igCalcTextSize_nonUDT2(const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width);
|
||||
CIMGUI_API void igColorConvertU32ToFloat4_nonUDT(ImVec4 *pOut,ImU32 in);
|
||||
CIMGUI_API ImVec4_Simple igColorConvertU32ToFloat4_nonUDT2(ImU32 in);
|
||||
CIMGUI_API void igGetMousePos_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetMousePos_nonUDT2(void);
|
||||
CIMGUI_API void igGetMousePosOnOpeningCurrentPopup_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetMousePosOnOpeningCurrentPopup_nonUDT2(void);
|
||||
CIMGUI_API void igGetMouseDragDelta_nonUDT(ImVec2 *pOut,int button,float lock_threshold);
|
||||
CIMGUI_API ImVec2_Simple igGetMouseDragDelta_nonUDT2(int button,float lock_threshold);
|
||||
CIMGUI_API void ImColor_HSV_nonUDT(ImColor* self,ImColor *pOut,float h,float s,float v,float a);
|
||||
CIMGUI_API ImColor_Simple ImColor_HSV_nonUDT2(ImColor* self,float h,float s,float v,float a);
|
||||
CIMGUI_API void ImDrawList_GetClipRectMin_nonUDT(ImDrawList* self,ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple ImDrawList_GetClipRectMin_nonUDT2(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_GetClipRectMax_nonUDT(ImDrawList* self,ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple ImDrawList_GetClipRectMax_nonUDT2(ImDrawList* self);
|
||||
CIMGUI_API void ImFont_CalcTextSizeA_nonUDT(ImFont* self,ImVec2 *pOut,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining);
|
||||
CIMGUI_API ImVec2_Simple ImFont_CalcTextSizeA_nonUDT2(ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining);
|
||||
|
||||
|
||||
/////////////////////////hand written functions
|
||||
@@ -1319,5 +1375,9 @@ CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const ch
|
||||
CIMGUI_API void ImFontConfig_DefaultConstructor(ImFontConfig *config);
|
||||
//for getting FLT_MAX in bindings
|
||||
CIMGUI_API float igGET_FLT_MAX();
|
||||
//not const args from & to *
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float *out_h,float *out_s,float *out_v);
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float *out_r,float *out_g,float *out_b);
|
||||
|
||||
|
||||
|
@@ -1,11 +1,12 @@
|
||||
|
||||
#include "../imgui/imgui.h"
|
||||
#include "./imgui/imgui.h"
|
||||
#include "cimgui.h"
|
||||
|
||||
#include "../imgui/imgui_internal.h"
|
||||
#include "./imgui/imgui_internal.h"
|
||||
|
||||
#include "auto_funcs.cpp"
|
||||
|
||||
|
||||
/////////////////////////////manual written functions
|
||||
CIMGUI_API void igLogText(CONST char *fmt, ...)
|
||||
{
|
||||
@@ -32,3 +33,11 @@ CIMGUI_API float igGET_FLT_MAX()
|
||||
{
|
||||
return FLT_MAX;
|
||||
}
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float *out_h,float *out_s,float *out_v)
|
||||
{
|
||||
ImGui::ColorConvertRGBtoHSV(r,g,b,*out_h,*out_s,*out_v);
|
||||
}
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float *out_r,float *out_g,float *out_b)
|
||||
{
|
||||
ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b);
|
||||
}
|
||||
|
@@ -29,11 +29,14 @@
|
||||
#ifdef _MSC_VER
|
||||
typedef unsigned __int64 ImU64;
|
||||
#else
|
||||
typedef unsigned long long ImU64;
|
||||
//typedef unsigned long long ImU64;
|
||||
#endif
|
||||
|
||||
//struct GLFWwindow;
|
||||
//struct SDL_Window;
|
||||
//UDT stuff
|
||||
typedef struct ImVec2_Simple { float x; float y; } ImVec2_Simple;
|
||||
typedef struct ImVec4_Simple { float x; float y; float z; float w;} ImVec4_Simple;
|
||||
typedef struct ImColor_Simple { ImVec4_Simple Value;} ImColor_Simple;
|
||||
|
||||
|
||||
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
#include "imgui_structs.h"
|
||||
@@ -41,6 +44,28 @@ typedef unsigned long long ImU64;
|
||||
struct GLFWwindow;
|
||||
struct SDL_Window;
|
||||
typedef union SDL_Event SDL_Event;
|
||||
inline ImVec2_Simple ImVec2ToSimple(ImVec2 vec)
|
||||
{
|
||||
ImVec2_Simple result;
|
||||
result.x = vec.x;
|
||||
result.y = vec.y;
|
||||
return result;
|
||||
}
|
||||
inline ImVec4_Simple ImVec4ToSimple(ImVec4 vec)
|
||||
{
|
||||
ImVec4_Simple result;
|
||||
result.x = vec.x;
|
||||
result.y = vec.y;
|
||||
result.z = vec.z;
|
||||
result.w = vec.w;
|
||||
return result;
|
||||
}
|
||||
inline ImColor_Simple ImColorToSimple(ImColor col)
|
||||
{
|
||||
ImColor_Simple result;
|
||||
result.Value = ImVec4ToSimple(col.Value);
|
||||
return result;
|
||||
}
|
||||
#endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
|
||||
#include "auto_funcs.h"
|
||||
@@ -53,5 +78,9 @@ CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const ch
|
||||
CIMGUI_API void ImFontConfig_DefaultConstructor(ImFontConfig *config);
|
||||
//for getting FLT_MAX in bindings
|
||||
CIMGUI_API float igGET_FLT_MAX();
|
||||
//not const args from & to *
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float *out_h,float *out_s,float *out_v);
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float *out_r,float *out_g,float *out_b);
|
||||
|
||||
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,8 +1,8 @@
|
||||
:: this script must be executed in this directory
|
||||
:: all the output goes to generated folder
|
||||
:: all the output goes to generator/output folder
|
||||
:: .cpp and .h files:
|
||||
:: cimgui.h and cimgui.cpp generated without preprocess
|
||||
:: cimgui_auto.h and cimgui_auto.cpp with gcc preprocess
|
||||
:: cimgui.h and cimgui.cpp with gcc preprocess
|
||||
:: cimgui_nopreprocess.h and cimgui_nopreprocess.cpp generated without preprocess
|
||||
:: cimgui_impl.h with implementation function cdefs
|
||||
:: lua and json files:
|
||||
:: definitions.lua for function definitions
|
||||
@@ -10,15 +10,12 @@
|
||||
:: impl_definitions.lua for implementation function definitions
|
||||
|
||||
:: set your PATH if necessary for LuaJIT or Lua5.1 or luajit with: (for example)
|
||||
set PATH=%PATH%;C:\luaGL;C:\mingw32\bin;
|
||||
|
||||
:: set PATH=%PATH%;C:\luaGL;C:\mingw32\bin;
|
||||
:: set PATH=%PATH%;C:\luaGL;C:\i686-7.2.0-release-posix-dwarf-rt_v5-rev1\mingw32\bin;
|
||||
:: set PATH=%PATH%;C:\luaGL\sources\luajit-master\luajit-master\bin\mingw32;C:\mingw32\bin;
|
||||
::process files
|
||||
:: arg[1..n] name of implementations to generate
|
||||
luajit.exe ./generator.lua glfw opengl3 opengl2 sdl
|
||||
|
||||
::copy cimgui.h and cimgui.cpp
|
||||
copy .\generated\cimgui_auto.h ..\cimgui_auto.h
|
||||
copy .\generated\cimgui_auto.cpp ..\cimgui_auto.cpp
|
||||
luajit ./generator.lua glfw opengl3 opengl2 sdl
|
||||
|
||||
::leave console open
|
||||
cmd /k
|
||||
|
@@ -2,6 +2,8 @@
|
||||
--script for auto_funcs.h and auto_funcs.cpp generation
|
||||
--expects Lua 5.1 or luajit
|
||||
--------------------------------------------------------------------------
|
||||
assert(_VERSION=='Lua 5.1',"Must use LuaJIT")
|
||||
assert(bit,"Must use LuaJIT")
|
||||
local script_args = {...}
|
||||
|
||||
--test gcc present
|
||||
@@ -31,6 +33,8 @@ for i=1,#script_args do table.insert(implementations,script_args[i]) end
|
||||
local cimgui_manuals = {
|
||||
igLogText = true,
|
||||
ImGuiTextBuffer_appendf = true,
|
||||
igColorConvertRGBtoHSV = true,
|
||||
igColorConvertHSVtoRGB = true
|
||||
}
|
||||
--------------------------------------------------------------------------
|
||||
--this table is a dictionary to force a naming of function overloading (instead of algorythmic generated)
|
||||
@@ -69,6 +73,12 @@ local cimgui_overloads = {
|
||||
["(ImGuiCol,const ImVec4)"] = "igPushStyleColor"
|
||||
}
|
||||
}
|
||||
|
||||
--------------------------header definitions
|
||||
local cimgui_header =
|
||||
[[//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
|
||||
//based on imgui.h file version XXX from Dear ImGui https://github.com/ocornut/imgui]]
|
||||
local gdefines = {} --for FLT_MAX and others
|
||||
--------------------------------------------------------------------------
|
||||
--helper functions
|
||||
--------------------------------------------------------------------------
|
||||
@@ -99,37 +109,77 @@ local function filelines(file)
|
||||
end
|
||||
--iterates lines from a gcc -E in a specific location
|
||||
local function location(file,locpathT)
|
||||
local location_re = '^# %d+ "([^"]*)"'
|
||||
local location_re = '^# (%d+) "([^"]*)"'
|
||||
local path_reT = {}
|
||||
for i,locpath in ipairs(locpathT) do
|
||||
table.insert(path_reT,'^(.*[\\/])('..locpath..')%.h$')
|
||||
end
|
||||
local in_location = false
|
||||
local which_location = ""
|
||||
local loc_num
|
||||
local loc_num_incr
|
||||
local lineold = ""
|
||||
local which_locationold,loc_num_realold
|
||||
local lastdumped = false
|
||||
local function location_it()
|
||||
repeat
|
||||
local line = file:read"*l"
|
||||
if not line then return nil end
|
||||
if not line then
|
||||
if not lastdumped then
|
||||
lastdumped = true
|
||||
return lineold, which_locationold,loc_num_realold
|
||||
else
|
||||
return nil
|
||||
end
|
||||
end
|
||||
if line:sub(1,1) == "#" then
|
||||
-- Is this a location pragma?
|
||||
local location_match = line:match(location_re)
|
||||
local loc_num_t,location_match = line:match(location_re)
|
||||
if location_match then
|
||||
in_location = false
|
||||
for i,path_re in ipairs(path_reT) do
|
||||
if location_match:match(path_re) then
|
||||
in_location = true;
|
||||
loc_num = loc_num_t
|
||||
loc_num_incr = 0
|
||||
which_location = locpathT[i]
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
elseif in_location then
|
||||
return line, which_location
|
||||
local loc_num_real = loc_num + loc_num_incr
|
||||
loc_num_incr = loc_num_incr + 1
|
||||
if loc_num_realold and loc_num_realold < loc_num_real then
|
||||
--old line complete
|
||||
local lineR,which_locationR,loc_num_realR = lineold, which_locationold,loc_num_realold
|
||||
lineold, which_locationold,loc_num_realold = line,which_location,loc_num_real
|
||||
return lineR,which_locationR,loc_num_realR
|
||||
else
|
||||
lineold=lineold..line
|
||||
which_locationold,loc_num_realold = which_location,loc_num_real
|
||||
--return line,loc_num_real, which_location
|
||||
end
|
||||
end
|
||||
until false
|
||||
end
|
||||
return location_it
|
||||
end
|
||||
local function copyfile(src,dst,blocksize)
|
||||
blocksize = blocksize or 1024*4
|
||||
print( "copyfile", src, dst)
|
||||
local srcf, err = io.open(src,"rb")
|
||||
if not srcf then error(err) end
|
||||
local dstf, err = io.open(dst,"wb")
|
||||
if not dstf then error(err) end
|
||||
while true do
|
||||
local data = srcf:read(blocksize)
|
||||
if not data then break end
|
||||
dstf:write(data)
|
||||
end
|
||||
srcf:close()
|
||||
dstf:close()
|
||||
end
|
||||
------serializeTable("anyname",table) gives a string that recreates the table with dofile(generated_string)
|
||||
local function serializeTable(name, value, saved)
|
||||
|
||||
@@ -171,7 +221,31 @@ local function serializeTable(name, value, saved)
|
||||
|
||||
return table.concat(string_table)
|
||||
end
|
||||
|
||||
--merge tables
|
||||
function mergeT(t1,t2)
|
||||
for k,v in pairs(t2) do
|
||||
t1[k] = v
|
||||
end
|
||||
return t1
|
||||
end
|
||||
function strsplit(str, pat)
|
||||
local t = {}
|
||||
local fpat = "(.-)" .. pat
|
||||
local last_end = 1
|
||||
local s, e, cap = str:find(fpat, 1)
|
||||
while s do
|
||||
table.insert(t,cap)
|
||||
last_end = e+1
|
||||
s, e, cap = str:find(fpat, last_end)
|
||||
end
|
||||
if last_end <= #str then
|
||||
cap = str:sub(last_end)
|
||||
table.insert(t, cap)
|
||||
elseif str:sub(-1)==pat then
|
||||
table.insert(t, "")
|
||||
end
|
||||
return t
|
||||
end
|
||||
local function save_data(filename,...)
|
||||
local file = io.open(filename,"w")
|
||||
for i=1, select('#', ...) do
|
||||
@@ -212,7 +286,7 @@ end
|
||||
|
||||
|
||||
local function struct_parser()
|
||||
local function_re = "(%a*%w+%b())" --"(%a*%w+%s+%w+%b())"
|
||||
local function_re = "(%a*%w+%s*%b())" --"(%a*%w+%b())" --"(%a*%w+%s+%w+%b())"
|
||||
local function_closing_re = "}"
|
||||
local function_closed_re = "[;}]$"
|
||||
local operator_re = "operator.-%b()"
|
||||
@@ -256,9 +330,9 @@ local function struct_parser()
|
||||
--nothing
|
||||
else
|
||||
local linea = line:gsub("%S+",{class="struct",mutable=""})
|
||||
linea = linea:gsub("(%b<>)","/%*%1%*/") --comment template parameters
|
||||
linea = linea:gsub("(%b<>)","/*%1*/") --comment template parameters
|
||||
table.insert(structcdefs,linea..comment)
|
||||
--]]
|
||||
|
||||
end
|
||||
return
|
||||
end
|
||||
@@ -341,7 +415,8 @@ end
|
||||
|
||||
local function func_parser()
|
||||
local function_closing_re = "}"
|
||||
local function_re = "(%a*%w+%b())" --"(%a*%w+%s+%w+%b())"
|
||||
--local function_re = "(%a*%w+%b())" --"(%a*%w+%s+%w+%b())"
|
||||
local function_re = "(%a*[%w%[%]]+%s*%b())"
|
||||
local function_closed_re = "[;}]$"
|
||||
local namespace_re = "namespace ([^%s]+)"
|
||||
local namespace_closing_re = "^}"
|
||||
@@ -351,6 +426,7 @@ local function func_parser()
|
||||
local functype_re = "^%s*[%w%s]+(%(%*)[%w_]+(%)%([^%(%)]*%))"
|
||||
|
||||
local in_function = false
|
||||
local line_in_function
|
||||
local in_namespace = false
|
||||
local cdefs = {}
|
||||
local structnames = {}
|
||||
@@ -367,9 +443,10 @@ local function func_parser()
|
||||
FP.ImVector_templates = ImVector_templates
|
||||
|
||||
function FP.insert(line,comment,locat)
|
||||
line = clean_spaces(line)
|
||||
local lineorig = line
|
||||
if line:match"template" then return end
|
||||
line = line:gsub("%S+",{class="struct",mutable=""}) --class -> struct
|
||||
line = line:gsub("%S+",{class="struct",mutable="",inline=""}) --class -> struct
|
||||
line = clean_spaces(line)
|
||||
|
||||
if in_function then
|
||||
if line:match(function_closing_re) then
|
||||
@@ -380,6 +457,7 @@ local function func_parser()
|
||||
if line:match(function_re) and not line:match("typedef.*%b().*%b().*") then
|
||||
if not line:match(function_closed_re) then
|
||||
in_function = true
|
||||
line_in_function = lineorig
|
||||
end
|
||||
end
|
||||
if line:match(namespace_re) then
|
||||
@@ -424,7 +502,14 @@ local function func_parser()
|
||||
|
||||
local argscsinpars = args:gsub("(=[^,%(%)]*)(%b())","%1")
|
||||
argscsinpars = argscsinpars:gsub("(=[^,%(%)]*)([,%)])","%2")
|
||||
argscsinpars = argscsinpars:gsub("&","")
|
||||
-- if argscsinpars:match("&") then
|
||||
-- for arg in argscsinpars:gmatch("[%(,]*([^,%(%)]+)[%),]") do
|
||||
-- if arg:match("&") and not arg:match("const") then
|
||||
-- print(funcname,argscsinpars)
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
--argscsinpars = argscsinpars:gsub("&","")
|
||||
|
||||
local template = argscsinpars:match("ImVector<([%w_]+)>")
|
||||
if template then
|
||||
@@ -433,6 +518,56 @@ local function func_parser()
|
||||
|
||||
argscsinpars = argscsinpars:gsub("<([%w_]+)>","_%1") --ImVector
|
||||
|
||||
local argsArr = {}
|
||||
local functype_re = "^%s*[%w%s%*]+%(%*[%w_]+%)%([^%(%)]*%)"
|
||||
local functype_reex = "^(%s*[%w%s%*]+)%(%*([%w_]+)%)(%([^%(%)]*%))"
|
||||
local functype_arg_rest = "^(%s*[%w%s%*]+%(%*[%w_]+%)%([^%(%)]*%)),*(.*)"
|
||||
local rest = argscsinpars:sub(2,-2) --strip ()
|
||||
|
||||
while true do
|
||||
--local tt = strsplit(rest,",")
|
||||
--for ii,arg in ipairs(tt) do
|
||||
--for arg in argscsinpars:gmatch("[%(,]*([^,%(%)]+)[%),]") do
|
||||
local type,name,retf,sigf
|
||||
local arg,restt = rest:match(functype_arg_rest)
|
||||
if arg then
|
||||
local t1,namef,t2 = arg:match(functype_reex)
|
||||
type=t1.."(*)"..t2;name=namef
|
||||
retf = t1
|
||||
sigf = t2
|
||||
rest = restt
|
||||
else
|
||||
arg,restt = rest:match(",*([^,%(%)]+),*(.*)")
|
||||
if not arg then break end
|
||||
rest = restt
|
||||
if arg:match("&") and arg:match("const") then
|
||||
arg = arg:gsub("&","")
|
||||
end
|
||||
if arg:match("%.%.%.") then
|
||||
type="...";name="..."
|
||||
else
|
||||
type,name = arg:match("(.+)%s([^%s]+)")
|
||||
end
|
||||
if not type or not name then
|
||||
print("failure arg detection",funcname,type,name,argscsinpars,arg)
|
||||
print(lineorig)
|
||||
print(line_in_function)
|
||||
else
|
||||
--float name[2] to float[2] name
|
||||
local siz = name:match("(%[%d*%])")
|
||||
if siz then
|
||||
type = type..siz
|
||||
name = name:gsub("(%[%d*%])","")
|
||||
end
|
||||
end
|
||||
end
|
||||
table.insert(argsArr,{type=type,name=name,ret=retf,signature=sigf})
|
||||
if arg:match("&") and not arg:match("const") then
|
||||
print("reference to no const arg in",funcname,argscsinpars)
|
||||
end
|
||||
end
|
||||
argscsinpars = argscsinpars:gsub("&","")
|
||||
|
||||
local signature = argscsinpars:gsub("([%w%s%*_]+)%s[%w_]+%s*([,%)])","%1%2")
|
||||
signature = signature:gsub("%s*([,%)])","%1") --space before , and )
|
||||
signature = signature:gsub(",%s*",",")--space after ,
|
||||
@@ -460,7 +595,7 @@ local function func_parser()
|
||||
defT.defaults = {}
|
||||
--for k,def in args:gmatch("([%w%s%*_]+)=([%w_%(%)%s,%*]+)[,%)]") do
|
||||
--for k,def in args:gmatch("([%w_]+)=([%w_%(%)%s,%*%.%-]+)[,%)]") do
|
||||
for k,def in args:gmatch('([%w_]+)=([%w_%(%)%s,%*%.%-%%"]+)[,%)]') do
|
||||
for k,def in args:gmatch('([%w_]+)=([%w_%(%)%s,%*%.%-%+%%"]+)[,%)]') do
|
||||
defT.defaults[k]=def
|
||||
end
|
||||
defT.cimguiname = cimguiname
|
||||
@@ -473,9 +608,16 @@ local function func_parser()
|
||||
defT.isvararg = signature:match("%.%.%.%)$")
|
||||
defT.location = locat
|
||||
defT.comment = comment
|
||||
defT.argsT = argsArr
|
||||
if get_manuals(defT) then
|
||||
defT.manual = true
|
||||
end
|
||||
if ret then
|
||||
defT.ret = clean_spaces(ret:gsub("&","*"))
|
||||
defT.retref = ret:match("&")
|
||||
-- if defT.ret=="ImVec2" or defT.ret=="ImVec4" or defT.ret=="ImColor" then
|
||||
-- defT.ret = defT.ret.."_Simple"
|
||||
-- end
|
||||
end
|
||||
defsT[cimguiname][signature] = defT
|
||||
end
|
||||
@@ -525,6 +667,66 @@ local function func_parser()
|
||||
return FP
|
||||
end
|
||||
|
||||
local function ADDnonUDT(FP)
|
||||
--for cimguiname,defs in pairs(defsT) do
|
||||
--for i,defT in ipairs(defs) do
|
||||
local defsT = FP.defsT
|
||||
local newcdefs = {}
|
||||
for numcdef,t in ipairs(FP.cdefs) do
|
||||
if t.cimguiname then
|
||||
local cimf = defsT[t.cimguiname]
|
||||
local defT = cimf[t.signature]
|
||||
--if UDT return generate nonUDT version
|
||||
if defT.ret=="ImVec2" or defT.ret=="ImVec4" or defT.ret=="ImColor" then
|
||||
--passing as a pointer arg
|
||||
local defT2 = {}
|
||||
--first strings
|
||||
for k,v in pairs(defT) do
|
||||
defT2[k] = v
|
||||
end
|
||||
--then argsT table
|
||||
defT2.argsT = {{type=defT.ret.."*",name="pOut"}}
|
||||
for k,v in ipairs(defT.argsT) do
|
||||
table.insert(defT2.argsT,{type=v.type,name=v.name})
|
||||
end
|
||||
local comma = (#defT.argsT > 0) and "," or ""
|
||||
defT2.args = "("..defT.ret.." *pOut"..comma..defT.args:sub(2)
|
||||
defT2.ret = "void"
|
||||
defT2.ov_cimguiname = (defT2.ov_cimguiname or defT2.cimguiname).."_nonUDT"
|
||||
defT2.nonUDT = 1
|
||||
defT2.retref = nil
|
||||
defsT[t.cimguiname][#defsT[t.cimguiname] + 1] = defT2
|
||||
defsT[t.cimguiname][t.signature.."nonUDT"] = defT2
|
||||
table.insert(newcdefs,{stname=t.stname,funcname=t.funcname,args=args,argsc=argscsinpars,signature=t.signature.."nonUDT",cimguiname=t.cimguiname,call_args=call_args,ret =ret,comment=comment})
|
||||
--converting to Simple type----------------------------------------------------
|
||||
local defT3 = {}
|
||||
--first strings
|
||||
for k,v in pairs(defT) do
|
||||
defT3[k] = v
|
||||
end
|
||||
--then argsT table
|
||||
defT3.argsT = {}
|
||||
for k,v in ipairs(defT.argsT) do
|
||||
table.insert(defT3.argsT,{type=v.type,name=v.name})
|
||||
end
|
||||
local comma = (#defT.argsT > 0) and "," or ""
|
||||
--defT3.args = "("..defT.ret.." *pOut"..comma..defT.args:sub(2)
|
||||
defT3.ret = defT.ret.."_Simple"
|
||||
defT3.retorig = defT.ret
|
||||
defT3.ov_cimguiname = (defT3.ov_cimguiname or defT3.cimguiname).."_nonUDT2"
|
||||
defT3.nonUDT = 2
|
||||
defT3.retref = nil
|
||||
defsT[t.cimguiname][#defsT[t.cimguiname] + 1] = defT3
|
||||
defsT[t.cimguiname][t.signature.."nonUDT2"] = defT3
|
||||
table.insert(newcdefs,{stname=t.stname,funcname=t.funcname,args=args,argsc=argscsinpars,signature=t.signature.."nonUDT2",cimguiname=t.cimguiname,call_args=call_args,ret =ret,comment=comment})
|
||||
end
|
||||
end
|
||||
end
|
||||
for i,v in ipairs(newcdefs) do
|
||||
table.insert(FP.cdefs,v)
|
||||
end
|
||||
end
|
||||
|
||||
local function gen_structs_and_enums_table(cdefs)
|
||||
local function_closing_re = "}"
|
||||
local namespace_re = "namespace"
|
||||
@@ -538,6 +740,7 @@ local function gen_structs_and_enums_table(cdefs)
|
||||
local enumnames = {}
|
||||
local enums_re = "^%s*enum%s+([^%s;]+)"
|
||||
local outtab = {structs={},enums={}}
|
||||
local typedefs_dict = {}
|
||||
|
||||
for i,line in ipairs(cdefs) do
|
||||
repeat -- simulating continue with break
|
||||
@@ -545,7 +748,23 @@ local function gen_structs_and_enums_table(cdefs)
|
||||
local linecom = line
|
||||
local line, comment = split_comment(line)
|
||||
line = clean_spaces(line)
|
||||
|
||||
--typedefs dictionary
|
||||
if line:match("typedef") then
|
||||
local value,key = line:match("typedef%s+(.+)%s+([%w_]+);")
|
||||
if key and value then
|
||||
typedefs_dict[key] = value
|
||||
else --try function typedef
|
||||
local key = line:match("%(%*([%w_]+)%)%([^%(%)]*%)")
|
||||
if key then
|
||||
local linet = line
|
||||
linet = linet:gsub("typedef ","")
|
||||
linet = linet:gsub("%(%*("..key..")%)","(*)")
|
||||
typedefs_dict[key] = linet
|
||||
else
|
||||
print(key,value,line)
|
||||
end
|
||||
end
|
||||
end
|
||||
if line:match(namespace_re) then
|
||||
in_namespace = true
|
||||
end
|
||||
@@ -583,9 +802,10 @@ local function gen_structs_and_enums_table(cdefs)
|
||||
local name,value = line:match("%s*([%w_]+)%s*=%s*([^,]+)")
|
||||
if value then
|
||||
table.insert(outtab.enums[enumnames[#enumnames]],{name=name,value=value})
|
||||
else
|
||||
else --increment by one
|
||||
local name = line:match("%s*([^,]+)")
|
||||
local value = #outtab.enums[enumnames[#enumnames]]
|
||||
local enum_table = outtab.enums[enumnames[#enumnames]]
|
||||
local value = enum_table[#enum_table] and (enum_table[#enum_table].value + 1) or 0
|
||||
table.insert(outtab.enums[enumnames[#enumnames]],{name=name,value=value})
|
||||
end
|
||||
end
|
||||
@@ -616,11 +836,55 @@ local function gen_structs_and_enums_table(cdefs)
|
||||
end
|
||||
until true
|
||||
end
|
||||
return outtab
|
||||
--calcule size of name[16+1] [xxx_COUNT]
|
||||
local allenums = {}
|
||||
--first calc_value in enums
|
||||
for enumname,enum in pairs(outtab.enums) do
|
||||
for i,t in ipairs(enum) do
|
||||
local val = tonumber(t.value)
|
||||
if val then
|
||||
t.calc_value = val
|
||||
elseif t.value:match"<<" then
|
||||
local v1,v2 = t.value:match("(%d+)%s*<<%s*(%d+)")
|
||||
t.calc_value = bit.lshift(v1,v2)
|
||||
elseif t.value:match"|" then --or several enums
|
||||
local ens = t.value
|
||||
ens = strsplit(ens,"|")
|
||||
for i,v in ipairs(ens) do ens[i] = allenums[clean_spaces(v)] end
|
||||
t.calc_value = bit.bor(unpack(ens))
|
||||
elseif allenums[t.value] then
|
||||
t.calc_value = allenums[t.value]
|
||||
else
|
||||
print("Error unknown value in enums",t.value)
|
||||
end
|
||||
assert(t.calc_value)
|
||||
allenums[t.name] = t.calc_value
|
||||
end
|
||||
end
|
||||
--then calcsize in struct members
|
||||
for stname,struct in pairs(outtab.structs) do
|
||||
for i,t in ipairs(struct) do
|
||||
local val = t.name:match"%[([^%[%]]+)%]"
|
||||
if val then
|
||||
if tonumber(val) then
|
||||
t.size = tonumber(val)
|
||||
elseif allenums[val] then
|
||||
t.size = allenums[val]
|
||||
elseif val:match"%+" then
|
||||
local s1,s2 = val:match("(%d+)%s*%+%s*(%d+)")
|
||||
t.size = s1+s2
|
||||
else
|
||||
print("Error size is",val)
|
||||
end
|
||||
assert(t.size)
|
||||
end
|
||||
end
|
||||
end
|
||||
return outtab, typedefs_dict
|
||||
end
|
||||
|
||||
|
||||
local function gen_structs_and_enums(cdefs,addextra)
|
||||
local function gen_structs_and_enums(cdefs)
|
||||
local function_closing_re = "}"
|
||||
local namespace_re = "namespace"
|
||||
local in_namespace = false
|
||||
@@ -631,13 +895,12 @@ local function gen_structs_and_enums(cdefs,addextra)
|
||||
local structnames = {}
|
||||
local innerstructs = {}
|
||||
local typedefs_table = {}
|
||||
local typedefs_dict = {}
|
||||
|
||||
local outtab = {}
|
||||
-- Output the file
|
||||
--table.insert(outtab,"/////////////// BEGIN AUTOGENERATED SEGMENT\n")
|
||||
if addextra then
|
||||
table.insert(outtab,[[typedef unsigned short ImDrawIdx;]])
|
||||
table.insert(outtab,[[typedef void* ImTextureID;]])
|
||||
end
|
||||
|
||||
for i,line in ipairs(cdefs) do
|
||||
repeat -- simulating continue with break
|
||||
-- separate comments from code and try to add them with same tab
|
||||
@@ -646,7 +909,7 @@ local function gen_structs_and_enums(cdefs,addextra)
|
||||
local desired_linelen = (linelen==0) and 0 or math.max(math.ceil(linelen/10)*10,40)
|
||||
local spaces_to_add = 0 --desired_linelen - linelen
|
||||
local linecom = line..string.rep(" ",spaces_to_add)..comment
|
||||
|
||||
|
||||
if line:match(namespace_re) then
|
||||
in_namespace = true
|
||||
end
|
||||
@@ -659,6 +922,7 @@ local function gen_structs_and_enums(cdefs,addextra)
|
||||
end
|
||||
end
|
||||
|
||||
-- ImVector special treatment
|
||||
if structnames[#structnames] == "ImVector" then
|
||||
if line:match(struct_closing_re) then
|
||||
table.insert(outtab,[[struct ImVector
|
||||
@@ -692,6 +956,7 @@ typedef struct ImVector ImVector;]])
|
||||
local struct_closed_name = line:match(struct_closed_re)
|
||||
if struct_closed_name then
|
||||
table.insert(typedefs_table,"typedef struct "..struct_closed_name.." "..struct_closed_name..";\n")
|
||||
typedefs_dict[struct_closed_name] = "struct "..struct_closed_name
|
||||
end
|
||||
end
|
||||
|
||||
@@ -707,12 +972,14 @@ typedef struct ImVector ImVector;]])
|
||||
local structname = structnames[#structnames]
|
||||
--st[#st + 1] = string.format("typedef struct %s %s;\n",structname,structname)
|
||||
table.insert(typedefs_table,string.format("typedef struct %s %s;\n",structname,structname))
|
||||
typedefs_dict[structname] = "struct "..structname
|
||||
structnames[#structnames] = nil
|
||||
end
|
||||
elseif line:match(struct_closing_re) and not line:match(struct_op_close_re) then
|
||||
local structname = structnames[#structnames]
|
||||
--table.insert(outtab,"typedef struct "..structname.." "..structname..";\n")
|
||||
table.insert(typedefs_table,"typedef struct "..structname.." "..structname..";\n")
|
||||
typedefs_dict[structname] = "struct "..structname
|
||||
structnames[#structnames] = nil
|
||||
end
|
||||
end
|
||||
@@ -727,12 +994,16 @@ typedef struct ImVector ImVector;]])
|
||||
end
|
||||
|
||||
--table.insert(outtab,"//////////////// END AUTOGENERATED SEGMENT \n")
|
||||
local uniques = {}
|
||||
for i,l in ipairs(typedefs_table) do
|
||||
table.insert(outtab,2,l)
|
||||
if not uniques[l] then
|
||||
uniques[l] = true
|
||||
table.insert(outtab,2,l)
|
||||
end
|
||||
end
|
||||
local cstructsstr = table.concat(outtab)
|
||||
cstructsstr = cstructsstr:gsub("\n+","\n") --several empty lines to one empty line
|
||||
return cstructsstr
|
||||
return cstructsstr, typedefs_dict
|
||||
end
|
||||
|
||||
local function func_header_impl_generate(FP)
|
||||
@@ -782,10 +1053,11 @@ local function func_header_generate(FP)
|
||||
local manual = get_manuals(def)
|
||||
if not manual and def.ret then --not constructor
|
||||
local addcoment = def.comment or ""
|
||||
local empty = def.args:match("^%(%)") --no args
|
||||
if def.stname == "ImGui" or def.stname == "" then --ImGui namespace or top level
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..(def.ov_cimguiname or def.cimguiname)..def.args..";"..addcoment.."\n")
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..(def.ov_cimguiname or def.cimguiname)..(empty and "(void)" or def.args)..";"..addcoment.."\n")
|
||||
else
|
||||
local empty = def.args:match("^%(%)") --no args
|
||||
|
||||
--local imgui_stname = embeded_structs[def.stname] or def.stname
|
||||
local imgui_stname = def.stname
|
||||
local args = def.args:gsub("^%(","("..imgui_stname.."* self"..(empty and "" or ","))
|
||||
@@ -825,10 +1097,31 @@ local function func_implementation(FP)
|
||||
table.insert(outtab,"{\n")
|
||||
table.insert(outtab," va_list args;\n")
|
||||
table.insert(outtab," va_start(args, fmt);\n")
|
||||
table.insert(outtab," ImGui::"..def.funcname.."V"..call_args..";\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," "..def.ret.." ret = ImGui::"..def.funcname.."V"..call_args..";\n")
|
||||
else
|
||||
table.insert(outtab," ImGui::"..def.funcname.."V"..call_args..";\n")
|
||||
end
|
||||
table.insert(outtab," va_end(args);\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," return ret;\n")
|
||||
end
|
||||
--cppfile:write(" return ImGui::",def.funcname,def.call_args,";\n")
|
||||
table.insert(outtab,"}\n")
|
||||
elseif def.nonUDT then
|
||||
if def.nonUDT == 1 then
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..(def.ov_cimguiname or def.cimguiname)..def.args.."\n")
|
||||
table.insert(outtab,"{\n")
|
||||
table.insert(outtab," *pOut = ImGui::"..def.funcname..def.call_args..";\n")
|
||||
table.insert(outtab,"}\n")
|
||||
else --nonUDT==2
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..(def.ov_cimguiname or def.cimguiname)..def.args.."\n")
|
||||
table.insert(outtab,"{\n")
|
||||
table.insert(outtab," "..def.retorig.." ret = ImGui::"..def.funcname..def.call_args..";\n")
|
||||
table.insert(outtab," "..def.ret.." ret2 = "..def.retorig.."ToSimple(ret);\n")
|
||||
table.insert(outtab," return ret2;\n")
|
||||
table.insert(outtab,"}\n")
|
||||
end
|
||||
else
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..(def.ov_cimguiname or def.cimguiname)..def.args.."\n")
|
||||
table.insert(outtab,"{\n")
|
||||
@@ -846,10 +1139,31 @@ local function func_implementation(FP)
|
||||
table.insert(outtab,"{\n")
|
||||
table.insert(outtab," va_list args;\n")
|
||||
table.insert(outtab," va_start(args, fmt);\n")
|
||||
table.insert(outtab," self->"..def.funcname.."V"..call_args..";\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," "..def.ret.." ret = self->"..def.funcname.."V"..call_args..";\n")
|
||||
else
|
||||
table.insert(outtab," self->"..def.funcname.."V"..call_args..";\n")
|
||||
end
|
||||
table.insert(outtab," va_end(args);\n")
|
||||
if def.ret~="void" then
|
||||
table.insert(outtab," return ret;\n")
|
||||
end
|
||||
--cppfile:write(" return self->",def.funcname,def.call_args,";\n")
|
||||
table.insert(outtab,"}\n")
|
||||
elseif def.nonUDT then
|
||||
if def.nonUDT == 1 then
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..(def.ov_cimguiname or def.cimguiname)..args.."\n")
|
||||
table.insert(outtab,"{\n")
|
||||
table.insert(outtab," *pOut = self->"..def.funcname..def.call_args..";\n")
|
||||
table.insert(outtab,"}\n")
|
||||
else --nonUDT==2
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..(def.ov_cimguiname or def.cimguiname)..args.."\n")
|
||||
table.insert(outtab,"{\n")
|
||||
table.insert(outtab," "..def.retorig.." ret = self->"..def.funcname..def.call_args..";\n")
|
||||
table.insert(outtab," "..def.ret.." ret2 = "..def.retorig.."ToSimple(ret);\n")
|
||||
table.insert(outtab," return ret2;\n")
|
||||
table.insert(outtab,"}\n")
|
||||
end
|
||||
else
|
||||
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..(def.ov_cimguiname or def.cimguiname)..args.."\n")
|
||||
table.insert(outtab,"{\n")
|
||||
@@ -863,17 +1177,93 @@ local function func_implementation(FP)
|
||||
--cppfile:close()
|
||||
return table.concat(outtab)
|
||||
end
|
||||
--only basic ending
|
||||
local c_types = {
|
||||
["char"]=true,
|
||||
["int"]=true,
|
||||
["float"]=true,
|
||||
["double"]=true,
|
||||
["short"]=true,
|
||||
["long"]=true,
|
||||
["signed"]=true,
|
||||
["unsigned"]=true,
|
||||
["size_t"]=true,
|
||||
["ptrdiff_t"]=true,
|
||||
}
|
||||
local function check_arg_detection(fdefs,typedefs)
|
||||
print"-----------------check arg detection---------------------------"
|
||||
for k,defT in pairs(fdefs) do
|
||||
for i,def in ipairs(defT) do
|
||||
for j,arg in ipairs(def.argsT) do
|
||||
--check name is not type, which happens in declaration without name
|
||||
if arg.name=="*" or not arg.type or not arg.name or c_types[arg.name] or typedefs[arg.name] then
|
||||
print("bad argument name",arg.name, "in",def.funcname,def.args)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
print"-----------------end check arg detection-----------------------"
|
||||
end
|
||||
local function get_defines(t)
|
||||
local pipe,err = io.popen([[gcc -E -dM -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS -DIMGUI_API="" -DIMGUI_IMPL_API="" ../imgui/imgui.h]],"r")
|
||||
local defines = {}
|
||||
while true do
|
||||
local line = pipe:read"*l"
|
||||
if not line then break end
|
||||
local key,value = line:match([[#define%s+(%S+)%s+(.+)]])
|
||||
if not key or not value then
|
||||
--print(line)
|
||||
else
|
||||
defines[key]=value
|
||||
end
|
||||
end
|
||||
pipe:close()
|
||||
--require"anima.utils"
|
||||
--prtable(defines)
|
||||
--FLT_MAX
|
||||
local ret = {}
|
||||
for i,v in ipairs(t) do
|
||||
local aa = defines[v]
|
||||
while true do
|
||||
local tmp = defines[aa]
|
||||
if not tmp then
|
||||
break
|
||||
else
|
||||
aa = tmp
|
||||
end
|
||||
end
|
||||
ret[v] = aa
|
||||
end
|
||||
return ret
|
||||
end
|
||||
--subtitution of FLT_MAX value for FLT_MAX
|
||||
local function set_defines(fdefs)
|
||||
for k,defT in pairs(fdefs) do
|
||||
for i,def in ipairs(defT) do
|
||||
for name,default in pairs(def.defaults) do
|
||||
if default == gdefines.FLT_MAX then
|
||||
def.defaults[name] = "FLT_MAX"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
--generate cimgui.cpp cimgui.h and auto versions depending on postfix
|
||||
local function cimgui_generation(postfix,STP,FP)
|
||||
--merge it in cimgui_template.h to cimgui.h
|
||||
local hfile = io.open("./cimgui_template.h","r")
|
||||
local hstrfile = hfile:read"*a"
|
||||
hfile:close()
|
||||
local cstructsstr = gen_structs_and_enums(STP.lines,postfix=="")
|
||||
local cstructsstr,typedefs_dict = gen_structs_and_enums(STP.lines)
|
||||
--for not gcc parsing
|
||||
if postfix == "_nopreprocess" then
|
||||
cstructsstr = "typedef unsigned short ImDrawIdx;\ntypedef void* ImTextureID;\n"..cstructsstr
|
||||
end
|
||||
|
||||
hstrfile = hstrfile:gsub([[#include "imgui_structs%.h"]],cstructsstr)
|
||||
local cfuncsstr = func_header_generate(FP)
|
||||
hstrfile = hstrfile:gsub([[#include "auto_funcs%.h"]],cfuncsstr)
|
||||
save_data("./generated/cimgui"..postfix..".h",hstrfile)
|
||||
save_data("./output/cimgui"..postfix..".h",cimgui_header,hstrfile)
|
||||
|
||||
|
||||
--merge it in cimgui_template.cpp to cimgui.cpp
|
||||
@@ -883,12 +1273,33 @@ local function cimgui_generation(postfix,STP,FP)
|
||||
hfile:close()
|
||||
hstrfile = hstrfile:gsub([[#include "auto_funcs%.cpp"]],cimplem)
|
||||
hstrfile = hstrfile:gsub([[#include "cimgui%.h"]],[[#include "cimgui]]..postfix..[[.h"]])
|
||||
save_data("./generated/cimgui"..postfix..".cpp",hstrfile)
|
||||
save_data("./output/cimgui"..postfix..".cpp",cimgui_header,hstrfile)
|
||||
return typedefs_dict
|
||||
end
|
||||
--------------------------------------------------------
|
||||
-----------------------------do it----------------------
|
||||
--------------------------------------------------------
|
||||
--get imgui.h version--------------------------
|
||||
local pipe,err = io.open("../imgui/imgui.h","r")
|
||||
if not pipe then
|
||||
error("could not open file:"..err)
|
||||
end
|
||||
local imgui_version
|
||||
while true do
|
||||
local line = pipe:read"*l"
|
||||
imgui_version = line:match([[#define%s+IMGUI_VERSION%s+(".+")]])
|
||||
if imgui_version then break end
|
||||
end
|
||||
pipe:close()
|
||||
cimgui_header = cimgui_header:gsub("XXX",imgui_version)
|
||||
print("IMGUI_VERSION",imgui_version)
|
||||
--get some defines----------------------------
|
||||
if HAVE_GCC then
|
||||
gdefines = get_defines{"IMGUI_VERSION","FLT_MAX"}
|
||||
end
|
||||
--first without gcc
|
||||
---[[
|
||||
print"------------------generation without precompiler------------------------"
|
||||
local pipe,err = io.open("../imgui/imgui.h","r")
|
||||
if not pipe then
|
||||
error("could not open file:"..err)
|
||||
@@ -904,9 +1315,12 @@ for line in filelines(pipe) do
|
||||
end
|
||||
pipe:close()
|
||||
FP:compute_overloads()
|
||||
cimgui_generation("",STP,FP)
|
||||
|
||||
cimgui_generation("_nopreprocess",STP,FP)
|
||||
--]]
|
||||
--then gcc
|
||||
print"------------------generation with precompiler------------------------"
|
||||
local pFP,pSTP,typedefs_dict2
|
||||
|
||||
if HAVE_GCC then
|
||||
local pipe,err = io.popen([[gcc -E -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS -DIMGUI_API="" -DIMGUI_IMPL_API="" ../imgui/imgui.h]],"r")
|
||||
|
||||
@@ -914,28 +1328,32 @@ if not pipe then
|
||||
error("could not execute gcc "..err)
|
||||
end
|
||||
|
||||
STP = struct_parser() --overwrite
|
||||
FP = func_parser() --overwrite
|
||||
pSTP = struct_parser() --overwrite
|
||||
pFP = func_parser() --overwrite
|
||||
|
||||
for line in location(pipe,{"imgui"}) do
|
||||
local line, comment = split_comment(line)
|
||||
STP.insert(line,comment)
|
||||
FP.insert(line,comment)
|
||||
pSTP.insert(line,comment)
|
||||
pFP.insert(line,comment)
|
||||
end
|
||||
pipe:close()
|
||||
local ovstr = FP:compute_overloads()
|
||||
save_data("./generated/overloads.txt",ovstr)
|
||||
cimgui_generation("_auto",STP,FP)
|
||||
|
||||
local ovstr = pFP:compute_overloads()
|
||||
ADDnonUDT(pFP)
|
||||
save_data("./output/overloads.txt",ovstr)
|
||||
typedefs_dict2 = cimgui_generation("",pSTP,pFP)
|
||||
--check arg detection failure if no name in function declaration
|
||||
check_arg_detection(pFP.defsT,typedefs_dict2)
|
||||
end
|
||||
|
||||
----------save fundefs in definitions.lua for using in bindings
|
||||
save_data("./generated/definitions.lua",serializeTable("defs",FP.defsT),"\nreturn defs")
|
||||
set_defines(pFP.defsT)
|
||||
save_data("./output/definitions.lua",serializeTable("defs",pFP.defsT),"\nreturn defs")
|
||||
|
||||
----------save struct and enums lua table in structs_and_enums.lua for using in bindings
|
||||
local structs_and_enums_table = gen_structs_and_enums_table(STP.lines)
|
||||
save_data("./generated/structs_and_enums.lua",serializeTable("defs",structs_and_enums_table),"\nreturn defs")
|
||||
|
||||
local structs_and_enums_table,typedefs_dict = gen_structs_and_enums_table(pSTP.lines)
|
||||
save_data("./output/structs_and_enums.lua",serializeTable("defs",structs_and_enums_table),"\nreturn defs")
|
||||
typedefs_dict = mergeT(typedefs_dict,typedefs_dict2)
|
||||
save_data("./output/typedefs_dict.lua",serializeTable("defs",typedefs_dict),"\nreturn defs")
|
||||
--=================================Now implementations
|
||||
|
||||
local iFP,iSTP
|
||||
@@ -971,10 +1389,10 @@ if #implementations > 0 then
|
||||
-- save ./cimgui_impl.h
|
||||
local cfuncsstr = func_header_impl_generate(iFP)
|
||||
local cstructstr = gen_structs_and_enums(iSTP.lines)
|
||||
save_data("./generated/cimgui_impl.h",cstructstr,cfuncsstr)
|
||||
save_data("./output/cimgui_impl.h",cstructstr,cfuncsstr)
|
||||
|
||||
----------save fundefs in impl_definitions.lua for using in bindings
|
||||
save_data("./generated/impl_definitions.lua",serializeTable("defs",iFP.defsT),"\nreturn defs")
|
||||
save_data("./output/impl_definitions.lua",serializeTable("defs",iFP.defsT),"\nreturn defs")
|
||||
|
||||
end -- #implementations > 0 then
|
||||
|
||||
@@ -993,12 +1411,15 @@ local function json_prepare(defs)
|
||||
end
|
||||
|
||||
local json = require"json"
|
||||
save_data("./generated/definitions.json",json.encode(json_prepare(FP.defsT)))
|
||||
save_data("./generated/structs_and_enums.json",json.encode(structs_and_enums_table))
|
||||
save_data("./output/definitions.json",json.encode(json_prepare(pFP.defsT)))
|
||||
save_data("./output/structs_and_enums.json",json.encode(structs_and_enums_table))
|
||||
save_data("./output/typedefs_dict.json",json.encode(typedefs_dict))
|
||||
if iFP then
|
||||
save_data("./generated/impl_definitions.json",json.encode(json_prepare(iFP.defsT)))
|
||||
save_data("./output/impl_definitions.json",json.encode(json_prepare(iFP.defsT)))
|
||||
end
|
||||
|
||||
copyfile("./output/cimgui.h", "../cimgui.h")
|
||||
copyfile("./output/cimgui.cpp", "../cimgui.cpp")
|
||||
print"all done!!"
|
||||
--[[
|
||||
---dump some infos-----------------------------------------------------------------------
|
||||
|
@@ -1,8 +1,9 @@
|
||||
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
|
||||
//based on imgui.h file version "1.65" from Dear ImGui https://github.com/ocornut/imgui
|
||||
#include "./imgui/imgui.h"
|
||||
#include "cimgui.h"
|
||||
|
||||
#include "../imgui/imgui.h"
|
||||
#include "cimgui_auto.h"
|
||||
|
||||
#include "../imgui/imgui_internal.h"
|
||||
#include "./imgui/imgui_internal.h"
|
||||
|
||||
CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas)
|
||||
{
|
||||
@@ -594,22 +595,6 @@ CIMGUI_API bool igRadioButtonIntPtr(const char* label,int* v,int v_button)
|
||||
{
|
||||
return ImGui::RadioButton(label,v,v_button);
|
||||
}
|
||||
CIMGUI_API void igPlotLines(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotLinesFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotLines(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay)
|
||||
{
|
||||
return ImGui::ProgressBar(fraction,size_arg,overlay);
|
||||
@@ -686,58 +671,6 @@ CIMGUI_API bool igDragScalarN(const char* label,ImGuiDataType data_type,void* v,
|
||||
{
|
||||
return ImGui::DragScalarN(label,data_type,v,components,v_speed,v_min,v_max,format,power);
|
||||
}
|
||||
CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiTextEditCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputText(label,buf,buf_size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiTextEditCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputTextMultiline(label,buf,buf_size,size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat2(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat3(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat4(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt(label,v,step,step_fast,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt2(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt3(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt4(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputDouble(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalar(const char* label,ImGuiDataType data_type,void* v,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalar(label,data_type,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalarN(label,data_type,v,components,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igSliderFloat(const char* label,float* v,float v_min,float v_max,const char* format,float power)
|
||||
{
|
||||
return ImGui::SliderFloat(label,v,v_min,v_max,format,power);
|
||||
@@ -794,6 +727,58 @@ CIMGUI_API bool igVSliderScalar(const char* label,const ImVec2 size,ImGuiDataTyp
|
||||
{
|
||||
return ImGui::VSliderScalar(label,size,data_type,v,v_min,v_max,format,power);
|
||||
}
|
||||
CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputText(label,buf,buf_size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputTextMultiline(label,buf,buf_size,size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat2(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat3(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat4(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt(label,v,step,step_fast,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt2(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt3(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt4(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputDouble(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalar(const char* label,ImGuiDataType data_type,void* v,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalar(label,data_type,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalarN(label,data_type,v,components,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags flags)
|
||||
{
|
||||
return ImGui::ColorEdit3(label,col,flags);
|
||||
@@ -826,15 +811,17 @@ CIMGUI_API bool igTreeNodeStrStr(const char* str_id,const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeV(str_id,fmt,args);
|
||||
bool ret = ImGui::TreeNodeV(str_id,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodePtr(const void* ptr_id,const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeV(ptr_id,fmt,args);
|
||||
bool ret = ImGui::TreeNodeV(ptr_id,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodeVStr(const char* str_id,const char* fmt,va_list args)
|
||||
{
|
||||
@@ -852,15 +839,17 @@ CIMGUI_API bool igTreeNodeExStrStr(const char* str_id,ImGuiTreeNodeFlags flags,c
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeExV(str_id,flags,fmt,args);
|
||||
bool ret = ImGui::TreeNodeExV(str_id,flags,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodeExPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeExV(ptr_id,flags,fmt,args);
|
||||
bool ret = ImGui::TreeNodeExV(ptr_id,flags,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodeExVStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)
|
||||
{
|
||||
@@ -930,6 +919,22 @@ CIMGUI_API void igListBoxFooter()
|
||||
{
|
||||
return ImGui::ListBoxFooter();
|
||||
}
|
||||
CIMGUI_API void igPlotLines(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotLinesFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotLines(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igValueBool(const char* prefix,bool b)
|
||||
{
|
||||
return ImGui::Value(prefix,b);
|
||||
@@ -946,25 +951,6 @@ CIMGUI_API void igValueFloat(const char* prefix,float v,const char* float_format
|
||||
{
|
||||
return ImGui::Value(prefix,v,float_format);
|
||||
}
|
||||
CIMGUI_API void igBeginTooltip()
|
||||
{
|
||||
return ImGui::BeginTooltip();
|
||||
}
|
||||
CIMGUI_API void igEndTooltip()
|
||||
{
|
||||
return ImGui::EndTooltip();
|
||||
}
|
||||
CIMGUI_API void igSetTooltip(const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::SetTooltipV(fmt,args);
|
||||
va_end(args);
|
||||
}
|
||||
CIMGUI_API void igSetTooltipV(const char* fmt,va_list args)
|
||||
{
|
||||
return ImGui::SetTooltipV(fmt,args);
|
||||
}
|
||||
CIMGUI_API bool igBeginMainMenuBar()
|
||||
{
|
||||
return ImGui::BeginMainMenuBar();
|
||||
@@ -997,6 +983,25 @@ CIMGUI_API bool igMenuItemBoolPtr(const char* label,const char* shortcut,bool* p
|
||||
{
|
||||
return ImGui::MenuItem(label,shortcut,p_selected,enabled);
|
||||
}
|
||||
CIMGUI_API void igBeginTooltip()
|
||||
{
|
||||
return ImGui::BeginTooltip();
|
||||
}
|
||||
CIMGUI_API void igEndTooltip()
|
||||
{
|
||||
return ImGui::EndTooltip();
|
||||
}
|
||||
CIMGUI_API void igSetTooltip(const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::SetTooltipV(fmt,args);
|
||||
va_end(args);
|
||||
}
|
||||
CIMGUI_API void igSetTooltipV(const char* fmt,va_list args)
|
||||
{
|
||||
return ImGui::SetTooltipV(fmt,args);
|
||||
}
|
||||
CIMGUI_API void igOpenPopup(const char* str_id)
|
||||
{
|
||||
return ImGui::OpenPopup(str_id);
|
||||
@@ -1149,13 +1154,17 @@ CIMGUI_API bool igIsItemVisible()
|
||||
{
|
||||
return ImGui::IsItemVisible();
|
||||
}
|
||||
CIMGUI_API bool igIsItemEdited()
|
||||
{
|
||||
return ImGui::IsItemEdited();
|
||||
}
|
||||
CIMGUI_API bool igIsItemDeactivated()
|
||||
{
|
||||
return ImGui::IsItemDeactivated();
|
||||
}
|
||||
CIMGUI_API bool igIsItemDeactivatedAfterChange()
|
||||
CIMGUI_API bool igIsItemDeactivatedAfterEdit()
|
||||
{
|
||||
return ImGui::IsItemDeactivatedAfterChange();
|
||||
return ImGui::IsItemDeactivatedAfterEdit();
|
||||
}
|
||||
CIMGUI_API bool igIsAnyItemHovered()
|
||||
{
|
||||
@@ -1193,7 +1202,7 @@ CIMGUI_API bool igIsRectVisibleVec2(const ImVec2 rect_min,const ImVec2 rect_max)
|
||||
{
|
||||
return ImGui::IsRectVisible(rect_min,rect_max);
|
||||
}
|
||||
CIMGUI_API float igGetTime()
|
||||
CIMGUI_API double igGetTime()
|
||||
{
|
||||
return ImGui::GetTime();
|
||||
}
|
||||
@@ -1245,14 +1254,6 @@ CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in)
|
||||
{
|
||||
return ImGui::ColorConvertFloat4ToU32(in);
|
||||
}
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float out_h,float out_s,float out_v)
|
||||
{
|
||||
return ImGui::ColorConvertRGBtoHSV(r,g,b,out_h,out_s,out_v);
|
||||
}
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float out_r,float out_g,float out_b)
|
||||
{
|
||||
return ImGui::ColorConvertHSVtoRGB(h,s,v,out_r,out_g,out_b);
|
||||
}
|
||||
CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key)
|
||||
{
|
||||
return ImGui::GetKeyIndex(imgui_key);
|
||||
@@ -1385,38 +1386,10 @@ CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self,const char* utf8_ch
|
||||
{
|
||||
return self->AddInputCharactersUTF8(utf8_chars);
|
||||
}
|
||||
CIMGUI_API inline void ImGuiIO_ClearInputCharacters(ImGuiIO* self)
|
||||
CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self)
|
||||
{
|
||||
return self->ClearInputCharacters();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_begin(TextRange* self)
|
||||
{
|
||||
return self->begin();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_end(TextRange* self)
|
||||
{
|
||||
return self->end();
|
||||
}
|
||||
CIMGUI_API bool TextRange_empty(TextRange* self)
|
||||
{
|
||||
return self->empty();
|
||||
}
|
||||
CIMGUI_API char TextRange_front(TextRange* self)
|
||||
{
|
||||
return self->front();
|
||||
}
|
||||
CIMGUI_API bool TextRange_is_blank(TextRange* self,char c)
|
||||
{
|
||||
return self->is_blank(c);
|
||||
}
|
||||
CIMGUI_API void TextRange_trim_blanks(TextRange* self)
|
||||
{
|
||||
return self->trim_blanks();
|
||||
}
|
||||
CIMGUI_API void TextRange_split(TextRange* self,char separator,ImVector_TextRange out)
|
||||
{
|
||||
return self->split(separator,out);
|
||||
}
|
||||
CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self,const char* label,float width)
|
||||
{
|
||||
return self->Draw(label,width);
|
||||
@@ -1437,6 +1410,22 @@ CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self)
|
||||
{
|
||||
return self->IsActive();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_begin(TextRange* self)
|
||||
{
|
||||
return self->begin();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_end(TextRange* self)
|
||||
{
|
||||
return self->end();
|
||||
}
|
||||
CIMGUI_API bool TextRange_empty(TextRange* self)
|
||||
{
|
||||
return self->empty();
|
||||
}
|
||||
CIMGUI_API void TextRange_split(TextRange* self,char separator,ImVector_TextRange* out)
|
||||
{
|
||||
return self->split(separator,out);
|
||||
}
|
||||
CIMGUI_API const char* ImGuiTextBuffer_begin(ImGuiTextBuffer* self)
|
||||
{
|
||||
return self->begin();
|
||||
@@ -1529,15 +1518,15 @@ CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self)
|
||||
{
|
||||
return self->BuildSortByKey();
|
||||
}
|
||||
CIMGUI_API void ImGuiTextEditCallbackData_DeleteChars(ImGuiTextEditCallbackData* self,int pos,int bytes_count)
|
||||
CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self,int pos,int bytes_count)
|
||||
{
|
||||
return self->DeleteChars(pos,bytes_count);
|
||||
}
|
||||
CIMGUI_API void ImGuiTextEditCallbackData_InsertChars(ImGuiTextEditCallbackData* self,int pos,const char* text,const char* text_end)
|
||||
CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end)
|
||||
{
|
||||
return self->InsertChars(pos,text,text_end);
|
||||
}
|
||||
CIMGUI_API bool ImGuiTextEditCallbackData_HasSelection(ImGuiTextEditCallbackData* self)
|
||||
CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self)
|
||||
{
|
||||
return self->HasSelection();
|
||||
}
|
||||
@@ -1557,7 +1546,7 @@ CIMGUI_API bool ImGuiPayload_IsDelivery(ImGuiPayload* self)
|
||||
{
|
||||
return self->IsDelivery();
|
||||
}
|
||||
CIMGUI_API inline void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a)
|
||||
CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a)
|
||||
{
|
||||
return self->SetHSV(h,s,v,a);
|
||||
}
|
||||
@@ -1597,11 +1586,11 @@ CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self)
|
||||
{
|
||||
return self->PopTextureID();
|
||||
}
|
||||
CIMGUI_API inline ImVec2 ImDrawList_GetClipRectMin(ImDrawList* self)
|
||||
CIMGUI_API ImVec2 ImDrawList_GetClipRectMin(ImDrawList* self)
|
||||
{
|
||||
return self->GetClipRectMin();
|
||||
}
|
||||
CIMGUI_API inline ImVec2 ImDrawList_GetClipRectMax(ImDrawList* self)
|
||||
CIMGUI_API ImVec2 ImDrawList_GetClipRectMax(ImDrawList* self)
|
||||
{
|
||||
return self->GetClipRectMax();
|
||||
}
|
||||
@@ -1677,23 +1666,23 @@ CIMGUI_API void ImDrawList_AddBezierCurve(ImDrawList* self,const ImVec2 pos0,con
|
||||
{
|
||||
return self->AddBezierCurve(pos0,cp0,cp1,pos1,col,thickness,num_segments);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathClear(ImDrawList* self)
|
||||
CIMGUI_API void ImDrawList_PathClear(ImDrawList* self)
|
||||
{
|
||||
return self->PathClear();
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos)
|
||||
CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos)
|
||||
{
|
||||
return self->PathLineTo(pos);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos)
|
||||
CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos)
|
||||
{
|
||||
return self->PathLineToMergeDuplicate(pos);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col)
|
||||
CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col)
|
||||
{
|
||||
return self->PathFillConvex(col);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness)
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness)
|
||||
{
|
||||
return self->PathStroke(col,closed,thickness);
|
||||
}
|
||||
@@ -1761,15 +1750,15 @@ CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self,const ImVec2 a,const ImVe
|
||||
{
|
||||
return self->PrimQuadUV(a,b,c,d,uv_a,uv_b,uv_c,uv_d,col);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
{
|
||||
return self->PrimWriteVtx(pos,uv,col);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx)
|
||||
CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx)
|
||||
{
|
||||
return self->PrimWriteIdx(idx);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
{
|
||||
return self->PrimVtx(pos,uv,col);
|
||||
}
|
||||
@@ -1989,6 +1978,227 @@ CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool ov
|
||||
{
|
||||
return self->AddRemapChar(dst,src,overwrite_dst);
|
||||
}
|
||||
CIMGUI_API void igGetWindowPos_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetWindowPos();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetWindowPos_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetWindowPos();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetWindowSize_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetWindowSize();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetWindowSize_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetWindowSize();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetContentRegionMax_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetContentRegionMax();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetContentRegionMax_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetContentRegionMax();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetContentRegionAvail_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetContentRegionAvail();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetContentRegionAvail_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetContentRegionAvail();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetWindowContentRegionMin_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetWindowContentRegionMin();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetWindowContentRegionMin_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetWindowContentRegionMin();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetWindowContentRegionMax_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetWindowContentRegionMax();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetWindowContentRegionMax_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetWindowContentRegionMax();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetFontTexUvWhitePixel_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetFontTexUvWhitePixel();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetFontTexUvWhitePixel_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetFontTexUvWhitePixel();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetCursorPos_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetCursorPos();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetCursorPos_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetCursorPos();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetCursorStartPos_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetCursorStartPos();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetCursorStartPos_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetCursorStartPos();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetCursorScreenPos_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetCursorScreenPos();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetCursorScreenPos_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetCursorScreenPos();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetItemRectMin_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetItemRectMin();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectMin_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetItemRectMin();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetItemRectMax_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetItemRectMax();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectMax_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetItemRectMax();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetItemRectSize_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetItemRectSize();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectSize_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetItemRectSize();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igCalcTextSize_nonUDT(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)
|
||||
{
|
||||
*pOut = ImGui::CalcTextSize(text,text_end,hide_text_after_double_hash,wrap_width);
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igCalcTextSize_nonUDT2(const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)
|
||||
{
|
||||
ImVec2 ret = ImGui::CalcTextSize(text,text_end,hide_text_after_double_hash,wrap_width);
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igColorConvertU32ToFloat4_nonUDT(ImVec4 *pOut,ImU32 in)
|
||||
{
|
||||
*pOut = ImGui::ColorConvertU32ToFloat4(in);
|
||||
}
|
||||
CIMGUI_API ImVec4_Simple igColorConvertU32ToFloat4_nonUDT2(ImU32 in)
|
||||
{
|
||||
ImVec4 ret = ImGui::ColorConvertU32ToFloat4(in);
|
||||
ImVec4_Simple ret2 = ImVec4ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetMousePos_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetMousePos();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetMousePos_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetMousePos();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetMousePosOnOpeningCurrentPopup_nonUDT(ImVec2 *pOut)
|
||||
{
|
||||
*pOut = ImGui::GetMousePosOnOpeningCurrentPopup();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetMousePosOnOpeningCurrentPopup_nonUDT2()
|
||||
{
|
||||
ImVec2 ret = ImGui::GetMousePosOnOpeningCurrentPopup();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void igGetMouseDragDelta_nonUDT(ImVec2 *pOut,int button,float lock_threshold)
|
||||
{
|
||||
*pOut = ImGui::GetMouseDragDelta(button,lock_threshold);
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple igGetMouseDragDelta_nonUDT2(int button,float lock_threshold)
|
||||
{
|
||||
ImVec2 ret = ImGui::GetMouseDragDelta(button,lock_threshold);
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void ImColor_HSV_nonUDT(ImColor* self,ImColor *pOut,float h,float s,float v,float a)
|
||||
{
|
||||
*pOut = self->HSV(h,s,v,a);
|
||||
}
|
||||
CIMGUI_API ImColor_Simple ImColor_HSV_nonUDT2(ImColor* self,float h,float s,float v,float a)
|
||||
{
|
||||
ImColor ret = self->HSV(h,s,v,a);
|
||||
ImColor_Simple ret2 = ImColorToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void ImDrawList_GetClipRectMin_nonUDT(ImDrawList* self,ImVec2 *pOut)
|
||||
{
|
||||
*pOut = self->GetClipRectMin();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple ImDrawList_GetClipRectMin_nonUDT2(ImDrawList* self)
|
||||
{
|
||||
ImVec2 ret = self->GetClipRectMin();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void ImDrawList_GetClipRectMax_nonUDT(ImDrawList* self,ImVec2 *pOut)
|
||||
{
|
||||
*pOut = self->GetClipRectMax();
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple ImDrawList_GetClipRectMax_nonUDT2(ImDrawList* self)
|
||||
{
|
||||
ImVec2 ret = self->GetClipRectMax();
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
CIMGUI_API void ImFont_CalcTextSizeA_nonUDT(ImFont* self,ImVec2 *pOut,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining)
|
||||
{
|
||||
*pOut = self->CalcTextSizeA(size,max_width,wrap_width,text_begin,text_end,remaining);
|
||||
}
|
||||
CIMGUI_API ImVec2_Simple ImFont_CalcTextSizeA_nonUDT2(ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining)
|
||||
{
|
||||
ImVec2 ret = self->CalcTextSizeA(size,max_width,wrap_width,text_begin,text_end,remaining);
|
||||
ImVec2_Simple ret2 = ImVec2ToSimple(ret);
|
||||
return ret2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/////////////////////////////manual written functions
|
||||
@@ -2017,3 +2227,11 @@ CIMGUI_API float igGET_FLT_MAX()
|
||||
{
|
||||
return FLT_MAX;
|
||||
}
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float *out_h,float *out_s,float *out_v)
|
||||
{
|
||||
ImGui::ColorConvertRGBtoHSV(r,g,b,*out_h,*out_s,*out_v);
|
||||
}
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float *out_r,float *out_g,float *out_b)
|
||||
{
|
||||
ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b);
|
||||
}
|
@@ -1,4 +1,5 @@
|
||||
|
||||
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
|
||||
//based on imgui.h file version "1.65" from Dear ImGui https://github.com/ocornut/imgui
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
@@ -29,51 +30,35 @@
|
||||
#ifdef _MSC_VER
|
||||
typedef unsigned __int64 ImU64;
|
||||
#else
|
||||
typedef unsigned long long ImU64;
|
||||
//typedef unsigned long long ImU64;
|
||||
#endif
|
||||
|
||||
//struct GLFWwindow;
|
||||
//struct SDL_Window;
|
||||
//UDT stuff
|
||||
typedef struct ImVec2_Simple { float x; float y; } ImVec2_Simple;
|
||||
typedef struct ImVec4_Simple { float x; float y; float z; float w;} ImVec4_Simple;
|
||||
typedef struct ImColor_Simple { ImVec4_Simple Value;} ImColor_Simple;
|
||||
|
||||
|
||||
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
|
||||
typedef struct ImFont ImFont;
|
||||
typedef struct ImFontAtlas ImFontAtlas;
|
||||
typedef struct CustomRect CustomRect;
|
||||
typedef struct GlyphRangesBuilder GlyphRangesBuilder;
|
||||
typedef struct ImFontGlyph ImFontGlyph;
|
||||
typedef struct ImFontConfig ImFontConfig;
|
||||
typedef struct ImDrawData ImDrawData;
|
||||
typedef struct ImDrawList ImDrawList;
|
||||
typedef struct ImDrawChannel ImDrawChannel;
|
||||
typedef struct ImDrawVert ImDrawVert;
|
||||
typedef struct ImDrawCmd ImDrawCmd;
|
||||
typedef struct ImGuiListClipper ImGuiListClipper;
|
||||
typedef struct ImColor ImColor;
|
||||
typedef struct ImGuiPayload ImGuiPayload;
|
||||
typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData;
|
||||
typedef struct ImGuiTextEditCallbackData ImGuiTextEditCallbackData;
|
||||
typedef struct ImGuiStorage ImGuiStorage;
|
||||
typedef struct Pair Pair;
|
||||
typedef struct ImGuiTextBuffer ImGuiTextBuffer;
|
||||
typedef struct ImGuiTextFilter ImGuiTextFilter;
|
||||
typedef struct TextRange TextRange;
|
||||
typedef struct ImGuiOnceUponAFrame ImGuiOnceUponAFrame;
|
||||
typedef struct ImGuiIO ImGuiIO;
|
||||
typedef struct ImGuiStyle ImGuiStyle;
|
||||
typedef struct ImVec4 ImVec4;
|
||||
typedef struct ImVec2 ImVec2;
|
||||
typedef struct ImGuiContext ImGuiContext;
|
||||
typedef struct ImGuiPayload ImGuiPayload;
|
||||
typedef struct ImGuiListClipper ImGuiListClipper;
|
||||
typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData;
|
||||
typedef struct ImGuiTextEditCallbackData ImGuiTextEditCallbackData;
|
||||
typedef struct ImGuiTextBuffer ImGuiTextBuffer;
|
||||
typedef struct ImGuiTextFilter ImGuiTextFilter;
|
||||
typedef struct ImGuiStyle ImGuiStyle;
|
||||
typedef struct ImGuiStorage ImGuiStorage;
|
||||
typedef struct ImGuiSizeCallbackData ImGuiSizeCallbackData;
|
||||
typedef struct ImGuiPayload ImGuiPayload;
|
||||
typedef struct ImGuiOnceUponAFrame ImGuiOnceUponAFrame;
|
||||
typedef struct ImGuiListClipper ImGuiListClipper;
|
||||
typedef struct ImGuiInputTextCallbackData ImGuiInputTextCallbackData;
|
||||
typedef struct ImGuiIO ImGuiIO;
|
||||
typedef struct ImGuiContext ImGuiContext;
|
||||
typedef struct ImColor ImColor;
|
||||
typedef struct ImFontConfig ImFontConfig;
|
||||
typedef struct ImFontAtlas ImFontAtlas;
|
||||
@@ -94,24 +79,24 @@ struct ImFont;
|
||||
struct ImFontAtlas;
|
||||
struct ImFontConfig;
|
||||
struct ImColor;
|
||||
typedef void* ImTextureID;
|
||||
struct ImGuiContext;
|
||||
struct ImGuiIO;
|
||||
struct ImGuiInputTextCallbackData;
|
||||
struct ImGuiListClipper;
|
||||
struct ImGuiOnceUponAFrame;
|
||||
struct ImGuiPayload;
|
||||
struct ImGuiSizeCallbackData;
|
||||
struct ImGuiStorage;
|
||||
struct ImGuiStyle;
|
||||
struct ImGuiTextFilter;
|
||||
struct ImGuiTextBuffer;
|
||||
struct ImGuiTextEditCallbackData;
|
||||
struct ImGuiSizeCallbackData;
|
||||
struct ImGuiListClipper;
|
||||
struct ImGuiPayload;
|
||||
struct ImGuiContext;
|
||||
typedef void* ImTextureID;
|
||||
typedef unsigned int ImGuiID;
|
||||
typedef unsigned short ImWchar;
|
||||
typedef int ImGuiCol;
|
||||
typedef int ImGuiCond;
|
||||
typedef int ImGuiDataType;
|
||||
typedef int ImGuiDir;
|
||||
typedef int ImGuiCond;
|
||||
typedef int ImGuiKey;
|
||||
typedef int ImGuiNavInput;
|
||||
typedef int ImGuiMouseCursor;
|
||||
@@ -131,12 +116,12 @@ typedef int ImGuiInputTextFlags;
|
||||
typedef int ImGuiSelectableFlags;
|
||||
typedef int ImGuiTreeNodeFlags;
|
||||
typedef int ImGuiWindowFlags;
|
||||
typedef int (*ImGuiTextEditCallback)(ImGuiTextEditCallbackData *data);
|
||||
typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData *data);
|
||||
typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data);
|
||||
typedef signed int ImS32;
|
||||
typedef unsigned int ImU32;
|
||||
typedef signed long long ImS64;
|
||||
typedef unsigned long long ImU64;
|
||||
typedef int64_t ImS64;
|
||||
typedef uint64_t ImU64;
|
||||
struct ImVec2
|
||||
{
|
||||
float x, y;
|
||||
@@ -164,7 +149,6 @@ enum ImGuiWindowFlags_
|
||||
ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14,
|
||||
ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15,
|
||||
ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16,
|
||||
ImGuiWindowFlags_ResizeFromAnySide = 1 << 17,
|
||||
ImGuiWindowFlags_NoNavInputs = 1 << 18,
|
||||
ImGuiWindowFlags_NoNavFocus = 1 << 19,
|
||||
ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus,
|
||||
@@ -196,6 +180,7 @@ enum ImGuiInputTextFlags_
|
||||
ImGuiInputTextFlags_Password = 1 << 15,
|
||||
ImGuiInputTextFlags_NoUndoRedo = 1 << 16,
|
||||
ImGuiInputTextFlags_CharsScientific = 1 << 17,
|
||||
ImGuiInputTextFlags_CallbackResize = 1 << 18,
|
||||
ImGuiInputTextFlags_Multiline = 1 << 20
|
||||
};
|
||||
enum ImGuiTreeNodeFlags_
|
||||
@@ -220,7 +205,8 @@ enum ImGuiSelectableFlags_
|
||||
ImGuiSelectableFlags_None = 0,
|
||||
ImGuiSelectableFlags_DontClosePopups = 1 << 0,
|
||||
ImGuiSelectableFlags_SpanAllColumns = 1 << 1,
|
||||
ImGuiSelectableFlags_AllowDoubleClick = 1 << 2
|
||||
ImGuiSelectableFlags_AllowDoubleClick = 1 << 2,
|
||||
ImGuiSelectableFlags_Disabled = 1 << 3
|
||||
};
|
||||
enum ImGuiComboFlags_
|
||||
{
|
||||
@@ -251,6 +237,7 @@ enum ImGuiHoveredFlags_
|
||||
ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 3,
|
||||
ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 5,
|
||||
ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 6,
|
||||
ImGuiHoveredFlags_AllowWhenDisabled = 1 << 7,
|
||||
ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped,
|
||||
ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows
|
||||
};
|
||||
@@ -262,6 +249,7 @@ enum ImGuiDragDropFlags_
|
||||
ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2,
|
||||
ImGuiDragDropFlags_SourceAllowNullID = 1 << 3,
|
||||
ImGuiDragDropFlags_SourceExtern = 1 << 4,
|
||||
ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5,
|
||||
ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10,
|
||||
ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11,
|
||||
ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12,
|
||||
@@ -394,10 +382,11 @@ enum ImGuiCol_
|
||||
ImGuiCol_PlotHistogram,
|
||||
ImGuiCol_PlotHistogramHovered,
|
||||
ImGuiCol_TextSelectedBg,
|
||||
ImGuiCol_ModalWindowDarkening,
|
||||
ImGuiCol_DragDropTarget,
|
||||
ImGuiCol_NavHighlight,
|
||||
ImGuiCol_NavWindowingHighlight,
|
||||
ImGuiCol_NavWindowingDimBg,
|
||||
ImGuiCol_ModalWindowDimBg,
|
||||
ImGuiCol_COUNT
|
||||
};
|
||||
enum ImGuiStyleVar_
|
||||
@@ -463,6 +452,7 @@ enum ImGuiMouseCursor_
|
||||
ImGuiMouseCursor_ResizeEW,
|
||||
ImGuiMouseCursor_ResizeNESW,
|
||||
ImGuiMouseCursor_ResizeNWSE,
|
||||
ImGuiMouseCursor_Hand,
|
||||
ImGuiMouseCursor_COUNT
|
||||
};
|
||||
enum ImGuiCond_
|
||||
@@ -528,19 +518,20 @@ struct ImGuiIO
|
||||
ImVec2 DisplayFramebufferScale;
|
||||
ImVec2 DisplayVisibleMin;
|
||||
ImVec2 DisplayVisibleMax;
|
||||
bool OptMacOSXBehaviors;
|
||||
bool OptCursorBlink;
|
||||
bool MouseDrawCursor;
|
||||
bool ConfigMacOSXBehaviors;
|
||||
bool ConfigInputTextCursorBlink;
|
||||
bool ConfigResizeWindowsFromEdges;
|
||||
const char* (*GetClipboardTextFn)(void* user_data);
|
||||
void (*SetClipboardTextFn)(void* user_data, const char* text);
|
||||
void* ClipboardUserData;
|
||||
void (*ImeSetInputScreenPosFn)(int x, int y);
|
||||
void* ImeWindowHandle;
|
||||
void* RenderDrawListsFnDummy;
|
||||
void* RenderDrawListsFnUnused;
|
||||
ImVec2 MousePos;
|
||||
bool MouseDown[5];
|
||||
float MouseWheel;
|
||||
float MouseWheelH;
|
||||
bool MouseDrawCursor;
|
||||
bool KeyCtrl;
|
||||
bool KeyShift;
|
||||
bool KeyAlt;
|
||||
@@ -558,11 +549,13 @@ struct ImGuiIO
|
||||
float Framerate;
|
||||
int MetricsRenderVertices;
|
||||
int MetricsRenderIndices;
|
||||
int MetricsRenderWindows;
|
||||
int MetricsActiveWindows;
|
||||
int MetricsActiveAllocations;
|
||||
ImVec2 MouseDelta;
|
||||
ImVec2 MousePosPrev;
|
||||
ImVec2 MouseClickedPos[5];
|
||||
float MouseClickedTime[5];
|
||||
double MouseClickedTime[5];
|
||||
bool MouseClicked[5];
|
||||
bool MouseDoubleClicked[5];
|
||||
bool MouseReleased[5];
|
||||
@@ -602,12 +595,11 @@ struct ImGuiStorage
|
||||
{
|
||||
ImVector/*<Pair>*/ Data;
|
||||
};
|
||||
struct ImGuiTextEditCallbackData
|
||||
struct ImGuiInputTextCallbackData
|
||||
{
|
||||
ImGuiInputTextFlags EventFlag;
|
||||
ImGuiInputTextFlags Flags;
|
||||
void* UserData;
|
||||
bool ReadOnly;
|
||||
ImWchar EventChar;
|
||||
ImGuiKey EventKey;
|
||||
char* Buf;
|
||||
@@ -742,11 +734,13 @@ struct ImFontGlyph
|
||||
};
|
||||
enum ImFontAtlasFlags_
|
||||
{
|
||||
ImFontAtlasFlags_None = 0,
|
||||
ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0,
|
||||
ImFontAtlasFlags_NoMouseCursors = 1 << 1
|
||||
};
|
||||
struct ImFontAtlas
|
||||
{
|
||||
bool Locked;
|
||||
ImFontAtlasFlags Flags;
|
||||
ImTextureID TexID;
|
||||
int TexDesiredWidth;
|
||||
@@ -808,6 +802,28 @@ struct ImFont
|
||||
struct GLFWwindow;
|
||||
struct SDL_Window;
|
||||
typedef union SDL_Event SDL_Event;
|
||||
inline ImVec2_Simple ImVec2ToSimple(ImVec2 vec)
|
||||
{
|
||||
ImVec2_Simple result;
|
||||
result.x = vec.x;
|
||||
result.y = vec.y;
|
||||
return result;
|
||||
}
|
||||
inline ImVec4_Simple ImVec4ToSimple(ImVec4 vec)
|
||||
{
|
||||
ImVec4_Simple result;
|
||||
result.x = vec.x;
|
||||
result.y = vec.y;
|
||||
result.z = vec.z;
|
||||
result.w = vec.w;
|
||||
return result;
|
||||
}
|
||||
inline ImColor_Simple ImColorToSimple(ImColor col)
|
||||
{
|
||||
ImColor_Simple result;
|
||||
result.Value = ImVec4ToSimple(col.Value);
|
||||
return result;
|
||||
}
|
||||
#endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
|
||||
#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
@@ -823,71 +839,71 @@ typedef ImVector ImVector_ImWchar;
|
||||
#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas);
|
||||
CIMGUI_API void igDestroyContext(ImGuiContext* ctx);
|
||||
CIMGUI_API ImGuiContext* igGetCurrentContext();
|
||||
CIMGUI_API ImGuiContext* igGetCurrentContext(void);
|
||||
CIMGUI_API void igSetCurrentContext(ImGuiContext* ctx);
|
||||
CIMGUI_API bool igDebugCheckVersionAndDataLayout(const char* version_str,size_t sz_io,size_t sz_style,size_t sz_vec2,size_t sz_vec4,size_t sz_drawvert);
|
||||
CIMGUI_API ImGuiIO* igGetIO();
|
||||
CIMGUI_API ImGuiStyle* igGetStyle();
|
||||
CIMGUI_API void igNewFrame();
|
||||
CIMGUI_API void igEndFrame();
|
||||
CIMGUI_API void igRender();
|
||||
CIMGUI_API ImDrawData* igGetDrawData();
|
||||
CIMGUI_API ImGuiIO* igGetIO(void);
|
||||
CIMGUI_API ImGuiStyle* igGetStyle(void);
|
||||
CIMGUI_API void igNewFrame(void);
|
||||
CIMGUI_API void igEndFrame(void);
|
||||
CIMGUI_API void igRender(void);
|
||||
CIMGUI_API ImDrawData* igGetDrawData(void);
|
||||
CIMGUI_API void igShowDemoWindow(bool* p_open);
|
||||
CIMGUI_API void igShowMetricsWindow(bool* p_open);
|
||||
CIMGUI_API void igShowStyleEditor(ImGuiStyle* ref);
|
||||
CIMGUI_API bool igShowStyleSelector(const char* label);
|
||||
CIMGUI_API void igShowFontSelector(const char* label);
|
||||
CIMGUI_API void igShowUserGuide();
|
||||
CIMGUI_API const char* igGetVersion();
|
||||
CIMGUI_API void igShowUserGuide(void);
|
||||
CIMGUI_API const char* igGetVersion(void);
|
||||
CIMGUI_API void igStyleColorsDark(ImGuiStyle* dst);
|
||||
CIMGUI_API void igStyleColorsClassic(ImGuiStyle* dst);
|
||||
CIMGUI_API void igStyleColorsLight(ImGuiStyle* dst);
|
||||
CIMGUI_API bool igBegin(const char* name,bool* p_open,ImGuiWindowFlags flags);
|
||||
CIMGUI_API void igEnd();
|
||||
CIMGUI_API void igEnd(void);
|
||||
CIMGUI_API bool igBeginChild(const char* str_id,const ImVec2 size,bool border,ImGuiWindowFlags flags);
|
||||
CIMGUI_API bool igBeginChildID(ImGuiID id,const ImVec2 size,bool border,ImGuiWindowFlags flags);
|
||||
CIMGUI_API void igEndChild();
|
||||
CIMGUI_API bool igIsWindowAppearing();
|
||||
CIMGUI_API bool igIsWindowCollapsed();
|
||||
CIMGUI_API void igEndChild(void);
|
||||
CIMGUI_API bool igIsWindowAppearing(void);
|
||||
CIMGUI_API bool igIsWindowCollapsed(void);
|
||||
CIMGUI_API bool igIsWindowFocused(ImGuiFocusedFlags flags);
|
||||
CIMGUI_API bool igIsWindowHovered(ImGuiHoveredFlags flags);
|
||||
CIMGUI_API ImDrawList* igGetWindowDrawList();
|
||||
CIMGUI_API ImVec2 igGetWindowPos();
|
||||
CIMGUI_API ImVec2 igGetWindowSize();
|
||||
CIMGUI_API float igGetWindowWidth();
|
||||
CIMGUI_API float igGetWindowHeight();
|
||||
CIMGUI_API ImVec2 igGetContentRegionMax();
|
||||
CIMGUI_API ImVec2 igGetContentRegionAvail();
|
||||
CIMGUI_API float igGetContentRegionAvailWidth();
|
||||
CIMGUI_API ImVec2 igGetWindowContentRegionMin();
|
||||
CIMGUI_API ImVec2 igGetWindowContentRegionMax();
|
||||
CIMGUI_API float igGetWindowContentRegionWidth();
|
||||
CIMGUI_API ImDrawList* igGetWindowDrawList(void);
|
||||
CIMGUI_API ImVec2 igGetWindowPos(void);
|
||||
CIMGUI_API ImVec2 igGetWindowSize(void);
|
||||
CIMGUI_API float igGetWindowWidth(void);
|
||||
CIMGUI_API float igGetWindowHeight(void);
|
||||
CIMGUI_API ImVec2 igGetContentRegionMax(void);
|
||||
CIMGUI_API ImVec2 igGetContentRegionAvail(void);
|
||||
CIMGUI_API float igGetContentRegionAvailWidth(void);
|
||||
CIMGUI_API ImVec2 igGetWindowContentRegionMin(void);
|
||||
CIMGUI_API ImVec2 igGetWindowContentRegionMax(void);
|
||||
CIMGUI_API float igGetWindowContentRegionWidth(void);
|
||||
CIMGUI_API void igSetNextWindowPos(const ImVec2 pos,ImGuiCond cond,const ImVec2 pivot);
|
||||
CIMGUI_API void igSetNextWindowSize(const ImVec2 size,ImGuiCond cond);
|
||||
CIMGUI_API void igSetNextWindowSizeConstraints(const ImVec2 size_min,const ImVec2 size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data);
|
||||
CIMGUI_API void igSetNextWindowContentSize(const ImVec2 size);
|
||||
CIMGUI_API void igSetNextWindowCollapsed(bool collapsed,ImGuiCond cond);
|
||||
CIMGUI_API void igSetNextWindowFocus();
|
||||
CIMGUI_API void igSetNextWindowFocus(void);
|
||||
CIMGUI_API void igSetNextWindowBgAlpha(float alpha);
|
||||
CIMGUI_API void igSetWindowPosVec2(const ImVec2 pos,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowSizeVec2(const ImVec2 size,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowCollapsedBool(bool collapsed,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowFocus();
|
||||
CIMGUI_API void igSetWindowFocus(void);
|
||||
CIMGUI_API void igSetWindowFontScale(float scale);
|
||||
CIMGUI_API void igSetWindowPosStr(const char* name,const ImVec2 pos,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowSizeStr(const char* name,const ImVec2 size,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowCollapsedStr(const char* name,bool collapsed,ImGuiCond cond);
|
||||
CIMGUI_API void igSetWindowFocusStr(const char* name);
|
||||
CIMGUI_API float igGetScrollX();
|
||||
CIMGUI_API float igGetScrollY();
|
||||
CIMGUI_API float igGetScrollMaxX();
|
||||
CIMGUI_API float igGetScrollMaxY();
|
||||
CIMGUI_API float igGetScrollX(void);
|
||||
CIMGUI_API float igGetScrollY(void);
|
||||
CIMGUI_API float igGetScrollMaxX(void);
|
||||
CIMGUI_API float igGetScrollMaxY(void);
|
||||
CIMGUI_API void igSetScrollX(float scroll_x);
|
||||
CIMGUI_API void igSetScrollY(float scroll_y);
|
||||
CIMGUI_API void igSetScrollHere(float center_y_ratio);
|
||||
CIMGUI_API void igSetScrollFromPosY(float pos_y,float center_y_ratio);
|
||||
CIMGUI_API void igPushFont(ImFont* font);
|
||||
CIMGUI_API void igPopFont();
|
||||
CIMGUI_API void igPopFont(void);
|
||||
CIMGUI_API void igPushStyleColorU32(ImGuiCol idx,ImU32 col);
|
||||
CIMGUI_API void igPushStyleColor(ImGuiCol idx,const ImVec4 col);
|
||||
CIMGUI_API void igPopStyleColor(int count);
|
||||
@@ -895,49 +911,49 @@ CIMGUI_API void igPushStyleVarFloat(ImGuiStyleVar idx,float val);
|
||||
CIMGUI_API void igPushStyleVarVec2(ImGuiStyleVar idx,const ImVec2 val);
|
||||
CIMGUI_API void igPopStyleVar(int count);
|
||||
CIMGUI_API const ImVec4* igGetStyleColorVec4(ImGuiCol idx);
|
||||
CIMGUI_API ImFont* igGetFont();
|
||||
CIMGUI_API float igGetFontSize();
|
||||
CIMGUI_API ImVec2 igGetFontTexUvWhitePixel();
|
||||
CIMGUI_API ImFont* igGetFont(void);
|
||||
CIMGUI_API float igGetFontSize(void);
|
||||
CIMGUI_API ImVec2 igGetFontTexUvWhitePixel(void);
|
||||
CIMGUI_API ImU32 igGetColorU32(ImGuiCol idx,float alpha_mul);
|
||||
CIMGUI_API ImU32 igGetColorU32Vec4(const ImVec4 col);
|
||||
CIMGUI_API ImU32 igGetColorU32U32(ImU32 col);
|
||||
CIMGUI_API void igPushItemWidth(float item_width);
|
||||
CIMGUI_API void igPopItemWidth();
|
||||
CIMGUI_API float igCalcItemWidth();
|
||||
CIMGUI_API void igPopItemWidth(void);
|
||||
CIMGUI_API float igCalcItemWidth(void);
|
||||
CIMGUI_API void igPushTextWrapPos(float wrap_pos_x);
|
||||
CIMGUI_API void igPopTextWrapPos();
|
||||
CIMGUI_API void igPopTextWrapPos(void);
|
||||
CIMGUI_API void igPushAllowKeyboardFocus(bool allow_keyboard_focus);
|
||||
CIMGUI_API void igPopAllowKeyboardFocus();
|
||||
CIMGUI_API void igPopAllowKeyboardFocus(void);
|
||||
CIMGUI_API void igPushButtonRepeat(bool repeat);
|
||||
CIMGUI_API void igPopButtonRepeat();
|
||||
CIMGUI_API void igSeparator();
|
||||
CIMGUI_API void igPopButtonRepeat(void);
|
||||
CIMGUI_API void igSeparator(void);
|
||||
CIMGUI_API void igSameLine(float pos_x,float spacing_w);
|
||||
CIMGUI_API void igNewLine();
|
||||
CIMGUI_API void igSpacing();
|
||||
CIMGUI_API void igNewLine(void);
|
||||
CIMGUI_API void igSpacing(void);
|
||||
CIMGUI_API void igDummy(const ImVec2 size);
|
||||
CIMGUI_API void igIndent(float indent_w);
|
||||
CIMGUI_API void igUnindent(float indent_w);
|
||||
CIMGUI_API void igBeginGroup();
|
||||
CIMGUI_API void igEndGroup();
|
||||
CIMGUI_API ImVec2 igGetCursorPos();
|
||||
CIMGUI_API float igGetCursorPosX();
|
||||
CIMGUI_API float igGetCursorPosY();
|
||||
CIMGUI_API void igBeginGroup(void);
|
||||
CIMGUI_API void igEndGroup(void);
|
||||
CIMGUI_API ImVec2 igGetCursorPos(void);
|
||||
CIMGUI_API float igGetCursorPosX(void);
|
||||
CIMGUI_API float igGetCursorPosY(void);
|
||||
CIMGUI_API void igSetCursorPos(const ImVec2 local_pos);
|
||||
CIMGUI_API void igSetCursorPosX(float x);
|
||||
CIMGUI_API void igSetCursorPosY(float y);
|
||||
CIMGUI_API ImVec2 igGetCursorStartPos();
|
||||
CIMGUI_API ImVec2 igGetCursorScreenPos();
|
||||
CIMGUI_API ImVec2 igGetCursorStartPos(void);
|
||||
CIMGUI_API ImVec2 igGetCursorScreenPos(void);
|
||||
CIMGUI_API void igSetCursorScreenPos(const ImVec2 screen_pos);
|
||||
CIMGUI_API void igAlignTextToFramePadding();
|
||||
CIMGUI_API float igGetTextLineHeight();
|
||||
CIMGUI_API float igGetTextLineHeightWithSpacing();
|
||||
CIMGUI_API float igGetFrameHeight();
|
||||
CIMGUI_API float igGetFrameHeightWithSpacing();
|
||||
CIMGUI_API void igAlignTextToFramePadding(void);
|
||||
CIMGUI_API float igGetTextLineHeight(void);
|
||||
CIMGUI_API float igGetTextLineHeightWithSpacing(void);
|
||||
CIMGUI_API float igGetFrameHeight(void);
|
||||
CIMGUI_API float igGetFrameHeightWithSpacing(void);
|
||||
CIMGUI_API void igPushIDStr(const char* str_id);
|
||||
CIMGUI_API void igPushIDRange(const char* str_id_begin,const char* str_id_end);
|
||||
CIMGUI_API void igPushIDPtr(const void* ptr_id);
|
||||
CIMGUI_API void igPushIDInt(int int_id);
|
||||
CIMGUI_API void igPopID();
|
||||
CIMGUI_API void igPopID(void);
|
||||
CIMGUI_API ImGuiID igGetIDStr(const char* str_id);
|
||||
CIMGUI_API ImGuiID igGetIDStrStr(const char* str_id_begin,const char* str_id_end);
|
||||
CIMGUI_API ImGuiID igGetIDPtr(const void* ptr_id);
|
||||
@@ -964,14 +980,10 @@ CIMGUI_API bool igCheckbox(const char* label,bool* v);
|
||||
CIMGUI_API bool igCheckboxFlags(const char* label,unsigned int* flags,unsigned int flags_value);
|
||||
CIMGUI_API bool igRadioButtonBool(const char* label,bool active);
|
||||
CIMGUI_API bool igRadioButtonIntPtr(const char* label,int* v,int v_button);
|
||||
CIMGUI_API void igPlotLines(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride);
|
||||
CIMGUI_API void igPlotLinesFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size);
|
||||
CIMGUI_API void igPlotHistogramFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride);
|
||||
CIMGUI_API void igPlotHistogramFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size);
|
||||
CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay);
|
||||
CIMGUI_API void igBullet();
|
||||
CIMGUI_API void igBullet(void);
|
||||
CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags);
|
||||
CIMGUI_API void igEndCombo();
|
||||
CIMGUI_API void igEndCombo(void);
|
||||
CIMGUI_API bool igCombo(const char* label,int* current_item,const char* const items[],int items_count,int popup_max_height_in_items);
|
||||
CIMGUI_API bool igComboStr(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items);
|
||||
CIMGUI_API bool igComboFnPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int popup_max_height_in_items);
|
||||
@@ -987,19 +999,6 @@ CIMGUI_API bool igDragInt4(const char* label,int v[4],float v_speed,int v_min,in
|
||||
CIMGUI_API bool igDragIntRange2(const char* label,int* v_current_min,int* v_current_max,float v_speed,int v_min,int v_max,const char* format,const char* format_max);
|
||||
CIMGUI_API bool igDragScalar(const char* label,ImGuiDataType data_type,void* v,float v_speed,const void* v_min,const void* v_max,const char* format,float power);
|
||||
CIMGUI_API bool igDragScalarN(const char* label,ImGuiDataType data_type,void* v,int components,float v_speed,const void* v_min,const void* v_max,const char* format,float power);
|
||||
CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiTextEditCallback callback,void* user_data);
|
||||
CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiTextEditCallback callback,void* user_data);
|
||||
CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputScalar(const char* label,ImGuiDataType data_type,void* v,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igSliderFloat(const char* label,float* v,float v_min,float v_max,const char* format,float power);
|
||||
CIMGUI_API bool igSliderFloat2(const char* label,float v[2],float v_min,float v_max,const char* format,float power);
|
||||
CIMGUI_API bool igSliderFloat3(const char* label,float v[3],float v_min,float v_max,const char* format,float power);
|
||||
@@ -1014,6 +1013,19 @@ CIMGUI_API bool igSliderScalarN(const char* label,ImGuiDataType data_type,void*
|
||||
CIMGUI_API bool igVSliderFloat(const char* label,const ImVec2 size,float* v,float v_min,float v_max,const char* format,float power);
|
||||
CIMGUI_API bool igVSliderInt(const char* label,const ImVec2 size,int* v,int v_min,int v_max,const char* format);
|
||||
CIMGUI_API bool igVSliderScalar(const char* label,const ImVec2 size,ImGuiDataType data_type,void* v,const void* v_min,const void* v_max,const char* format,float power);
|
||||
CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data);
|
||||
CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data);
|
||||
CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputScalar(const char* label,ImGuiDataType data_type,void* v,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igInputScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags);
|
||||
CIMGUI_API bool igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags flags);
|
||||
CIMGUI_API bool igColorEdit4(const char* label,float col[4],ImGuiColorEditFlags flags);
|
||||
CIMGUI_API bool igColorPicker3(const char* label,float col[3],ImGuiColorEditFlags flags);
|
||||
@@ -1032,9 +1044,9 @@ CIMGUI_API bool igTreeNodeExVStr(const char* str_id,ImGuiTreeNodeFlags flags,con
|
||||
CIMGUI_API bool igTreeNodeExVPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args);
|
||||
CIMGUI_API void igTreePushStr(const char* str_id);
|
||||
CIMGUI_API void igTreePushPtr(const void* ptr_id);
|
||||
CIMGUI_API void igTreePop();
|
||||
CIMGUI_API void igTreeAdvanceToLabelPos();
|
||||
CIMGUI_API float igGetTreeNodeToLabelSpacing();
|
||||
CIMGUI_API void igTreePop(void);
|
||||
CIMGUI_API void igTreeAdvanceToLabelPos(void);
|
||||
CIMGUI_API float igGetTreeNodeToLabelSpacing(void);
|
||||
CIMGUI_API void igSetNextTreeNodeOpen(bool is_open,ImGuiCond cond);
|
||||
CIMGUI_API bool igCollapsingHeader(const char* label,ImGuiTreeNodeFlags flags);
|
||||
CIMGUI_API bool igCollapsingHeaderBoolPtr(const char* label,bool* p_open,ImGuiTreeNodeFlags flags);
|
||||
@@ -1044,109 +1056,112 @@ CIMGUI_API bool igListBoxStr_arr(const char* label,int* current_item,const char*
|
||||
CIMGUI_API bool igListBoxFnPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items);
|
||||
CIMGUI_API bool igListBoxHeaderVec2(const char* label,const ImVec2 size);
|
||||
CIMGUI_API bool igListBoxHeaderInt(const char* label,int items_count,int height_in_items);
|
||||
CIMGUI_API void igListBoxFooter();
|
||||
CIMGUI_API void igListBoxFooter(void);
|
||||
CIMGUI_API void igPlotLines(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride);
|
||||
CIMGUI_API void igPlotLinesFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size);
|
||||
CIMGUI_API void igPlotHistogramFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride);
|
||||
CIMGUI_API void igPlotHistogramFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size);
|
||||
CIMGUI_API void igValueBool(const char* prefix,bool b);
|
||||
CIMGUI_API void igValueInt(const char* prefix,int v);
|
||||
CIMGUI_API void igValueUint(const char* prefix,unsigned int v);
|
||||
CIMGUI_API void igValueFloat(const char* prefix,float v,const char* float_format);
|
||||
CIMGUI_API void igBeginTooltip();
|
||||
CIMGUI_API void igEndTooltip();
|
||||
CIMGUI_API void igSetTooltip(const char* fmt,...);
|
||||
CIMGUI_API void igSetTooltipV(const char* fmt,va_list args);
|
||||
CIMGUI_API bool igBeginMainMenuBar();
|
||||
CIMGUI_API void igEndMainMenuBar();
|
||||
CIMGUI_API bool igBeginMenuBar();
|
||||
CIMGUI_API void igEndMenuBar();
|
||||
CIMGUI_API bool igBeginMainMenuBar(void);
|
||||
CIMGUI_API void igEndMainMenuBar(void);
|
||||
CIMGUI_API bool igBeginMenuBar(void);
|
||||
CIMGUI_API void igEndMenuBar(void);
|
||||
CIMGUI_API bool igBeginMenu(const char* label,bool enabled);
|
||||
CIMGUI_API void igEndMenu();
|
||||
CIMGUI_API void igEndMenu(void);
|
||||
CIMGUI_API bool igMenuItemBool(const char* label,const char* shortcut,bool selected,bool enabled);
|
||||
CIMGUI_API bool igMenuItemBoolPtr(const char* label,const char* shortcut,bool* p_selected,bool enabled);
|
||||
CIMGUI_API void igBeginTooltip(void);
|
||||
CIMGUI_API void igEndTooltip(void);
|
||||
CIMGUI_API void igSetTooltip(const char* fmt,...);
|
||||
CIMGUI_API void igSetTooltipV(const char* fmt,va_list args);
|
||||
CIMGUI_API void igOpenPopup(const char* str_id);
|
||||
CIMGUI_API bool igBeginPopup(const char* str_id,ImGuiWindowFlags flags);
|
||||
CIMGUI_API bool igBeginPopupContextItem(const char* str_id,int mouse_button);
|
||||
CIMGUI_API bool igBeginPopupContextWindow(const char* str_id,int mouse_button,bool also_over_items);
|
||||
CIMGUI_API bool igBeginPopupContextVoid(const char* str_id,int mouse_button);
|
||||
CIMGUI_API bool igBeginPopupModal(const char* name,bool* p_open,ImGuiWindowFlags flags);
|
||||
CIMGUI_API void igEndPopup();
|
||||
CIMGUI_API void igEndPopup(void);
|
||||
CIMGUI_API bool igOpenPopupOnItemClick(const char* str_id,int mouse_button);
|
||||
CIMGUI_API bool igIsPopupOpen(const char* str_id);
|
||||
CIMGUI_API void igCloseCurrentPopup();
|
||||
CIMGUI_API void igCloseCurrentPopup(void);
|
||||
CIMGUI_API void igColumns(int count,const char* id,bool border);
|
||||
CIMGUI_API void igNextColumn();
|
||||
CIMGUI_API int igGetColumnIndex();
|
||||
CIMGUI_API void igNextColumn(void);
|
||||
CIMGUI_API int igGetColumnIndex(void);
|
||||
CIMGUI_API float igGetColumnWidth(int column_index);
|
||||
CIMGUI_API void igSetColumnWidth(int column_index,float width);
|
||||
CIMGUI_API float igGetColumnOffset(int column_index);
|
||||
CIMGUI_API void igSetColumnOffset(int column_index,float offset_x);
|
||||
CIMGUI_API int igGetColumnsCount();
|
||||
CIMGUI_API int igGetColumnsCount(void);
|
||||
CIMGUI_API void igLogToTTY(int max_depth);
|
||||
CIMGUI_API void igLogToFile(int max_depth,const char* filename);
|
||||
CIMGUI_API void igLogToClipboard(int max_depth);
|
||||
CIMGUI_API void igLogFinish();
|
||||
CIMGUI_API void igLogButtons();
|
||||
CIMGUI_API void igLogFinish(void);
|
||||
CIMGUI_API void igLogButtons(void);
|
||||
CIMGUI_API bool igBeginDragDropSource(ImGuiDragDropFlags flags);
|
||||
CIMGUI_API bool igSetDragDropPayload(const char* type,const void* data,size_t size,ImGuiCond cond);
|
||||
CIMGUI_API void igEndDragDropSource();
|
||||
CIMGUI_API bool igBeginDragDropTarget();
|
||||
CIMGUI_API void igEndDragDropSource(void);
|
||||
CIMGUI_API bool igBeginDragDropTarget(void);
|
||||
CIMGUI_API const ImGuiPayload* igAcceptDragDropPayload(const char* type,ImGuiDragDropFlags flags);
|
||||
CIMGUI_API void igEndDragDropTarget();
|
||||
CIMGUI_API void igEndDragDropTarget(void);
|
||||
CIMGUI_API void igPushClipRect(const ImVec2 clip_rect_min,const ImVec2 clip_rect_max,bool intersect_with_current_clip_rect);
|
||||
CIMGUI_API void igPopClipRect();
|
||||
CIMGUI_API void igSetItemDefaultFocus();
|
||||
CIMGUI_API void igPopClipRect(void);
|
||||
CIMGUI_API void igSetItemDefaultFocus(void);
|
||||
CIMGUI_API void igSetKeyboardFocusHere(int offset);
|
||||
CIMGUI_API bool igIsItemHovered(ImGuiHoveredFlags flags);
|
||||
CIMGUI_API bool igIsItemActive();
|
||||
CIMGUI_API bool igIsItemFocused();
|
||||
CIMGUI_API bool igIsItemActive(void);
|
||||
CIMGUI_API bool igIsItemFocused(void);
|
||||
CIMGUI_API bool igIsItemClicked(int mouse_button);
|
||||
CIMGUI_API bool igIsItemVisible();
|
||||
CIMGUI_API bool igIsItemDeactivated();
|
||||
CIMGUI_API bool igIsItemDeactivatedAfterChange();
|
||||
CIMGUI_API bool igIsAnyItemHovered();
|
||||
CIMGUI_API bool igIsAnyItemActive();
|
||||
CIMGUI_API bool igIsAnyItemFocused();
|
||||
CIMGUI_API ImVec2 igGetItemRectMin();
|
||||
CIMGUI_API ImVec2 igGetItemRectMax();
|
||||
CIMGUI_API ImVec2 igGetItemRectSize();
|
||||
CIMGUI_API void igSetItemAllowOverlap();
|
||||
CIMGUI_API bool igIsItemVisible(void);
|
||||
CIMGUI_API bool igIsItemEdited(void);
|
||||
CIMGUI_API bool igIsItemDeactivated(void);
|
||||
CIMGUI_API bool igIsItemDeactivatedAfterEdit(void);
|
||||
CIMGUI_API bool igIsAnyItemHovered(void);
|
||||
CIMGUI_API bool igIsAnyItemActive(void);
|
||||
CIMGUI_API bool igIsAnyItemFocused(void);
|
||||
CIMGUI_API ImVec2 igGetItemRectMin(void);
|
||||
CIMGUI_API ImVec2 igGetItemRectMax(void);
|
||||
CIMGUI_API ImVec2 igGetItemRectSize(void);
|
||||
CIMGUI_API void igSetItemAllowOverlap(void);
|
||||
CIMGUI_API bool igIsRectVisible(const ImVec2 size);
|
||||
CIMGUI_API bool igIsRectVisibleVec2(const ImVec2 rect_min,const ImVec2 rect_max);
|
||||
CIMGUI_API float igGetTime();
|
||||
CIMGUI_API int igGetFrameCount();
|
||||
CIMGUI_API ImDrawList* igGetOverlayDrawList();
|
||||
CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData();
|
||||
CIMGUI_API double igGetTime(void);
|
||||
CIMGUI_API int igGetFrameCount(void);
|
||||
CIMGUI_API ImDrawList* igGetOverlayDrawList(void);
|
||||
CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData(void);
|
||||
CIMGUI_API const char* igGetStyleColorName(ImGuiCol idx);
|
||||
CIMGUI_API void igSetStateStorage(ImGuiStorage* storage);
|
||||
CIMGUI_API ImGuiStorage* igGetStateStorage();
|
||||
CIMGUI_API ImGuiStorage* igGetStateStorage(void);
|
||||
CIMGUI_API ImVec2 igCalcTextSize(const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width);
|
||||
CIMGUI_API void igCalcListClipping(int items_count,float items_height,int* out_items_display_start,int* out_items_display_end);
|
||||
CIMGUI_API bool igBeginChildFrame(ImGuiID id,const ImVec2 size,ImGuiWindowFlags flags);
|
||||
CIMGUI_API void igEndChildFrame();
|
||||
CIMGUI_API void igEndChildFrame(void);
|
||||
CIMGUI_API ImVec4 igColorConvertU32ToFloat4(ImU32 in);
|
||||
CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in);
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float out_h,float out_s,float out_v);
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float out_r,float out_g,float out_b);
|
||||
CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key);
|
||||
CIMGUI_API bool igIsKeyDown(int user_key_index);
|
||||
CIMGUI_API bool igIsKeyPressed(int user_key_index,bool repeat);
|
||||
CIMGUI_API bool igIsKeyReleased(int user_key_index);
|
||||
CIMGUI_API int igGetKeyPressedAmount(int key_index,float repeat_delay,float rate);
|
||||
CIMGUI_API bool igIsMouseDown(int button);
|
||||
CIMGUI_API bool igIsAnyMouseDown();
|
||||
CIMGUI_API bool igIsAnyMouseDown(void);
|
||||
CIMGUI_API bool igIsMouseClicked(int button,bool repeat);
|
||||
CIMGUI_API bool igIsMouseDoubleClicked(int button);
|
||||
CIMGUI_API bool igIsMouseReleased(int button);
|
||||
CIMGUI_API bool igIsMouseDragging(int button,float lock_threshold);
|
||||
CIMGUI_API bool igIsMouseHoveringRect(const ImVec2 r_min,const ImVec2 r_max,bool clip);
|
||||
CIMGUI_API bool igIsMousePosValid(const ImVec2* mouse_pos);
|
||||
CIMGUI_API ImVec2 igGetMousePos();
|
||||
CIMGUI_API ImVec2 igGetMousePosOnOpeningCurrentPopup();
|
||||
CIMGUI_API ImVec2 igGetMousePos(void);
|
||||
CIMGUI_API ImVec2 igGetMousePosOnOpeningCurrentPopup(void);
|
||||
CIMGUI_API ImVec2 igGetMouseDragDelta(int button,float lock_threshold);
|
||||
CIMGUI_API void igResetMouseDragDelta(int button);
|
||||
CIMGUI_API ImGuiMouseCursor igGetMouseCursor();
|
||||
CIMGUI_API ImGuiMouseCursor igGetMouseCursor(void);
|
||||
CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor type);
|
||||
CIMGUI_API void igCaptureKeyboardFromApp(bool capture);
|
||||
CIMGUI_API void igCaptureMouseFromApp(bool capture);
|
||||
CIMGUI_API const char* igGetClipboardText();
|
||||
CIMGUI_API const char* igGetClipboardText(void);
|
||||
CIMGUI_API void igSetClipboardText(const char* text);
|
||||
CIMGUI_API void igLoadIniSettingsFromDisk(const char* ini_filename);
|
||||
CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data,size_t ini_size);
|
||||
@@ -1158,19 +1173,16 @@ CIMGUI_API void igMemFree(void* ptr);
|
||||
CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor);
|
||||
CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self,ImWchar c);
|
||||
CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self,const char* utf8_chars);
|
||||
CIMGUI_API inline void ImGuiIO_ClearInputCharacters(ImGuiIO* self);
|
||||
CIMGUI_API const char* TextRange_begin(TextRange* self);
|
||||
CIMGUI_API const char* TextRange_end(TextRange* self);
|
||||
CIMGUI_API bool TextRange_empty(TextRange* self);
|
||||
CIMGUI_API char TextRange_front(TextRange* self);
|
||||
CIMGUI_API bool TextRange_is_blank(TextRange* self,char c);
|
||||
CIMGUI_API void TextRange_trim_blanks(TextRange* self);
|
||||
CIMGUI_API void TextRange_split(TextRange* self,char separator,ImVector_TextRange out);
|
||||
CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self);
|
||||
CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self,const char* label,float width);
|
||||
CIMGUI_API bool ImGuiTextFilter_PassFilter(ImGuiTextFilter* self,const char* text,const char* text_end);
|
||||
CIMGUI_API void ImGuiTextFilter_Build(ImGuiTextFilter* self);
|
||||
CIMGUI_API void ImGuiTextFilter_Clear(ImGuiTextFilter* self);
|
||||
CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self);
|
||||
CIMGUI_API const char* TextRange_begin(TextRange* self);
|
||||
CIMGUI_API const char* TextRange_end(TextRange* self);
|
||||
CIMGUI_API bool TextRange_empty(TextRange* self);
|
||||
CIMGUI_API void TextRange_split(TextRange* self,char separator,ImVector_TextRange* out);
|
||||
CIMGUI_API const char* ImGuiTextBuffer_begin(ImGuiTextBuffer* self);
|
||||
CIMGUI_API const char* ImGuiTextBuffer_end(ImGuiTextBuffer* self);
|
||||
CIMGUI_API int ImGuiTextBuffer_size(ImGuiTextBuffer* self);
|
||||
@@ -1194,14 +1206,14 @@ CIMGUI_API float* ImGuiStorage_GetFloatRef(ImGuiStorage* self,ImGuiID key,float
|
||||
CIMGUI_API void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self,ImGuiID key,void* default_val);
|
||||
CIMGUI_API void ImGuiStorage_SetAllInt(ImGuiStorage* self,int val);
|
||||
CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self);
|
||||
CIMGUI_API void ImGuiTextEditCallbackData_DeleteChars(ImGuiTextEditCallbackData* self,int pos,int bytes_count);
|
||||
CIMGUI_API void ImGuiTextEditCallbackData_InsertChars(ImGuiTextEditCallbackData* self,int pos,const char* text,const char* text_end);
|
||||
CIMGUI_API bool ImGuiTextEditCallbackData_HasSelection(ImGuiTextEditCallbackData* self);
|
||||
CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self,int pos,int bytes_count);
|
||||
CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end);
|
||||
CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self);
|
||||
CIMGUI_API void ImGuiPayload_Clear(ImGuiPayload* self);
|
||||
CIMGUI_API bool ImGuiPayload_IsDataType(ImGuiPayload* self,const char* type);
|
||||
CIMGUI_API bool ImGuiPayload_IsPreview(ImGuiPayload* self);
|
||||
CIMGUI_API bool ImGuiPayload_IsDelivery(ImGuiPayload* self);
|
||||
CIMGUI_API inline void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a);
|
||||
CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a);
|
||||
CIMGUI_API ImColor ImColor_HSV(ImColor* self,float h,float s,float v,float a);
|
||||
CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* self);
|
||||
CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* self,int items_count,float items_height);
|
||||
@@ -1211,8 +1223,8 @@ CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_PopClipRect(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_PushTextureID(ImDrawList* self,ImTextureID texture_id);
|
||||
CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self);
|
||||
CIMGUI_API inline ImVec2 ImDrawList_GetClipRectMin(ImDrawList* self);
|
||||
CIMGUI_API inline ImVec2 ImDrawList_GetClipRectMax(ImDrawList* self);
|
||||
CIMGUI_API ImVec2 ImDrawList_GetClipRectMin(ImDrawList* self);
|
||||
CIMGUI_API ImVec2 ImDrawList_GetClipRectMax(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col,float rounding,int rounding_corners_flags,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col,float rounding,int rounding_corners_flags);
|
||||
@@ -1231,11 +1243,11 @@ CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_tex
|
||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,const int num_points,ImU32 col,bool closed,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,const int num_points,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_AddBezierCurve(ImDrawList* self,const ImVec2 pos0,const ImVec2 cp0,const ImVec2 cp1,const ImVec2 pos1,ImU32 col,float thickness,int num_segments);
|
||||
CIMGUI_API inline void ImDrawList_PathClear(ImDrawList* self);
|
||||
CIMGUI_API inline void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos);
|
||||
CIMGUI_API inline void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos);
|
||||
CIMGUI_API inline void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col);
|
||||
CIMGUI_API inline void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness);
|
||||
CIMGUI_API void ImDrawList_PathClear(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos);
|
||||
CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos);
|
||||
CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness);
|
||||
CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2 centre,float radius,float a_min,float a_max,int num_segments);
|
||||
CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self,const ImVec2 centre,float radius,int a_min_of_12,int a_max_of_12);
|
||||
CIMGUI_API void ImDrawList_PathBezierCurveTo(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,int num_segments);
|
||||
@@ -1252,9 +1264,9 @@ CIMGUI_API void ImDrawList_PrimReserve(ImDrawList* self,int idx_count,int vtx_co
|
||||
CIMGUI_API void ImDrawList_PrimRect(ImDrawList* self,const ImVec2 a,const ImVec2 b,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 uv_a,const ImVec2 uv_b,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 d,const ImVec2 uv_a,const ImVec2 uv_b,const ImVec2 uv_c,const ImVec2 uv_d,ImU32 col);
|
||||
CIMGUI_API inline void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col);
|
||||
CIMGUI_API inline void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx);
|
||||
CIMGUI_API inline void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx);
|
||||
CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_UpdateClipRect(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_UpdateTextureID(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawData_Clear(ImDrawData* self);
|
||||
@@ -1309,6 +1321,50 @@ CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,
|
||||
CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size);
|
||||
CIMGUI_API void ImFont_AddGlyph(ImFont* self,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x);
|
||||
CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst);
|
||||
CIMGUI_API void igGetWindowPos_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetWindowPos_nonUDT2(void);
|
||||
CIMGUI_API void igGetWindowSize_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetWindowSize_nonUDT2(void);
|
||||
CIMGUI_API void igGetContentRegionMax_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetContentRegionMax_nonUDT2(void);
|
||||
CIMGUI_API void igGetContentRegionAvail_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetContentRegionAvail_nonUDT2(void);
|
||||
CIMGUI_API void igGetWindowContentRegionMin_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetWindowContentRegionMin_nonUDT2(void);
|
||||
CIMGUI_API void igGetWindowContentRegionMax_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetWindowContentRegionMax_nonUDT2(void);
|
||||
CIMGUI_API void igGetFontTexUvWhitePixel_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetFontTexUvWhitePixel_nonUDT2(void);
|
||||
CIMGUI_API void igGetCursorPos_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetCursorPos_nonUDT2(void);
|
||||
CIMGUI_API void igGetCursorStartPos_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetCursorStartPos_nonUDT2(void);
|
||||
CIMGUI_API void igGetCursorScreenPos_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetCursorScreenPos_nonUDT2(void);
|
||||
CIMGUI_API void igGetItemRectMin_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectMin_nonUDT2(void);
|
||||
CIMGUI_API void igGetItemRectMax_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectMax_nonUDT2(void);
|
||||
CIMGUI_API void igGetItemRectSize_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetItemRectSize_nonUDT2(void);
|
||||
CIMGUI_API void igCalcTextSize_nonUDT(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width);
|
||||
CIMGUI_API ImVec2_Simple igCalcTextSize_nonUDT2(const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width);
|
||||
CIMGUI_API void igColorConvertU32ToFloat4_nonUDT(ImVec4 *pOut,ImU32 in);
|
||||
CIMGUI_API ImVec4_Simple igColorConvertU32ToFloat4_nonUDT2(ImU32 in);
|
||||
CIMGUI_API void igGetMousePos_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetMousePos_nonUDT2(void);
|
||||
CIMGUI_API void igGetMousePosOnOpeningCurrentPopup_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetMousePosOnOpeningCurrentPopup_nonUDT2(void);
|
||||
CIMGUI_API void igGetMouseDragDelta_nonUDT(ImVec2 *pOut,int button,float lock_threshold);
|
||||
CIMGUI_API ImVec2_Simple igGetMouseDragDelta_nonUDT2(int button,float lock_threshold);
|
||||
CIMGUI_API void ImColor_HSV_nonUDT(ImColor* self,ImColor *pOut,float h,float s,float v,float a);
|
||||
CIMGUI_API ImColor_Simple ImColor_HSV_nonUDT2(ImColor* self,float h,float s,float v,float a);
|
||||
CIMGUI_API void ImDrawList_GetClipRectMin_nonUDT(ImDrawList* self,ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple ImDrawList_GetClipRectMin_nonUDT2(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_GetClipRectMax_nonUDT(ImDrawList* self,ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple ImDrawList_GetClipRectMax_nonUDT2(ImDrawList* self);
|
||||
CIMGUI_API void ImFont_CalcTextSizeA_nonUDT(ImFont* self,ImVec2 *pOut,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining);
|
||||
CIMGUI_API ImVec2_Simple ImFont_CalcTextSizeA_nonUDT2(ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** remaining);
|
||||
|
||||
|
||||
/////////////////////////hand written functions
|
||||
@@ -1319,5 +1375,9 @@ CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const ch
|
||||
CIMGUI_API void ImFontConfig_DefaultConstructor(ImFontConfig *config);
|
||||
//for getting FLT_MAX in bindings
|
||||
CIMGUI_API float igGET_FLT_MAX();
|
||||
//not const args from & to *
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float *out_h,float *out_s,float *out_v);
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float *out_r,float *out_g,float *out_b);
|
||||
|
||||
|
||||
|
@@ -1,8 +1,9 @@
|
||||
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
|
||||
//based on imgui.h file version "1.65" from Dear ImGui https://github.com/ocornut/imgui
|
||||
#include "./imgui/imgui.h"
|
||||
#include "cimgui_nopreprocess.h"
|
||||
|
||||
#include "../imgui/imgui.h"
|
||||
#include "cimgui_auto.h"
|
||||
|
||||
#include "../imgui/imgui_internal.h"
|
||||
#include "./imgui/imgui_internal.h"
|
||||
|
||||
CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas)
|
||||
{
|
||||
@@ -594,22 +595,6 @@ CIMGUI_API bool igRadioButtonIntPtr(const char* label,int* v,int v_button)
|
||||
{
|
||||
return ImGui::RadioButton(label,v,v_button);
|
||||
}
|
||||
CIMGUI_API void igPlotLines(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotLinesFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotLines(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* overlay)
|
||||
{
|
||||
return ImGui::ProgressBar(fraction,size_arg,overlay);
|
||||
@@ -686,58 +671,6 @@ CIMGUI_API bool igDragScalarN(const char* label,ImGuiDataType data_type,void* v,
|
||||
{
|
||||
return ImGui::DragScalarN(label,data_type,v,components,v_speed,v_min,v_max,format,power);
|
||||
}
|
||||
CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiTextEditCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputText(label,buf,buf_size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiTextEditCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputTextMultiline(label,buf,buf_size,size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat2(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat3(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat4(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt(label,v,step,step_fast,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt2(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt3(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt4(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputDouble(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalar(const char* label,ImGuiDataType data_type,void* v,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalar(label,data_type,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalarN(label,data_type,v,components,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igSliderFloat(const char* label,float* v,float v_min,float v_max,const char* format,float power)
|
||||
{
|
||||
return ImGui::SliderFloat(label,v,v_min,v_max,format,power);
|
||||
@@ -794,6 +727,58 @@ CIMGUI_API bool igVSliderScalar(const char* label,const ImVec2 size,ImGuiDataTyp
|
||||
{
|
||||
return ImGui::VSliderScalar(label,size,data_type,v,v_min,v_max,format,power);
|
||||
}
|
||||
CIMGUI_API bool igInputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputText(label,buf,buf_size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2 size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::InputTextMultiline(label,buf,buf_size,size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat2(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat3(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputFloat4(label,v,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt(label,v,step,step_fast,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt2(const char* label,int v[2],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt2(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt3(const char* label,int v[3],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt3(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputInt4(const char* label,int v[4],ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputInt4(label,v,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputDouble(label,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalar(const char* label,ImGuiDataType data_type,void* v,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalar(label,data_type,v,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igInputScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags)
|
||||
{
|
||||
return ImGui::InputScalarN(label,data_type,v,components,step,step_fast,format,extra_flags);
|
||||
}
|
||||
CIMGUI_API bool igColorEdit3(const char* label,float col[3],ImGuiColorEditFlags flags)
|
||||
{
|
||||
return ImGui::ColorEdit3(label,col,flags);
|
||||
@@ -826,15 +811,17 @@ CIMGUI_API bool igTreeNodeStrStr(const char* str_id,const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeV(str_id,fmt,args);
|
||||
bool ret = ImGui::TreeNodeV(str_id,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodePtr(const void* ptr_id,const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeV(ptr_id,fmt,args);
|
||||
bool ret = ImGui::TreeNodeV(ptr_id,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodeVStr(const char* str_id,const char* fmt,va_list args)
|
||||
{
|
||||
@@ -852,15 +839,17 @@ CIMGUI_API bool igTreeNodeExStrStr(const char* str_id,ImGuiTreeNodeFlags flags,c
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeExV(str_id,flags,fmt,args);
|
||||
bool ret = ImGui::TreeNodeExV(str_id,flags,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodeExPtr(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::TreeNodeExV(ptr_id,flags,fmt,args);
|
||||
bool ret = ImGui::TreeNodeExV(ptr_id,flags,fmt,args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
CIMGUI_API bool igTreeNodeExVStr(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args)
|
||||
{
|
||||
@@ -930,6 +919,22 @@ CIMGUI_API void igListBoxFooter()
|
||||
{
|
||||
return ImGui::ListBoxFooter();
|
||||
}
|
||||
CIMGUI_API void igPlotLines(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotLinesFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotLines(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
}
|
||||
CIMGUI_API void igPlotHistogramFnPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size)
|
||||
{
|
||||
return ImGui::PlotHistogram(label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size);
|
||||
}
|
||||
CIMGUI_API void igValueBool(const char* prefix,bool b)
|
||||
{
|
||||
return ImGui::Value(prefix,b);
|
||||
@@ -946,25 +951,6 @@ CIMGUI_API void igValueFloat(const char* prefix,float v,const char* float_format
|
||||
{
|
||||
return ImGui::Value(prefix,v,float_format);
|
||||
}
|
||||
CIMGUI_API void igBeginTooltip()
|
||||
{
|
||||
return ImGui::BeginTooltip();
|
||||
}
|
||||
CIMGUI_API void igEndTooltip()
|
||||
{
|
||||
return ImGui::EndTooltip();
|
||||
}
|
||||
CIMGUI_API void igSetTooltip(const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::SetTooltipV(fmt,args);
|
||||
va_end(args);
|
||||
}
|
||||
CIMGUI_API void igSetTooltipV(const char* fmt,va_list args)
|
||||
{
|
||||
return ImGui::SetTooltipV(fmt,args);
|
||||
}
|
||||
CIMGUI_API bool igBeginMainMenuBar()
|
||||
{
|
||||
return ImGui::BeginMainMenuBar();
|
||||
@@ -997,6 +983,25 @@ CIMGUI_API bool igMenuItemBoolPtr(const char* label,const char* shortcut,bool* p
|
||||
{
|
||||
return ImGui::MenuItem(label,shortcut,p_selected,enabled);
|
||||
}
|
||||
CIMGUI_API void igBeginTooltip()
|
||||
{
|
||||
return ImGui::BeginTooltip();
|
||||
}
|
||||
CIMGUI_API void igEndTooltip()
|
||||
{
|
||||
return ImGui::EndTooltip();
|
||||
}
|
||||
CIMGUI_API void igSetTooltip(const char* fmt,...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
ImGui::SetTooltipV(fmt,args);
|
||||
va_end(args);
|
||||
}
|
||||
CIMGUI_API void igSetTooltipV(const char* fmt,va_list args)
|
||||
{
|
||||
return ImGui::SetTooltipV(fmt,args);
|
||||
}
|
||||
CIMGUI_API void igOpenPopup(const char* str_id)
|
||||
{
|
||||
return ImGui::OpenPopup(str_id);
|
||||
@@ -1149,13 +1154,17 @@ CIMGUI_API bool igIsItemVisible()
|
||||
{
|
||||
return ImGui::IsItemVisible();
|
||||
}
|
||||
CIMGUI_API bool igIsItemEdited()
|
||||
{
|
||||
return ImGui::IsItemEdited();
|
||||
}
|
||||
CIMGUI_API bool igIsItemDeactivated()
|
||||
{
|
||||
return ImGui::IsItemDeactivated();
|
||||
}
|
||||
CIMGUI_API bool igIsItemDeactivatedAfterChange()
|
||||
CIMGUI_API bool igIsItemDeactivatedAfterEdit()
|
||||
{
|
||||
return ImGui::IsItemDeactivatedAfterChange();
|
||||
return ImGui::IsItemDeactivatedAfterEdit();
|
||||
}
|
||||
CIMGUI_API bool igIsAnyItemHovered()
|
||||
{
|
||||
@@ -1193,7 +1202,7 @@ CIMGUI_API bool igIsRectVisibleVec2(const ImVec2 rect_min,const ImVec2 rect_max)
|
||||
{
|
||||
return ImGui::IsRectVisible(rect_min,rect_max);
|
||||
}
|
||||
CIMGUI_API float igGetTime()
|
||||
CIMGUI_API double igGetTime()
|
||||
{
|
||||
return ImGui::GetTime();
|
||||
}
|
||||
@@ -1245,14 +1254,6 @@ CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in)
|
||||
{
|
||||
return ImGui::ColorConvertFloat4ToU32(in);
|
||||
}
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float out_h,float out_s,float out_v)
|
||||
{
|
||||
return ImGui::ColorConvertRGBtoHSV(r,g,b,out_h,out_s,out_v);
|
||||
}
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float out_r,float out_g,float out_b)
|
||||
{
|
||||
return ImGui::ColorConvertHSVtoRGB(h,s,v,out_r,out_g,out_b);
|
||||
}
|
||||
CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key)
|
||||
{
|
||||
return ImGui::GetKeyIndex(imgui_key);
|
||||
@@ -1385,38 +1386,10 @@ CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self,const char* utf8_ch
|
||||
{
|
||||
return self->AddInputCharactersUTF8(utf8_chars);
|
||||
}
|
||||
CIMGUI_API inline void ImGuiIO_ClearInputCharacters(ImGuiIO* self)
|
||||
CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self)
|
||||
{
|
||||
return self->ClearInputCharacters();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_begin(TextRange* self)
|
||||
{
|
||||
return self->begin();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_end(TextRange* self)
|
||||
{
|
||||
return self->end();
|
||||
}
|
||||
CIMGUI_API bool TextRange_empty(TextRange* self)
|
||||
{
|
||||
return self->empty();
|
||||
}
|
||||
CIMGUI_API char TextRange_front(TextRange* self)
|
||||
{
|
||||
return self->front();
|
||||
}
|
||||
CIMGUI_API bool TextRange_is_blank(TextRange* self,char c)
|
||||
{
|
||||
return self->is_blank(c);
|
||||
}
|
||||
CIMGUI_API void TextRange_trim_blanks(TextRange* self)
|
||||
{
|
||||
return self->trim_blanks();
|
||||
}
|
||||
CIMGUI_API void TextRange_split(TextRange* self,char separator,ImVector_TextRange out)
|
||||
{
|
||||
return self->split(separator,out);
|
||||
}
|
||||
CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self,const char* label,float width)
|
||||
{
|
||||
return self->Draw(label,width);
|
||||
@@ -1437,6 +1410,22 @@ CIMGUI_API bool ImGuiTextFilter_IsActive(ImGuiTextFilter* self)
|
||||
{
|
||||
return self->IsActive();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_begin(TextRange* self)
|
||||
{
|
||||
return self->begin();
|
||||
}
|
||||
CIMGUI_API const char* TextRange_end(TextRange* self)
|
||||
{
|
||||
return self->end();
|
||||
}
|
||||
CIMGUI_API bool TextRange_empty(TextRange* self)
|
||||
{
|
||||
return self->empty();
|
||||
}
|
||||
CIMGUI_API void TextRange_split(TextRange* self,char separator,ImVector_TextRange* out)
|
||||
{
|
||||
return self->split(separator,out);
|
||||
}
|
||||
CIMGUI_API const char* ImGuiTextBuffer_begin(ImGuiTextBuffer* self)
|
||||
{
|
||||
return self->begin();
|
||||
@@ -1529,15 +1518,15 @@ CIMGUI_API void ImGuiStorage_BuildSortByKey(ImGuiStorage* self)
|
||||
{
|
||||
return self->BuildSortByKey();
|
||||
}
|
||||
CIMGUI_API void ImGuiTextEditCallbackData_DeleteChars(ImGuiTextEditCallbackData* self,int pos,int bytes_count)
|
||||
CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self,int pos,int bytes_count)
|
||||
{
|
||||
return self->DeleteChars(pos,bytes_count);
|
||||
}
|
||||
CIMGUI_API void ImGuiTextEditCallbackData_InsertChars(ImGuiTextEditCallbackData* self,int pos,const char* text,const char* text_end)
|
||||
CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self,int pos,const char* text,const char* text_end)
|
||||
{
|
||||
return self->InsertChars(pos,text,text_end);
|
||||
}
|
||||
CIMGUI_API bool ImGuiTextEditCallbackData_HasSelection(ImGuiTextEditCallbackData* self)
|
||||
CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self)
|
||||
{
|
||||
return self->HasSelection();
|
||||
}
|
||||
@@ -1557,7 +1546,7 @@ CIMGUI_API bool ImGuiPayload_IsDelivery(ImGuiPayload* self)
|
||||
{
|
||||
return self->IsDelivery();
|
||||
}
|
||||
CIMGUI_API inline void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a)
|
||||
CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a)
|
||||
{
|
||||
return self->SetHSV(h,s,v,a);
|
||||
}
|
||||
@@ -1597,11 +1586,11 @@ CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self)
|
||||
{
|
||||
return self->PopTextureID();
|
||||
}
|
||||
CIMGUI_API inline ImVec2 ImDrawList_GetClipRectMin(ImDrawList* self)
|
||||
CIMGUI_API ImVec2 ImDrawList_GetClipRectMin(ImDrawList* self)
|
||||
{
|
||||
return self->GetClipRectMin();
|
||||
}
|
||||
CIMGUI_API inline ImVec2 ImDrawList_GetClipRectMax(ImDrawList* self)
|
||||
CIMGUI_API ImVec2 ImDrawList_GetClipRectMax(ImDrawList* self)
|
||||
{
|
||||
return self->GetClipRectMax();
|
||||
}
|
||||
@@ -1677,23 +1666,23 @@ CIMGUI_API void ImDrawList_AddBezierCurve(ImDrawList* self,const ImVec2 pos0,con
|
||||
{
|
||||
return self->AddBezierCurve(pos0,cp0,cp1,pos1,col,thickness,num_segments);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathClear(ImDrawList* self)
|
||||
CIMGUI_API void ImDrawList_PathClear(ImDrawList* self)
|
||||
{
|
||||
return self->PathClear();
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos)
|
||||
CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos)
|
||||
{
|
||||
return self->PathLineTo(pos);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos)
|
||||
CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos)
|
||||
{
|
||||
return self->PathLineToMergeDuplicate(pos);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col)
|
||||
CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col)
|
||||
{
|
||||
return self->PathFillConvex(col);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness)
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness)
|
||||
{
|
||||
return self->PathStroke(col,closed,thickness);
|
||||
}
|
||||
@@ -1761,15 +1750,15 @@ CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self,const ImVec2 a,const ImVe
|
||||
{
|
||||
return self->PrimQuadUV(a,b,c,d,uv_a,uv_b,uv_c,uv_d,col);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
{
|
||||
return self->PrimWriteVtx(pos,uv,col);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx)
|
||||
CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self,ImDrawIdx idx)
|
||||
{
|
||||
return self->PrimWriteIdx(idx);
|
||||
}
|
||||
CIMGUI_API inline void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self,const ImVec2 pos,const ImVec2 uv,ImU32 col)
|
||||
{
|
||||
return self->PrimVtx(pos,uv,col);
|
||||
}
|
||||
@@ -1991,6 +1980,7 @@ CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool ov
|
||||
}
|
||||
|
||||
|
||||
|
||||
/////////////////////////////manual written functions
|
||||
CIMGUI_API void igLogText(CONST char *fmt, ...)
|
||||
{
|
||||
@@ -2017,3 +2007,11 @@ CIMGUI_API float igGET_FLT_MAX()
|
||||
{
|
||||
return FLT_MAX;
|
||||
}
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float *out_h,float *out_s,float *out_v)
|
||||
{
|
||||
ImGui::ColorConvertRGBtoHSV(r,g,b,*out_h,*out_s,*out_v);
|
||||
}
|
||||
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float *out_r,float *out_g,float *out_b)
|
||||
{
|
||||
ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b);
|
||||
}
|
File diff suppressed because it is too large
Load Diff
1
generator/output/definitions.json
Normal file
1
generator/output/definitions.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
1
generator/output/impl_definitions.json
Normal file
1
generator/output/impl_definitions.json
Normal file
File diff suppressed because one or more lines are too long
@@ -4,10 +4,11 @@ defs["ImGui_ImplOpenGL3_NewFrame"][1] = {}
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["funcname"] = "ImGui_ImplOpenGL3_NewFrame"
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["location"] = "imgui_impl_opengl3"
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL3_NewFrame"][1]["signature"] = "()"
|
||||
@@ -18,10 +19,11 @@ defs["ImGui_ImplSDL2_Shutdown"][1] = {}
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["funcname"] = "ImGui_ImplSDL2_Shutdown"
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["args"] = "()"
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["comment"] = ""
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["stname"] = ""
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["comment"] = ""
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["location"] = "imgui_impl_sdl"
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplSDL2_Shutdown"][1]["signature"] = "()"
|
||||
@@ -32,10 +34,26 @@ defs["ImGui_ImplGlfw_KeyCallback"][1] = {}
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["funcname"] = "ImGui_ImplGlfw_KeyCallback"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["args"] = "(GLFWwindow* window,int key,int scancode,int action,int mods)"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["call_args"] = "(window,key,scancode,action,mods)"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int key,int scancode,int action,int mods)"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["stname"] = ""
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1]["type"] = "GLFWwindow*"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][1]["name"] = "window"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2] = {}
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2]["type"] = "int"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][2]["name"] = "key"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3] = {}
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3]["type"] = "int"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][3]["name"] = "scancode"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4] = {}
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4]["type"] = "int"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][4]["name"] = "action"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5] = {}
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5]["type"] = "int"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["argsT"][5]["name"] = "mods"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["location"] = "imgui_impl_glfw"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["signature"] = "(GLFWwindow*,int,int,int,int)"
|
||||
@@ -46,10 +64,17 @@ defs["ImGui_ImplGlfw_InitForVulkan"][1] = {}
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["funcname"] = "ImGui_ImplGlfw_InitForVulkan"
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)"
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["call_args"] = "(window,install_callbacks)"
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)"
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["stname"] = ""
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1]["type"] = "GLFWwindow*"
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][1]["name"] = "window"
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2] = {}
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2]["type"] = "bool"
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["argsT"][2]["name"] = "install_callbacks"
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["location"] = "imgui_impl_glfw"
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["signature"] = "(GLFWwindow*,bool)"
|
||||
@@ -60,10 +85,14 @@ defs["ImGui_ImplSDL2_NewFrame"][1] = {}
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["funcname"] = "ImGui_ImplSDL2_NewFrame"
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["args"] = "(SDL_Window* window)"
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["comment"] = ""
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["call_args"] = "(window)"
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["argsoriginal"] = "(SDL_Window* window)"
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["stname"] = ""
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["comment"] = ""
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["argsT"][1]["type"] = "SDL_Window*"
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["argsT"][1]["name"] = "window"
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["location"] = "imgui_impl_sdl"
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplSDL2_NewFrame"][1]["signature"] = "(SDL_Window*)"
|
||||
@@ -74,10 +103,14 @@ defs["ImGui_ImplSDL2_InitForVulkan"][1] = {}
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["funcname"] = "ImGui_ImplSDL2_InitForVulkan"
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["args"] = "(SDL_Window* window)"
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["comment"] = ""
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["call_args"] = "(window)"
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsoriginal"] = "(SDL_Window* window)"
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["stname"] = ""
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["comment"] = ""
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1]["type"] = "SDL_Window*"
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["argsT"][1]["name"] = "window"
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["location"] = "imgui_impl_sdl"
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplSDL2_InitForVulkan"][1]["signature"] = "(SDL_Window*)"
|
||||
@@ -88,10 +121,20 @@ defs["ImGui_ImplGlfw_ScrollCallback"][1] = {}
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["funcname"] = "ImGui_ImplGlfw_ScrollCallback"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["args"] = "(GLFWwindow* window,double xoffset,double yoffset)"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["call_args"] = "(window,xoffset,yoffset)"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsoriginal"] = "(GLFWwindow* window,double xoffset,double yoffset)"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["stname"] = ""
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1]["type"] = "GLFWwindow*"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][1]["name"] = "window"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2] = {}
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2]["type"] = "double"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][2]["name"] = "xoffset"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3] = {}
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3]["type"] = "double"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["argsT"][3]["name"] = "yoffset"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["location"] = "imgui_impl_glfw"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["signature"] = "(GLFWwindow*,double,double)"
|
||||
@@ -102,12 +145,17 @@ defs["ImGui_ImplOpenGL3_Init"][1] = {}
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["funcname"] = "ImGui_ImplOpenGL3_Init"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["args"] = "(const char* glsl_version)"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["call_args"] = "(glsl_version)"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["argsoriginal"] = "(const char* glsl_version=\"#version 150\")"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["call_args"] = "(glsl_version)"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["argsoriginal"] = "(const char* glsl_version=NULL)"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1]["type"] = "const char*"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["argsT"][1]["name"] = "glsl_version"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["location"] = "imgui_impl_opengl3"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["defaults"]["glsl_version"] = "NULL"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["signature"] = "(const char*)"
|
||||
defs["ImGui_ImplOpenGL3_Init"][1]["cimguiname"] = "ImGui_ImplOpenGL3_Init"
|
||||
defs["ImGui_ImplOpenGL3_Init"]["(const char*)"] = defs["ImGui_ImplOpenGL3_Init"][1]
|
||||
@@ -116,10 +164,17 @@ defs["ImGui_ImplSDL2_InitForOpenGL"][1] = {}
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["funcname"] = "ImGui_ImplSDL2_InitForOpenGL"
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["args"] = "(SDL_Window* window,void* sdl_gl_context)"
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["comment"] = ""
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["call_args"] = "(window,sdl_gl_context)"
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsoriginal"] = "(SDL_Window* window,void* sdl_gl_context)"
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["stname"] = ""
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["comment"] = ""
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1]["type"] = "SDL_Window*"
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][1]["name"] = "window"
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2] = {}
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2]["type"] = "void*"
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["argsT"][2]["name"] = "sdl_gl_context"
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["location"] = "imgui_impl_sdl"
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplSDL2_InitForOpenGL"][1]["signature"] = "(SDL_Window*,void*)"
|
||||
@@ -130,10 +185,17 @@ defs["ImGui_ImplGlfw_InitForOpenGL"][1] = {}
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["funcname"] = "ImGui_ImplGlfw_InitForOpenGL"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["call_args"] = "(window,install_callbacks)"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["stname"] = ""
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1]["type"] = "GLFWwindow*"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][1]["name"] = "window"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2] = {}
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2]["type"] = "bool"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["argsT"][2]["name"] = "install_callbacks"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["location"] = "imgui_impl_glfw"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["signature"] = "(GLFWwindow*,bool)"
|
||||
@@ -144,10 +206,11 @@ defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1] = {}
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL2_DestroyDeviceObjects"
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["location"] = "imgui_impl_opengl2"
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL2_DestroyDeviceObjects"][1]["signature"] = "()"
|
||||
@@ -158,10 +221,11 @@ defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1] = {}
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL2_DestroyFontsTexture"
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["location"] = "imgui_impl_opengl2"
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL2_DestroyFontsTexture"][1]["signature"] = "()"
|
||||
@@ -172,10 +236,11 @@ defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1] = {}
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL2_CreateDeviceObjects"
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["location"] = "imgui_impl_opengl2"
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL2_CreateDeviceObjects"][1]["signature"] = "()"
|
||||
@@ -186,10 +251,11 @@ defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1] = {}
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL3_CreateFontsTexture"
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["location"] = "imgui_impl_opengl3"
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL3_CreateFontsTexture"][1]["signature"] = "()"
|
||||
@@ -200,10 +266,11 @@ defs["ImGui_ImplGlfw_Shutdown"][1] = {}
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["funcname"] = "ImGui_ImplGlfw_Shutdown"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["args"] = "()"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["stname"] = ""
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["location"] = "imgui_impl_glfw"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["signature"] = "()"
|
||||
@@ -214,10 +281,14 @@ defs["ImGui_ImplOpenGL2_RenderDrawData"][1] = {}
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["funcname"] = "ImGui_ImplOpenGL2_RenderDrawData"
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["args"] = "(ImDrawData* draw_data)"
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["call_args"] = "(draw_data)"
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsoriginal"] = "(ImDrawData* draw_data)"
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1]["type"] = "ImDrawData*"
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["argsT"][1]["name"] = "draw_data"
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["location"] = "imgui_impl_opengl2"
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL2_RenderDrawData"][1]["signature"] = "(ImDrawData*)"
|
||||
@@ -228,10 +299,11 @@ defs["ImGui_ImplOpenGL2_NewFrame"][1] = {}
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["funcname"] = "ImGui_ImplOpenGL2_NewFrame"
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["location"] = "imgui_impl_opengl2"
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL2_NewFrame"][1]["signature"] = "()"
|
||||
@@ -242,10 +314,11 @@ defs["ImGui_ImplOpenGL2_Shutdown"][1] = {}
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["funcname"] = "ImGui_ImplOpenGL2_Shutdown"
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["location"] = "imgui_impl_opengl2"
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL2_Shutdown"][1]["signature"] = "()"
|
||||
@@ -256,10 +329,11 @@ defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1] = {}
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL3_DestroyDeviceObjects"
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["location"] = "imgui_impl_opengl3"
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL3_DestroyDeviceObjects"][1]["signature"] = "()"
|
||||
@@ -270,10 +344,11 @@ defs["ImGui_ImplGlfw_NewFrame"][1] = {}
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["funcname"] = "ImGui_ImplGlfw_NewFrame"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["args"] = "()"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["stname"] = ""
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["location"] = "imgui_impl_glfw"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["signature"] = "()"
|
||||
@@ -284,10 +359,11 @@ defs["ImGui_ImplOpenGL3_Shutdown"][1] = {}
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["funcname"] = "ImGui_ImplOpenGL3_Shutdown"
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["location"] = "imgui_impl_opengl3"
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL3_Shutdown"][1]["signature"] = "()"
|
||||
@@ -298,10 +374,11 @@ defs["ImGui_ImplOpenGL2_Init"][1] = {}
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["funcname"] = "ImGui_ImplOpenGL2_Init"
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["location"] = "imgui_impl_opengl2"
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL2_Init"][1]["signature"] = "()"
|
||||
@@ -312,10 +389,14 @@ defs["ImGui_ImplSDL2_ProcessEvent"][1] = {}
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["funcname"] = "ImGui_ImplSDL2_ProcessEvent"
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["args"] = "(SDL_Event* event)"
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["comment"] = ""
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["call_args"] = "(event)"
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsoriginal"] = "(SDL_Event* event)"
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["stname"] = ""
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["comment"] = ""
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1]["type"] = "SDL_Event*"
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["argsT"][1]["name"] = "event"
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["location"] = "imgui_impl_sdl"
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplSDL2_ProcessEvent"][1]["signature"] = "(SDL_Event*)"
|
||||
@@ -326,10 +407,23 @@ defs["ImGui_ImplGlfw_MouseButtonCallback"][1] = {}
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["funcname"] = "ImGui_ImplGlfw_MouseButtonCallback"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["args"] = "(GLFWwindow* window,int button,int action,int mods)"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["call_args"] = "(window,button,action,mods)"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsoriginal"] = "(GLFWwindow* window,int button,int action,int mods)"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["stname"] = ""
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1]["type"] = "GLFWwindow*"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][1]["name"] = "window"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2] = {}
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2]["type"] = "int"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][2]["name"] = "button"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3] = {}
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3]["type"] = "int"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][3]["name"] = "action"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4] = {}
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4]["type"] = "int"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["argsT"][4]["name"] = "mods"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["location"] = "imgui_impl_glfw"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["signature"] = "(GLFWwindow*,int,int,int)"
|
||||
@@ -340,10 +434,11 @@ defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1] = {}
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL2_CreateFontsTexture"
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["location"] = "imgui_impl_opengl2"
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL2_CreateFontsTexture"][1]["signature"] = "()"
|
||||
@@ -354,10 +449,11 @@ defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1] = {}
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["funcname"] = "ImGui_ImplOpenGL3_DestroyFontsTexture"
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["location"] = "imgui_impl_opengl3"
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL3_DestroyFontsTexture"][1]["signature"] = "()"
|
||||
@@ -368,10 +464,17 @@ defs["ImGui_ImplGlfw_CharCallback"][1] = {}
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["funcname"] = "ImGui_ImplGlfw_CharCallback"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["args"] = "(GLFWwindow* window,unsigned int c)"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["call_args"] = "(window,c)"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["argsoriginal"] = "(GLFWwindow* window,unsigned int c)"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["stname"] = ""
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["comment"] = ""
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1]["type"] = "GLFWwindow*"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][1]["name"] = "window"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2] = {}
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2]["type"] = "unsigned int"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["argsT"][2]["name"] = "c"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["location"] = "imgui_impl_glfw"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["signature"] = "(GLFWwindow*,unsigned int)"
|
||||
@@ -382,10 +485,14 @@ defs["ImGui_ImplOpenGL3_RenderDrawData"][1] = {}
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["funcname"] = "ImGui_ImplOpenGL3_RenderDrawData"
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["args"] = "(ImDrawData* draw_data)"
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["call_args"] = "(draw_data)"
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsoriginal"] = "(ImDrawData* draw_data)"
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1]["type"] = "ImDrawData*"
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["argsT"][1]["name"] = "draw_data"
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["location"] = "imgui_impl_opengl3"
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL3_RenderDrawData"][1]["signature"] = "(ImDrawData*)"
|
||||
@@ -396,10 +503,11 @@ defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1] = {}
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["funcname"] = "ImGui_ImplOpenGL3_CreateDeviceObjects"
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["argsoriginal"] = "()"
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["stname"] = ""
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["comment"] = ""
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["location"] = "imgui_impl_opengl3"
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplOpenGL3_CreateDeviceObjects"][1]["signature"] = "()"
|
@@ -38,16 +38,22 @@ igPlotHistogram 2
|
||||
igTreeNodeExV 2
|
||||
1 bool igTreeNodeExVStr (const char*,ImGuiTreeNodeFlags,const char*,va_list)
|
||||
2 bool igTreeNodeExVPtr (const void*,ImGuiTreeNodeFlags,const char*,va_list)
|
||||
igMenuItem 2
|
||||
1 bool igMenuItemBool (const char*,const char*,bool,bool)
|
||||
2 bool igMenuItemBoolPtr (const char*,const char*,bool*,bool)
|
||||
igGetID 3
|
||||
1 ImGuiID igGetIDStr (const char*)
|
||||
2 ImGuiID igGetIDStrStr (const char*,const char*)
|
||||
3 ImGuiID igGetIDPtr (const void*)
|
||||
igListBoxHeader 2
|
||||
1 bool igListBoxHeaderVec2 (const char*,const ImVec2)
|
||||
2 bool igListBoxHeaderInt (const char*,int,int)
|
||||
igTreePush 2
|
||||
1 void igTreePushStr (const char*)
|
||||
2 void igTreePushPtr (const void*)
|
||||
igBeginChild 2
|
||||
1 bool igBeginChild (const char*,const ImVec2,bool,ImGuiWindowFlags)
|
||||
2 bool igBeginChildID (ImGuiID,const ImVec2,bool,ImGuiWindowFlags)
|
||||
igSetWindowFocus 2
|
||||
1 void igSetWindowFocus ()
|
||||
2 void igSetWindowFocusStr (const char*)
|
||||
ImDrawList_AddText 2
|
||||
1 void ImDrawList_AddText (const ImVec2,ImU32,const char*,const char*)
|
||||
2 void ImDrawList_AddTextFontPtr (const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)
|
||||
@@ -66,16 +72,12 @@ Pair_Pair 3
|
||||
1 nil Pair_PairInt (ImGuiID,int)
|
||||
2 nil Pair_PairFloat (ImGuiID,float)
|
||||
3 nil Pair_PairPtr (ImGuiID,void*)
|
||||
igTreePush 2
|
||||
1 void igTreePushStr (const char*)
|
||||
2 void igTreePushPtr (const void*)
|
||||
TextRange_TextRange 2
|
||||
1 nil TextRange_TextRange ()
|
||||
2 nil TextRange_TextRangeStr (const char*,const char*)
|
||||
igGetColorU32 3
|
||||
1 ImU32 igGetColorU32 (ImGuiCol,float)
|
||||
2 ImU32 igGetColorU32Vec4 (const ImVec4)
|
||||
3 ImU32 igGetColorU32U32 (ImU32)
|
||||
igSetWindowFocus 2
|
||||
1 void igSetWindowFocus ()
|
||||
2 void igSetWindowFocusStr (const char*)
|
||||
ImColor_ImColor 5
|
||||
1 nil ImColor_ImColor ()
|
||||
2 nil ImColor_ImColorInt (int,int,int,int)
|
||||
@@ -88,12 +90,10 @@ igPushStyleColor 2
|
||||
igCollapsingHeader 2
|
||||
1 bool igCollapsingHeader (const char*,ImGuiTreeNodeFlags)
|
||||
2 bool igCollapsingHeaderBoolPtr (const char*,bool*,ImGuiTreeNodeFlags)
|
||||
igListBoxHeader 2
|
||||
1 bool igListBoxHeaderVec2 (const char*,const ImVec2)
|
||||
2 bool igListBoxHeaderInt (const char*,int,int)
|
||||
igMenuItem 2
|
||||
1 bool igMenuItemBool (const char*,const char*,bool,bool)
|
||||
2 bool igMenuItemBoolPtr (const char*,const char*,bool*,bool)
|
||||
igGetColorU32 3
|
||||
1 ImU32 igGetColorU32 (ImGuiCol,float)
|
||||
2 ImU32 igGetColorU32Vec4 (const ImVec4)
|
||||
3 ImU32 igGetColorU32U32 (ImU32)
|
||||
igSetWindowPos 2
|
||||
1 void igSetWindowPosVec2 (const ImVec2,ImGuiCond)
|
||||
2 void igSetWindowPosStr (const char*,const ImVec2,ImGuiCond)
|
1
generator/output/structs_and_enums.json
Normal file
1
generator/output/structs_and_enums.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
1
generator/output/typedefs_dict.json
Normal file
1
generator/output/typedefs_dict.json
Normal file
@@ -0,0 +1 @@
|
||||
{"ImGuiColumnsFlags":"int","ImFontConfig":"struct ImFontConfig","ImS32":"signed int","ImGuiTreeNodeFlags":"int","ImGuiFocusedFlags":"int","ImGuiHoveredFlags":"int","ImU64":"uint64_t","ImGuiID":"unsigned int","ImGuiStyle":"struct ImGuiStyle","ImDrawData":"struct ImDrawData","ImDrawListFlags":"int","ImGuiBackendFlags":"int","ImGuiMouseCursor":"int","ImDrawListSharedData":"struct ImDrawListSharedData","ImGuiStyleVar":"int","ImGuiDir":"int","ImFontAtlas":"struct ImFontAtlas","ImGuiCol":"int","ImGuiOnceUponAFrame":"struct ImGuiOnceUponAFrame","value_type":"T","iterator":"value_type*","ImGuiTextFilter":"struct ImGuiTextFilter","ImDrawIdx":"unsigned short","ImGuiComboFlags":"int","ImDrawCornerFlags":"int","ImWchar":"unsigned short","const_iterator":"const value_type*","ImDrawVert":"struct ImDrawVert","GlyphRangesBuilder":"struct GlyphRangesBuilder","ImVec4":"struct ImVec4","ImGuiSizeCallback":"void(*)(ImGuiSizeCallbackData* data);","ImGuiConfigFlags":"int","ImGuiTextBuffer":"struct ImGuiTextBuffer","ImGuiContext":"struct ImGuiContext","ImColor":"struct ImColor","ImGuiInputTextCallback":"int(*)(ImGuiInputTextCallbackData *data);","ImVec2":"struct ImVec2","ImFontGlyph":"struct ImFontGlyph","ImGuiWindowFlags":"int","Pair":"struct Pair","ImGuiKey":"int","ImGuiInputTextFlags":"int","ImGuiListClipper":"struct ImGuiListClipper","ImGuiDataType":"int","ImDrawChannel":"struct ImDrawChannel","ImGuiIO":"struct ImGuiIO","ImGuiStorage":"struct ImGuiStorage","ImGuiCond":"int","ImU32":"unsigned int","ImGuiNavInput":"int","ImGuiColorEditFlags":"int","ImFont":"struct ImFont","ImGuiSelectableFlags":"int","ImDrawCallback":"void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);","ImTextureID":"void*","ImDrawList":"struct ImDrawList","TextRange":"struct TextRange","CustomRect":"struct CustomRect","ImFontAtlasFlags":"int","ImGuiInputTextCallbackData":"struct ImGuiInputTextCallbackData","ImDrawCmd":"struct ImDrawCmd","ImGuiSizeCallbackData":"struct ImGuiSizeCallbackData","ImS64":"int64_t","ImGuiDragDropFlags":"int","ImGuiPayload":"struct ImGuiPayload"}
|
68
generator/output/typedefs_dict.lua
Normal file
68
generator/output/typedefs_dict.lua
Normal file
@@ -0,0 +1,68 @@
|
||||
local defs = {}
|
||||
defs["ImGuiColumnsFlags"] = "int"
|
||||
defs["ImFontConfig"] = "struct ImFontConfig"
|
||||
defs["ImS32"] = "signed int"
|
||||
defs["ImGuiTreeNodeFlags"] = "int"
|
||||
defs["ImGuiFocusedFlags"] = "int"
|
||||
defs["ImGuiHoveredFlags"] = "int"
|
||||
defs["ImU64"] = "uint64_t"
|
||||
defs["ImGuiID"] = "unsigned int"
|
||||
defs["ImGuiStyle"] = "struct ImGuiStyle"
|
||||
defs["ImDrawData"] = "struct ImDrawData"
|
||||
defs["ImDrawListFlags"] = "int"
|
||||
defs["ImGuiBackendFlags"] = "int"
|
||||
defs["ImGuiMouseCursor"] = "int"
|
||||
defs["ImDrawListSharedData"] = "struct ImDrawListSharedData"
|
||||
defs["ImGuiStyleVar"] = "int"
|
||||
defs["ImGuiDir"] = "int"
|
||||
defs["ImFontAtlas"] = "struct ImFontAtlas"
|
||||
defs["ImGuiCol"] = "int"
|
||||
defs["ImGuiOnceUponAFrame"] = "struct ImGuiOnceUponAFrame"
|
||||
defs["value_type"] = "T"
|
||||
defs["iterator"] = "value_type*"
|
||||
defs["ImGuiTextFilter"] = "struct ImGuiTextFilter"
|
||||
defs["ImDrawIdx"] = "unsigned short"
|
||||
defs["ImGuiComboFlags"] = "int"
|
||||
defs["ImDrawCornerFlags"] = "int"
|
||||
defs["ImWchar"] = "unsigned short"
|
||||
defs["const_iterator"] = "const value_type*"
|
||||
defs["ImDrawVert"] = "struct ImDrawVert"
|
||||
defs["GlyphRangesBuilder"] = "struct GlyphRangesBuilder"
|
||||
defs["ImVec4"] = "struct ImVec4"
|
||||
defs["ImGuiSizeCallback"] = "void(*)(ImGuiSizeCallbackData* data);"
|
||||
defs["ImGuiConfigFlags"] = "int"
|
||||
defs["ImGuiTextBuffer"] = "struct ImGuiTextBuffer"
|
||||
defs["ImGuiContext"] = "struct ImGuiContext"
|
||||
defs["ImColor"] = "struct ImColor"
|
||||
defs["ImGuiInputTextCallback"] = "int(*)(ImGuiInputTextCallbackData *data);"
|
||||
defs["ImVec2"] = "struct ImVec2"
|
||||
defs["ImFontGlyph"] = "struct ImFontGlyph"
|
||||
defs["ImGuiWindowFlags"] = "int"
|
||||
defs["Pair"] = "struct Pair"
|
||||
defs["ImGuiKey"] = "int"
|
||||
defs["ImGuiInputTextFlags"] = "int"
|
||||
defs["ImGuiListClipper"] = "struct ImGuiListClipper"
|
||||
defs["ImGuiDataType"] = "int"
|
||||
defs["ImDrawChannel"] = "struct ImDrawChannel"
|
||||
defs["ImGuiIO"] = "struct ImGuiIO"
|
||||
defs["ImGuiStorage"] = "struct ImGuiStorage"
|
||||
defs["ImGuiCond"] = "int"
|
||||
defs["ImU32"] = "unsigned int"
|
||||
defs["ImGuiNavInput"] = "int"
|
||||
defs["ImGuiColorEditFlags"] = "int"
|
||||
defs["ImFont"] = "struct ImFont"
|
||||
defs["ImGuiSelectableFlags"] = "int"
|
||||
defs["ImDrawCallback"] = "void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);"
|
||||
defs["ImTextureID"] = "void*"
|
||||
defs["ImDrawList"] = "struct ImDrawList"
|
||||
defs["TextRange"] = "struct TextRange"
|
||||
defs["CustomRect"] = "struct CustomRect"
|
||||
defs["ImFontAtlasFlags"] = "int"
|
||||
defs["ImGuiInputTextCallbackData"] = "struct ImGuiInputTextCallbackData"
|
||||
defs["ImDrawCmd"] = "struct ImDrawCmd"
|
||||
defs["ImGuiSizeCallbackData"] = "struct ImGuiSizeCallbackData"
|
||||
defs["ImS64"] = "int64_t"
|
||||
defs["ImGuiDragDropFlags"] = "int"
|
||||
defs["ImGuiPayload"] = "struct ImGuiPayload"
|
||||
|
||||
return defs
|
2
imgui
2
imgui
Submodule imgui updated: 00418d13e3...e0cab5664a
Reference in New Issue
Block a user