203 lines
6.1 KiB
C++
203 lines
6.1 KiB
C++
// THIS FILE HAS BEEN AUTO-GENERATED BY THE 'DEAR BINDINGS' GENERATOR.
|
|
// **DO NOT EDIT DIRECTLY**
|
|
// https://github.com/dearimgui/dear_bindings
|
|
|
|
#include "imgui.h"
|
|
#include "imgui_impl_glfw.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
// Wrap this in a namespace to keep it separate from the C++ API
|
|
// This define prevents #defines in the header getting defined again (as they are already in the normal header above),
|
|
// and thus generating redefinition warnings
|
|
#define DEAR_BINDINGS_INTERNAL_GLUE_CODE
|
|
namespace cimgui
|
|
{
|
|
#include "dcimgui_impl_glfw.h"
|
|
}
|
|
#undef DEAR_BINDINGS_INTERNAL_GLUE_CODE
|
|
|
|
// By-value struct conversions
|
|
|
|
static inline cimgui::ImVec2 ConvertFromCPP_ImVec2(const ::ImVec2& src)
|
|
{
|
|
cimgui::ImVec2 dest;
|
|
dest.x = src.x;
|
|
dest.y = src.y;
|
|
return dest;
|
|
}
|
|
|
|
static inline ::ImVec2 ConvertToCPP_ImVec2(const cimgui::ImVec2& src)
|
|
{
|
|
::ImVec2 dest;
|
|
dest.x = src.x;
|
|
dest.y = src.y;
|
|
return dest;
|
|
}
|
|
|
|
static inline cimgui::ImVec4 ConvertFromCPP_ImVec4(const ::ImVec4& src)
|
|
{
|
|
cimgui::ImVec4 dest;
|
|
dest.x = src.x;
|
|
dest.y = src.y;
|
|
dest.z = src.z;
|
|
dest.w = src.w;
|
|
return dest;
|
|
}
|
|
|
|
static inline ::ImVec4 ConvertToCPP_ImVec4(const cimgui::ImVec4& src)
|
|
{
|
|
::ImVec4 dest;
|
|
dest.x = src.x;
|
|
dest.y = src.y;
|
|
dest.z = src.z;
|
|
dest.w = src.w;
|
|
return dest;
|
|
}
|
|
|
|
static inline cimgui::ImTextureRef ConvertFromCPP_ImTextureRef(const ::ImTextureRef& src)
|
|
{
|
|
cimgui::ImTextureRef dest;
|
|
dest._TexData = reinterpret_cast<cimgui::ImTextureData*>(src._TexData);
|
|
dest._TexID = src._TexID;
|
|
return dest;
|
|
}
|
|
|
|
static inline ::ImTextureRef ConvertToCPP_ImTextureRef(const cimgui::ImTextureRef& src)
|
|
{
|
|
::ImTextureRef dest;
|
|
dest._TexData = reinterpret_cast<::ImTextureData*>(src._TexData);
|
|
dest._TexID = src._TexID;
|
|
return dest;
|
|
}
|
|
|
|
static inline cimgui::ImColor ConvertFromCPP_ImColor(const ::ImColor& src)
|
|
{
|
|
cimgui::ImColor dest;
|
|
dest.Value.x = src.Value.x;
|
|
dest.Value.y = src.Value.y;
|
|
dest.Value.z = src.Value.z;
|
|
dest.Value.w = src.Value.w;
|
|
return dest;
|
|
}
|
|
|
|
static inline ::ImColor ConvertToCPP_ImColor(const cimgui::ImColor& src)
|
|
{
|
|
::ImColor dest;
|
|
dest.Value.x = src.Value.x;
|
|
dest.Value.y = src.Value.y;
|
|
dest.Value.z = src.Value.z;
|
|
dest.Value.w = src.Value.w;
|
|
return dest;
|
|
}
|
|
|
|
// Function stubs
|
|
|
|
#ifndef IMGUI_DISABLE
|
|
|
|
CIMGUI_IMPL_API bool cimgui::cImGui_ImplGlfw_InitForOpenGL(cimgui::GLFWwindow* window, bool install_callbacks)
|
|
{
|
|
return ::ImGui_ImplGlfw_InitForOpenGL(reinterpret_cast<::GLFWwindow*>(window), install_callbacks);
|
|
}
|
|
|
|
CIMGUI_IMPL_API bool cimgui::cImGui_ImplGlfw_InitForVulkan(cimgui::GLFWwindow* window, bool install_callbacks)
|
|
{
|
|
return ::ImGui_ImplGlfw_InitForVulkan(reinterpret_cast<::GLFWwindow*>(window), install_callbacks);
|
|
}
|
|
|
|
CIMGUI_IMPL_API bool cimgui::cImGui_ImplGlfw_InitForOther(cimgui::GLFWwindow* window, bool install_callbacks)
|
|
{
|
|
return ::ImGui_ImplGlfw_InitForOther(reinterpret_cast<::GLFWwindow*>(window), install_callbacks);
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_Shutdown(void)
|
|
{
|
|
::ImGui_ImplGlfw_Shutdown();
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_NewFrame(void)
|
|
{
|
|
::ImGui_ImplGlfw_NewFrame();
|
|
}
|
|
|
|
#ifdef __EMSCRIPTEN__
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_InstallEmscriptenCallbacks(cimgui::GLFWwindow* window, const char* canvas_selector)
|
|
{
|
|
::ImGui_ImplGlfw_InstallEmscriptenCallbacks(reinterpret_cast<::GLFWwindow*>(window), canvas_selector);
|
|
}
|
|
|
|
#endif // #ifdef __EMSCRIPTEN__
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_InstallCallbacks(cimgui::GLFWwindow* window)
|
|
{
|
|
::ImGui_ImplGlfw_InstallCallbacks(reinterpret_cast<::GLFWwindow*>(window));
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_RestoreCallbacks(cimgui::GLFWwindow* window)
|
|
{
|
|
::ImGui_ImplGlfw_RestoreCallbacks(reinterpret_cast<::GLFWwindow*>(window));
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_SetCallbacksChainForAllWindows(bool chain_for_all_windows)
|
|
{
|
|
::ImGui_ImplGlfw_SetCallbacksChainForAllWindows(chain_for_all_windows);
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_WindowFocusCallback(cimgui::GLFWwindow* window, int focused)
|
|
{
|
|
::ImGui_ImplGlfw_WindowFocusCallback(reinterpret_cast<::GLFWwindow*>(window), focused);
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_CursorEnterCallback(cimgui::GLFWwindow* window, int entered)
|
|
{
|
|
::ImGui_ImplGlfw_CursorEnterCallback(reinterpret_cast<::GLFWwindow*>(window), entered);
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_CursorPosCallback(cimgui::GLFWwindow* window, double x, double y)
|
|
{
|
|
::ImGui_ImplGlfw_CursorPosCallback(reinterpret_cast<::GLFWwindow*>(window), x, y);
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_MouseButtonCallback(cimgui::GLFWwindow* window, int button, int action, int mods)
|
|
{
|
|
::ImGui_ImplGlfw_MouseButtonCallback(reinterpret_cast<::GLFWwindow*>(window), button, action, mods);
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_ScrollCallback(cimgui::GLFWwindow* window, double xoffset, double yoffset)
|
|
{
|
|
::ImGui_ImplGlfw_ScrollCallback(reinterpret_cast<::GLFWwindow*>(window), xoffset, yoffset);
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_KeyCallback(cimgui::GLFWwindow* window, int key, int scancode, int action, int mods)
|
|
{
|
|
::ImGui_ImplGlfw_KeyCallback(reinterpret_cast<::GLFWwindow*>(window), key, scancode, action, mods);
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_CharCallback(cimgui::GLFWwindow* window, unsigned int c)
|
|
{
|
|
::ImGui_ImplGlfw_CharCallback(reinterpret_cast<::GLFWwindow*>(window), c);
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_MonitorCallback(cimgui::GLFWmonitor* monitor, int event)
|
|
{
|
|
::ImGui_ImplGlfw_MonitorCallback(reinterpret_cast<::GLFWmonitor*>(monitor), event);
|
|
}
|
|
|
|
CIMGUI_IMPL_API void cimgui::cImGui_ImplGlfw_Sleep(int milliseconds)
|
|
{
|
|
::ImGui_ImplGlfw_Sleep(milliseconds);
|
|
}
|
|
|
|
CIMGUI_IMPL_API float cimgui::cImGui_ImplGlfw_GetContentScaleForWindow(cimgui::GLFWwindow* window)
|
|
{
|
|
return ::ImGui_ImplGlfw_GetContentScaleForWindow(reinterpret_cast<::GLFWwindow*>(window));
|
|
}
|
|
|
|
CIMGUI_IMPL_API float cimgui::cImGui_ImplGlfw_GetContentScaleForMonitor(cimgui::GLFWmonitor* monitor)
|
|
{
|
|
return ::ImGui_ImplGlfw_GetContentScaleForMonitor(reinterpret_cast<::GLFWmonitor*>(monitor));
|
|
}
|
|
|
|
#endif // #ifndef IMGUI_DISABLE
|