117 lines
3.8 KiB
C++
117 lines
3.8 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
|
||
|
namespace cimgui
|
||
|
{
|
||
|
#include "impl_glfw.h"
|
||
|
}
|
||
|
|
||
|
// By-value struct conversions
|
||
|
|
||
|
// 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);
|
||
|
}
|
||
|
|
||
|
#endif // #ifndef IMGUI_DISABLE
|