openMSX
Classes | Macros | Functions
imgui_impl_sdl2.cc File Reference
#include "imgui.h"
#include "imgui_impl_sdl2.h"
#include <SDL.h>
#include <SDL_syswm.h>
Include dependency graph for imgui_impl_sdl2.cc:

Go to the source code of this file.

Classes

struct  ImGui_ImplSDL2_Data
 
struct  ImGui_ImplSDL2_ViewportData
 

Macros

#define SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE   0
 
#define SDL_HAS_WINDOW_ALPHA   SDL_VERSION_ATLEAST(2,0,5)
 
#define SDL_HAS_ALWAYS_ON_TOP   SDL_VERSION_ATLEAST(2,0,5)
 
#define SDL_HAS_USABLE_DISPLAY_BOUNDS   SDL_VERSION_ATLEAST(2,0,5)
 
#define SDL_HAS_PER_MONITOR_DPI   SDL_VERSION_ATLEAST(2,0,4)
 
#define SDL_HAS_VULKAN   SDL_VERSION_ATLEAST(2,0,6)
 
#define SDL_HAS_DISPLAY_EVENT   SDL_VERSION_ATLEAST(2,0,9)
 
#define SDL_HAS_SHOW_WINDOW_ACTIVATION_HINT   SDL_VERSION_ATLEAST(2,0,18)
 

Functions

ImGuiKey ImGui_ImplSDL2_KeyEventToImGuiKey (SDL_Keycode keycode, SDL_Scancode scancode)
 
bool ImGui_ImplSDL2_ProcessEvent (const SDL_Event *event)
 
bool ImGui_ImplSDL2_InitForOpenGL (SDL_Window *window, void *sdl_gl_context)
 
bool ImGui_ImplSDL2_InitForVulkan (SDL_Window *window)
 
bool ImGui_ImplSDL2_InitForD3D (SDL_Window *window)
 
bool ImGui_ImplSDL2_InitForMetal (SDL_Window *window)
 
bool ImGui_ImplSDL2_InitForSDLRenderer (SDL_Window *window, SDL_Renderer *renderer)
 
bool ImGui_ImplSDL2_InitForOther (SDL_Window *window)
 
void ImGui_ImplSDL2_Shutdown ()
 
void ImGui_ImplSDL2_SetGamepadMode (ImGui_ImplSDL2_GamepadMode mode, struct _SDL_GameController **manual_gamepads_array, int manual_gamepads_count)
 
void ImGui_ImplSDL2_NewFrame ()
 

Macro Definition Documentation

◆ SDL_HAS_ALWAYS_ON_TOP

#define SDL_HAS_ALWAYS_ON_TOP   SDL_VERSION_ATLEAST(2,0,5)

Definition at line 122 of file imgui_impl_sdl2.cc.

◆ SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE

#define SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE   0

Definition at line 119 of file imgui_impl_sdl2.cc.

◆ SDL_HAS_DISPLAY_EVENT

#define SDL_HAS_DISPLAY_EVENT   SDL_VERSION_ATLEAST(2,0,9)

Definition at line 126 of file imgui_impl_sdl2.cc.

◆ SDL_HAS_PER_MONITOR_DPI

#define SDL_HAS_PER_MONITOR_DPI   SDL_VERSION_ATLEAST(2,0,4)

Definition at line 124 of file imgui_impl_sdl2.cc.

◆ SDL_HAS_SHOW_WINDOW_ACTIVATION_HINT

#define SDL_HAS_SHOW_WINDOW_ACTIVATION_HINT   SDL_VERSION_ATLEAST(2,0,18)

Definition at line 127 of file imgui_impl_sdl2.cc.

◆ SDL_HAS_USABLE_DISPLAY_BOUNDS

#define SDL_HAS_USABLE_DISPLAY_BOUNDS   SDL_VERSION_ATLEAST(2,0,5)

Definition at line 123 of file imgui_impl_sdl2.cc.

◆ SDL_HAS_VULKAN

#define SDL_HAS_VULKAN   SDL_VERSION_ATLEAST(2,0,6)

Definition at line 125 of file imgui_impl_sdl2.cc.

◆ SDL_HAS_WINDOW_ALPHA

#define SDL_HAS_WINDOW_ALPHA   SDL_VERSION_ATLEAST(2,0,5)

Definition at line 121 of file imgui_impl_sdl2.cc.

Function Documentation

◆ ImGui_ImplSDL2_InitForD3D()

bool ImGui_ImplSDL2_InitForD3D ( SDL_Window *  window)

Definition at line 614 of file imgui_impl_sdl2.cc.

◆ ImGui_ImplSDL2_InitForMetal()

bool ImGui_ImplSDL2_InitForMetal ( SDL_Window *  window)

Definition at line 622 of file imgui_impl_sdl2.cc.

◆ ImGui_ImplSDL2_InitForOpenGL()

bool ImGui_ImplSDL2_InitForOpenGL ( SDL_Window *  window,
void *  sdl_gl_context 
)

Definition at line 597 of file imgui_impl_sdl2.cc.

Referenced by openmsx::VisibleSurface::VisibleSurface().

◆ ImGui_ImplSDL2_InitForOther()

bool ImGui_ImplSDL2_InitForOther ( SDL_Window *  window)

Definition at line 632 of file imgui_impl_sdl2.cc.

◆ ImGui_ImplSDL2_InitForSDLRenderer()

bool ImGui_ImplSDL2_InitForSDLRenderer ( SDL_Window *  window,
SDL_Renderer *  renderer 
)

Definition at line 627 of file imgui_impl_sdl2.cc.

◆ ImGui_ImplSDL2_InitForVulkan()

bool ImGui_ImplSDL2_InitForVulkan ( SDL_Window *  window)

Definition at line 602 of file imgui_impl_sdl2.cc.

References ImGui_ImplSDL2_Data::UseVulkan.

◆ ImGui_ImplSDL2_KeyEventToImGuiKey()

ImGuiKey ImGui_ImplSDL2_KeyEventToImGuiKey ( SDL_Keycode  keycode,
SDL_Scancode  scancode 
)

Definition at line 206 of file imgui_impl_sdl2.cc.

Referenced by ImGui_ImplSDL2_ProcessEvent().

◆ ImGui_ImplSDL2_NewFrame()

void ImGui_ImplSDL2_NewFrame ( )

◆ ImGui_ImplSDL2_ProcessEvent()

bool ImGui_ImplSDL2_ProcessEvent ( const SDL_Event *  event)

◆ ImGui_ImplSDL2_SetGamepadMode()

void ImGui_ImplSDL2_SetGamepadMode ( ImGui_ImplSDL2_GamepadMode  mode,
struct _SDL_GameController **  manual_gamepads_array,
int  manual_gamepads_count 
)

◆ ImGui_ImplSDL2_Shutdown()

void ImGui_ImplSDL2_Shutdown ( )