pull imgui docking 1.87 and generate

This commit is contained in:
sonoro1234
2022-02-07 18:56:16 +01:00
parent 1afd93dd45
commit 4492660bb9
14 changed files with 6667 additions and 3887 deletions

View File

@@ -1,5 +1,5 @@
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
//based on imgui.h file version "1.86" from Dear ImGui https://github.com/ocornut/imgui
//based on imgui.h file version "1.87" from Dear ImGui https://github.com/ocornut/imgui
//with imgui_internal.h api
//docking branch
#ifdef IMGUI_ENABLE_FREETYPE
@@ -1477,25 +1477,25 @@ CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,floa
{
return ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b);
}
CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key)
CIMGUI_API bool igIsKeyDown(ImGuiKey key)
{
return ImGui::GetKeyIndex(imgui_key);
return ImGui::IsKeyDown(key);
}
CIMGUI_API bool igIsKeyDown(int user_key_index)
CIMGUI_API bool igIsKeyPressed(ImGuiKey key,bool repeat)
{
return ImGui::IsKeyDown(user_key_index);
return ImGui::IsKeyPressed(key,repeat);
}
CIMGUI_API bool igIsKeyPressed(int user_key_index,bool repeat)
CIMGUI_API bool igIsKeyReleased(ImGuiKey key)
{
return ImGui::IsKeyPressed(user_key_index,repeat);
return ImGui::IsKeyReleased(key);
}
CIMGUI_API bool igIsKeyReleased(int user_key_index)
CIMGUI_API int igGetKeyPressedAmount(ImGuiKey key,float repeat_delay,float rate)
{
return ImGui::IsKeyReleased(user_key_index);
return ImGui::GetKeyPressedAmount(key,repeat_delay,rate);
}
CIMGUI_API int igGetKeyPressedAmount(int key_index,float repeat_delay,float rate)
CIMGUI_API const char* igGetKeyName(ImGuiKey key)
{
return ImGui::GetKeyPressedAmount(key_index,repeat_delay,rate);
return ImGui::GetKeyName(key);
}
CIMGUI_API void igCaptureKeyboardFromApp(bool want_capture_keyboard_value)
{
@@ -1645,6 +1645,34 @@ CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor)
{
return self->ScaleAllSizes(scale_factor);
}
CIMGUI_API void ImGuiIO_AddKeyEvent(ImGuiIO* self,ImGuiKey key,bool down)
{
return self->AddKeyEvent(key,down);
}
CIMGUI_API void ImGuiIO_AddKeyAnalogEvent(ImGuiIO* self,ImGuiKey key,bool down,float v)
{
return self->AddKeyAnalogEvent(key,down,v);
}
CIMGUI_API void ImGuiIO_AddMousePosEvent(ImGuiIO* self,float x,float y)
{
return self->AddMousePosEvent(x,y);
}
CIMGUI_API void ImGuiIO_AddMouseButtonEvent(ImGuiIO* self,int button,bool down)
{
return self->AddMouseButtonEvent(button,down);
}
CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self,float wh_x,float wh_y)
{
return self->AddMouseWheelEvent(wh_x,wh_y);
}
CIMGUI_API void ImGuiIO_AddMouseViewportEvent(ImGuiIO* self,ImGuiID id)
{
return self->AddMouseViewportEvent(id);
}
CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self,bool focused)
{
return self->AddFocusEvent(focused);
}
CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self,unsigned int c)
{
return self->AddInputCharacter(c);
@@ -1657,10 +1685,6 @@ CIMGUI_API void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self,const char* str)
{
return self->AddInputCharactersUTF8(str);
}
CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self,bool focused)
{
return self->AddFocusEvent(focused);
}
CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self)
{
return self->ClearInputCharacters();
@@ -1669,6 +1693,10 @@ CIMGUI_API void ImGuiIO_ClearInputKeys(ImGuiIO* self)
{
return self->ClearInputKeys();
}
CIMGUI_API void ImGuiIO_SetKeyEventNativeData(ImGuiIO* self,ImGuiKey key,int native_keycode,int native_scancode,int native_legacy_index)
{
return self->SetKeyEventNativeData(key,native_keycode,native_scancode,native_legacy_index);
}
CIMGUI_API ImGuiIO* ImGuiIO_ImGuiIO(void)
{
return IM_NEW(ImGuiIO)();
@@ -2581,6 +2609,18 @@ CIMGUI_API void ImGuiPlatformMonitor_destroy(ImGuiPlatformMonitor* self)
{
IM_DELETE(self);
}
CIMGUI_API ImGuiPlatformImeData* ImGuiPlatformImeData_ImGuiPlatformImeData(void)
{
return IM_NEW(ImGuiPlatformImeData)();
}
CIMGUI_API void ImGuiPlatformImeData_destroy(ImGuiPlatformImeData* self)
{
IM_DELETE(self);
}
CIMGUI_API int igGetKeyIndex(ImGuiKey key)
{
return ImGui::GetKeyIndex(key);
}
CIMGUI_API ImGuiID igImHashData(const void* data,size_t data_size,ImU32 seed)
{
return ImHashData(data,data_size,seed);
@@ -2833,7 +2873,7 @@ CIMGUI_API float igImFloor_Float(float f)
{
return ImFloor(f);
}
CIMGUI_API float igImFloorSigned(float f)
CIMGUI_API float igImFloorSigned_Float(float f)
{
return ImFloorSigned(f);
}
@@ -2841,6 +2881,10 @@ CIMGUI_API void igImFloor_Vec2(ImVec2 *pOut,const ImVec2 v)
{
*pOut = ImFloor(v);
}
CIMGUI_API void igImFloorSigned_Vec2(ImVec2 *pOut,const ImVec2 v)
{
*pOut = ImFloorSigned(v);
}
CIMGUI_API int igImModPositive(int a,int b)
{
return ImModPositive(a,b);
@@ -3285,6 +3329,14 @@ CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(int index)
{
return IM_NEW(ImGuiPtrOrIndex)(index);
}
CIMGUI_API ImGuiInputEvent* ImGuiInputEvent_ImGuiInputEvent(void)
{
return IM_NEW(ImGuiInputEvent)();
}
CIMGUI_API void ImGuiInputEvent_destroy(ImGuiInputEvent* self)
{
IM_DELETE(self);
}
CIMGUI_API ImGuiListClipperRange ImGuiListClipperRange_FromIndices(int min,int max)
{
return ImGuiListClipperRange::FromIndices(min,max);
@@ -3737,6 +3789,10 @@ CIMGUI_API void igShutdown(ImGuiContext* context)
{
return ImGui::Shutdown(context);
}
CIMGUI_API void igUpdateInputEvents(bool trickle_fast_inputs)
{
return ImGui::UpdateInputEvents(trickle_fast_inputs);
}
CIMGUI_API void igUpdateHoveredWindowAndCaptureFlags()
{
return ImGui::UpdateHoveredWindowAndCaptureFlags();
@@ -3789,6 +3845,10 @@ CIMGUI_API const ImGuiPlatformMonitor* igGetViewportPlatformMonitor(ImGuiViewpor
{
return ImGui::GetViewportPlatformMonitor(viewport);
}
CIMGUI_API ImGuiViewportP* igFindHoveredViewportFromPlatformWindowStack(const ImVec2 mouse_platform_pos)
{
return ImGui::FindHoveredViewportFromPlatformWindowStack(mouse_platform_pos);
}
CIMGUI_API void igMarkIniSettingsDirty_Nil()
{
return ImGui::MarkIniSettingsDirty();
@@ -4093,6 +4153,10 @@ CIMGUI_API void igNavMoveRequestTryWrapping(ImGuiWindow* window,ImGuiNavMoveFlag
{
return ImGui::NavMoveRequestTryWrapping(window,move_flags);
}
CIMGUI_API const char* igGetNavInputName(ImGuiNavInput n)
{
return ImGui::GetNavInputName(n);
}
CIMGUI_API float igGetNavInputAmount(ImGuiNavInput n,ImGuiInputReadMode mode)
{
return ImGui::GetNavInputAmount(n,mode);
@@ -4129,6 +4193,22 @@ CIMGUI_API ImGuiID igGetFocusScope()
{
return ImGui::GetFocusScope();
}
CIMGUI_API bool igIsNamedKey(ImGuiKey key)
{
return ImGui::IsNamedKey(key);
}
CIMGUI_API bool igIsLegacyKey(ImGuiKey key)
{
return ImGui::IsLegacyKey(key);
}
CIMGUI_API bool igIsGamepadKey(ImGuiKey key)
{
return ImGui::IsGamepadKey(key);
}
CIMGUI_API ImGuiKeyData* igGetKeyData(ImGuiKey key)
{
return ImGui::GetKeyData(key);
}
CIMGUI_API void igSetItemUsingMouseWheel()
{
return ImGui::SetItemUsingMouseWheel();
@@ -4149,14 +4229,14 @@ CIMGUI_API bool igIsActiveIdUsingKey(ImGuiKey key)
{
return ImGui::IsActiveIdUsingKey(key);
}
CIMGUI_API void igSetActiveIdUsingKey(ImGuiKey key)
{
return ImGui::SetActiveIdUsingKey(key);
}
CIMGUI_API bool igIsMouseDragPastThreshold(ImGuiMouseButton button,float lock_threshold)
{
return ImGui::IsMouseDragPastThreshold(button,lock_threshold);
}
CIMGUI_API bool igIsKeyPressedMap(ImGuiKey key,bool repeat)
{
return ImGui::IsKeyPressedMap(key,repeat);
}
CIMGUI_API bool igIsNavInputDown(ImGuiNavInput n)
{
return ImGui::IsNavInputDown(n);
@@ -4169,6 +4249,10 @@ CIMGUI_API ImGuiKeyModFlags igGetMergedKeyModFlags()
{
return ImGui::GetMergedKeyModFlags();
}
CIMGUI_API bool igIsKeyPressedMap(ImGuiKey key,bool repeat)
{
return ImGui::IsKeyPressedMap(key,repeat);
}
CIMGUI_API void igDockContextInitialize(ImGuiContext* ctx)
{
return ImGui::DockContextInitialize(ctx);
@@ -4781,9 +4865,9 @@ CIMGUI_API void igDataTypeApplyOp(ImGuiDataType data_type,int op,void* output,co
{
return ImGui::DataTypeApplyOp(data_type,op,output,arg_1,arg_2);
}
CIMGUI_API bool igDataTypeApplyOpFromText(const char* buf,const char* initial_value_buf,ImGuiDataType data_type,void* p_data,const char* format)
CIMGUI_API bool igDataTypeApplyFromText(const char* buf,ImGuiDataType data_type,void* p_data,const char* format)
{
return ImGui::DataTypeApplyOpFromText(buf,initial_value_buf,data_type,p_data,format);
return ImGui::DataTypeApplyFromText(buf,data_type,p_data,format);
}
CIMGUI_API int igDataTypeCompare(ImGuiDataType data_type,const void* arg_1,const void* arg_2)
{