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

Go to the source code of this file.

Classes

struct  ImGui_ImplGlfw_Data
 

Macros

#define GLFW_VERSION_COMBINED   (GLFW_VERSION_MAJOR * 1000 + GLFW_VERSION_MINOR * 100 + GLFW_VERSION_REVISION)
 
#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 MAP_BUTTON(KEY_NO, _UNUSED, BUTTON_NO)
 
#define MAP_ANALOG(KEY_NO, _UNUSED, AXIS_NO, V0, V1)
 

Enumerations

enum  GlfwClientApi { GlfwClientApi_Unknown , GlfwClientApi_OpenGL , GlfwClientApi_Vulkan }
 

Functions

static ImGui_ImplGlfw_DataImGui_ImplGlfw_GetBackendData ()
 
static const char * ImGui_ImplGlfw_GetClipboardText (void *user_data)
 
static void ImGui_ImplGlfw_SetClipboardText (void *user_data, const char *text)
 
static ImGuiKey ImGui_ImplGlfw_KeyToImGuiKey (int key)
 
static void ImGui_ImplGlfw_UpdateKeyModifiers (GLFWwindow *window)
 
static bool ImGui_ImplGlfw_ShouldChainCallback (GLFWwindow *window)
 
void ImGui_ImplGlfw_MouseButtonCallback (GLFWwindow *window, int button, int action, int mods)
 
void ImGui_ImplGlfw_ScrollCallback (GLFWwindow *window, double xoffset, double yoffset)
 
static int ImGui_ImplGlfw_TranslateUntranslatedKey (int key, int scancode)
 
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)
 
static bool ImGui_ImplGlfw_Init (GLFWwindow *window, bool install_callbacks, GlfwClientApi client_api)
 
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 ()
 
static void ImGui_ImplGlfw_UpdateMouseData ()
 
static void ImGui_ImplGlfw_UpdateMouseCursor ()
 
static float Saturate (float v)
 
static void ImGui_ImplGlfw_UpdateGamepads ()
 
void ImGui_ImplGlfw_NewFrame ()
 

Macro Definition Documentation

◆ GLFW_HAS_GAMEPAD_API

#define GLFW_HAS_GAMEPAD_API   (GLFW_VERSION_COMBINED >= 3300)

Definition at line 112 of file imgui_impl_glfw.cpp.

◆ GLFW_HAS_GETERROR

#define GLFW_HAS_GETERROR   (GLFW_VERSION_COMBINED >= 3300)

Definition at line 114 of file imgui_impl_glfw.cpp.

◆ GLFW_HAS_GETKEYNAME

#define GLFW_HAS_GETKEYNAME   (GLFW_VERSION_COMBINED >= 3200)

Definition at line 113 of file imgui_impl_glfw.cpp.

◆ GLFW_HAS_NEW_CURSORS

#define GLFW_HAS_NEW_CURSORS   (0)

Definition at line 110 of file imgui_impl_glfw.cpp.

◆ GLFW_VERSION_COMBINED

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

Definition at line 106 of file imgui_impl_glfw.cpp.

◆ 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)
static float Saturate(float v)

◆ 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_Unknown 
GlfwClientApi_OpenGL 
GlfwClientApi_Vulkan 

Definition at line 117 of file imgui_impl_glfw.cpp.

Function Documentation

◆ ImGui_ImplGlfw_CharCallback()

void ImGui_ImplGlfw_CharCallback ( GLFWwindow * window,
unsigned int c )

Definition at line 442 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_CursorEnterCallback()

void ImGui_ImplGlfw_CursorEnterCallback ( GLFWwindow * window,
int entered )

Definition at line 422 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_CursorPosCallback()

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

Definition at line 409 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_GetBackendData()

static ImGui_ImplGlfw_Data * ImGui_ImplGlfw_GetBackendData ( )
static

Definition at line 161 of file imgui_impl_glfw.cpp.

Here is the caller graph for this function:

◆ ImGui_ImplGlfw_GetClipboardText()

static const char * ImGui_ImplGlfw_GetClipboardText ( void * user_data)
static

Definition at line 167 of file imgui_impl_glfw.cpp.

Here is the caller graph for this function:

◆ ImGui_ImplGlfw_Init()

static bool ImGui_ImplGlfw_Init ( GLFWwindow * window,
bool install_callbacks,
GlfwClientApi client_api )
static

Definition at line 556 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_InitForOpenGL()

bool ImGui_ImplGlfw_InitForOpenGL ( GLFWwindow * window,
bool install_callbacks )

Definition at line 634 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_InitForOther()

bool ImGui_ImplGlfw_InitForOther ( GLFWwindow * window,
bool install_callbacks )

Definition at line 644 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:

◆ ImGui_ImplGlfw_InitForVulkan()

bool ImGui_ImplGlfw_InitForVulkan ( GLFWwindow * window,
bool install_callbacks )

Definition at line 639 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:

◆ ImGui_ImplGlfw_InstallCallbacks()

void ImGui_ImplGlfw_InstallCallbacks ( GLFWwindow * window)

Definition at line 504 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_KeyCallback()

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

Definition at line 380 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_KeyToImGuiKey()

static ImGuiKey ImGui_ImplGlfw_KeyToImGuiKey ( int key)
static

Definition at line 177 of file imgui_impl_glfw.cpp.

Here is the caller graph for this function:

◆ ImGui_ImplGlfw_MonitorCallback()

void ImGui_ImplGlfw_MonitorCallback ( GLFWmonitor * monitor,
int event )

Definition at line 452 of file imgui_impl_glfw.cpp.

Here is the caller graph for this function:

◆ ImGui_ImplGlfw_MouseButtonCallback()

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

Definition at line 319 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_NewFrame()

void ImGui_ImplGlfw_NewFrame ( )

Definition at line 787 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_RestoreCallbacks()

void ImGui_ImplGlfw_RestoreCallbacks ( GLFWwindow * window)

Definition at line 521 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_ScrollCallback()

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

Definition at line 332 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_SetCallbacksChainForAllWindows()

void ImGui_ImplGlfw_SetCallbacksChainForAllWindows ( bool chain_for_all_windows)

Definition at line 550 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:

◆ ImGui_ImplGlfw_SetClipboardText()

static void ImGui_ImplGlfw_SetClipboardText ( void * user_data,
const char * text )
static

Definition at line 172 of file imgui_impl_glfw.cpp.

Here is the caller graph for this function:

◆ ImGui_ImplGlfw_ShouldChainCallback()

static bool ImGui_ImplGlfw_ShouldChainCallback ( GLFWwindow * window)
static

Definition at line 313 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_Shutdown()

void ImGui_ImplGlfw_Shutdown ( )

Definition at line 649 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_TranslateUntranslatedKey()

static int ImGui_ImplGlfw_TranslateUntranslatedKey ( int key,
int scancode )
static

Definition at line 347 of file imgui_impl_glfw.cpp.

Here is the caller graph for this function:

◆ ImGui_ImplGlfw_UpdateGamepads()

static void ImGui_ImplGlfw_UpdateGamepads ( )
static

Definition at line 736 of file imgui_impl_glfw.cpp.

Here is the caller graph for this function:

◆ ImGui_ImplGlfw_UpdateKeyModifiers()

static void ImGui_ImplGlfw_UpdateKeyModifiers ( GLFWwindow * window)
static

Definition at line 304 of file imgui_impl_glfw.cpp.

Here is the caller graph for this function:

◆ ImGui_ImplGlfw_UpdateMouseCursor()

static void ImGui_ImplGlfw_UpdateMouseCursor ( )
static

Definition at line 708 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_UpdateMouseData()

static void ImGui_ImplGlfw_UpdateMouseData ( )
static

Definition at line 677 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImGui_ImplGlfw_WindowFocusCallback()

void ImGui_ImplGlfw_WindowFocusCallback ( GLFWwindow * window,
int focused )

Definition at line 399 of file imgui_impl_glfw.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Saturate()

static float Saturate ( float v)
inlinestatic

Definition at line 735 of file imgui_impl_glfw.cpp.