Path Tracing
Loading...
Searching...
No Matches
imgui_impl_glfw.cpp File Reference
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include <GLFW/glfw3.h>
#include <unistd.h>
#include <stdio.h>
Include dependency graph for imgui_impl_glfw.cpp:

Classes

struct  ImGui_ImplGlfw_WindowToContext
struct  ImGui_ImplGlfw_Data

Namespaces

namespace  ImGui

Macros

#define GLFW_HAS_X11   0
#define GLFW_HAS_WAYLAND   0
#define GLFW_VERSION_COMBINED   (GLFW_VERSION_MAJOR * 1000 + GLFW_VERSION_MINOR * 100 + GLFW_VERSION_REVISION)
#define GLFW_HAS_CREATECURSOR   (GLFW_VERSION_COMBINED >= 3100)
#define GLFW_HAS_PER_MONITOR_DPI   (GLFW_VERSION_COMBINED >= 3300)
#define GLFW_HAS_NEW_CURSORS   (0)
#define GLFW_HAS_GAMEPAD_API   (GLFW_VERSION_COMBINED >= 3300)
#define GLFW_HAS_GETKEYNAME   (GLFW_VERSION_COMBINED >= 3200)
#define GLFW_HAS_GETERROR   (GLFW_VERSION_COMBINED >= 3300)
#define GLFW_HAS_GETPLATFORM   (GLFW_VERSION_COMBINED >= 3400)
#define MAP_BUTTON(KEY_NO, _UNUSED, BUTTON_NO)
#define MAP_ANALOG(KEY_NO, _UNUSED, AXIS_NO, V0, V1)

Enumerations

enum  GlfwClientApi { GlfwClientApi_OpenGL , GlfwClientApi_Vulkan , GlfwClientApi_Unknown }

Functions

ImGuiIO & ImGui::GetIO (ImGuiContext *)
ImGuiKey ImGui_ImplGlfw_KeyToImGuiKey (int keycode, int scancode)
void ImGui_ImplGlfw_MouseButtonCallback (GLFWwindow *window, int button, int action, int mods)
void ImGui_ImplGlfw_ScrollCallback (GLFWwindow *window, double xoffset, double yoffset)
void ImGui_ImplGlfw_KeyCallback (GLFWwindow *window, int keycode, int scancode, int action, int mods)
void ImGui_ImplGlfw_WindowFocusCallback (GLFWwindow *window, int focused)
void ImGui_ImplGlfw_CursorPosCallback (GLFWwindow *window, double x, double y)
void ImGui_ImplGlfw_CursorEnterCallback (GLFWwindow *window, int entered)
void ImGui_ImplGlfw_CharCallback (GLFWwindow *window, unsigned int c)
void ImGui_ImplGlfw_MonitorCallback (GLFWmonitor *, int)
void ImGui_ImplGlfw_InstallCallbacks (GLFWwindow *window)
void ImGui_ImplGlfw_RestoreCallbacks (GLFWwindow *window)
void ImGui_ImplGlfw_SetCallbacksChainForAllWindows (bool chain_for_all_windows)
bool ImGui_ImplGlfw_InitForOpenGL (GLFWwindow *window, bool install_callbacks)
bool ImGui_ImplGlfw_InitForVulkan (GLFWwindow *window, bool install_callbacks)
bool ImGui_ImplGlfw_InitForOther (GLFWwindow *window, bool install_callbacks)
void ImGui_ImplGlfw_Shutdown ()
float ImGui_ImplGlfw_GetContentScaleForWindow (GLFWwindow *window)
float ImGui_ImplGlfw_GetContentScaleForMonitor (GLFWmonitor *monitor)
void ImGui_ImplGlfw_NewFrame ()
void ImGui_ImplGlfw_Sleep (int milliseconds)

Macro Definition Documentation

◆ GLFW_HAS_CREATECURSOR

#define GLFW_HAS_CREATECURSOR   (GLFW_VERSION_COMBINED >= 3100)

◆ GLFW_HAS_GAMEPAD_API

#define GLFW_HAS_GAMEPAD_API   (GLFW_VERSION_COMBINED >= 3300)

◆ GLFW_HAS_GETERROR

#define GLFW_HAS_GETERROR   (GLFW_VERSION_COMBINED >= 3300)

◆ GLFW_HAS_GETKEYNAME

#define GLFW_HAS_GETKEYNAME   (GLFW_VERSION_COMBINED >= 3200)

◆ GLFW_HAS_GETPLATFORM

#define GLFW_HAS_GETPLATFORM   (GLFW_VERSION_COMBINED >= 3400)

◆ GLFW_HAS_NEW_CURSORS

#define GLFW_HAS_NEW_CURSORS   (0)

◆ GLFW_HAS_PER_MONITOR_DPI

#define GLFW_HAS_PER_MONITOR_DPI   (GLFW_VERSION_COMBINED >= 3300)

◆ GLFW_HAS_WAYLAND

#define GLFW_HAS_WAYLAND   0

◆ GLFW_HAS_X11

#define GLFW_HAS_X11   0

◆ GLFW_VERSION_COMBINED

#define GLFW_VERSION_COMBINED   (GLFW_VERSION_MAJOR * 1000 + GLFW_VERSION_MINOR * 100 + GLFW_VERSION_REVISION)

◆ MAP_ANALOG

#define MAP_ANALOG ( KEY_NO,
_UNUSED,
AXIS_NO,
V0,
V1 )
Value:
do { float v = (axes_count > AXIS_NO) ? axes[AXIS_NO] : V0; v = (v - V0) / (V1 - V0); io.AddKeyAnalogEvent(KEY_NO, v > 0.10f, Saturate(v)); } while (0)

◆ MAP_BUTTON

#define MAP_BUTTON ( KEY_NO,
_UNUSED,
BUTTON_NO )
Value:
do { io.AddKeyEvent(KEY_NO, (buttons_count > BUTTON_NO && buttons[BUTTON_NO] == GLFW_PRESS)); } while (0)

Enumeration Type Documentation

◆ GlfwClientApi

Enumerator
GlfwClientApi_OpenGL 
GlfwClientApi_Vulkan 
GlfwClientApi_Unknown 

Function Documentation

◆ ImGui_ImplGlfw_CharCallback()

void ImGui_ImplGlfw_CharCallback ( GLFWwindow * window,
unsigned int c )

◆ ImGui_ImplGlfw_CursorEnterCallback()

void ImGui_ImplGlfw_CursorEnterCallback ( GLFWwindow * window,
int entered )

◆ ImGui_ImplGlfw_CursorPosCallback()

void ImGui_ImplGlfw_CursorPosCallback ( GLFWwindow * window,
double x,
double y )

◆ ImGui_ImplGlfw_GetContentScaleForMonitor()

float ImGui_ImplGlfw_GetContentScaleForMonitor ( GLFWmonitor * monitor)

◆ ImGui_ImplGlfw_GetContentScaleForWindow()

float ImGui_ImplGlfw_GetContentScaleForWindow ( GLFWwindow * window)

◆ ImGui_ImplGlfw_InitForOpenGL()

bool ImGui_ImplGlfw_InitForOpenGL ( GLFWwindow * window,
bool install_callbacks )

◆ ImGui_ImplGlfw_InitForOther()

bool ImGui_ImplGlfw_InitForOther ( GLFWwindow * window,
bool install_callbacks )

◆ ImGui_ImplGlfw_InitForVulkan()

bool ImGui_ImplGlfw_InitForVulkan ( GLFWwindow * window,
bool install_callbacks )

◆ ImGui_ImplGlfw_InstallCallbacks()

void ImGui_ImplGlfw_InstallCallbacks ( GLFWwindow * window)

◆ ImGui_ImplGlfw_KeyCallback()

void ImGui_ImplGlfw_KeyCallback ( GLFWwindow * window,
int keycode,
int scancode,
int action,
int mods )

◆ ImGui_ImplGlfw_KeyToImGuiKey()

ImGuiKey ImGui_ImplGlfw_KeyToImGuiKey ( int keycode,
int scancode )

◆ ImGui_ImplGlfw_MonitorCallback()

void ImGui_ImplGlfw_MonitorCallback ( GLFWmonitor * monitor,
int event )

◆ ImGui_ImplGlfw_MouseButtonCallback()

void ImGui_ImplGlfw_MouseButtonCallback ( GLFWwindow * window,
int button,
int action,
int mods )

◆ ImGui_ImplGlfw_NewFrame()

void ImGui_ImplGlfw_NewFrame ( )

◆ ImGui_ImplGlfw_RestoreCallbacks()

void ImGui_ImplGlfw_RestoreCallbacks ( GLFWwindow * window)

◆ ImGui_ImplGlfw_ScrollCallback()

void ImGui_ImplGlfw_ScrollCallback ( GLFWwindow * window,
double xoffset,
double yoffset )

◆ ImGui_ImplGlfw_SetCallbacksChainForAllWindows()

void ImGui_ImplGlfw_SetCallbacksChainForAllWindows ( bool chain_for_all_windows)

◆ ImGui_ImplGlfw_Shutdown()

void ImGui_ImplGlfw_Shutdown ( )

◆ ImGui_ImplGlfw_Sleep()

void ImGui_ImplGlfw_Sleep ( int milliseconds)

◆ ImGui_ImplGlfw_WindowFocusCallback()

void ImGui_ImplGlfw_WindowFocusCallback ( GLFWwindow * window,
int focused )