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)
 

Functions

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 109 of file imgui_impl_sdl2.cc.

◆ SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE

#define SDL_HAS_CAPTURE_AND_GLOBAL_MOUSE   0

Definition at line 106 of file imgui_impl_sdl2.cc.

◆ SDL_HAS_DISPLAY_EVENT

#define SDL_HAS_DISPLAY_EVENT   SDL_VERSION_ATLEAST(2,0,9)

Definition at line 113 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 111 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 110 of file imgui_impl_sdl2.cc.

◆ SDL_HAS_VULKAN

#define SDL_HAS_VULKAN   SDL_VERSION_ATLEAST(2,0,6)

Definition at line 112 of file imgui_impl_sdl2.cc.

◆ SDL_HAS_WINDOW_ALPHA

#define SDL_HAS_WINDOW_ALPHA   SDL_VERSION_ATLEAST(2,0,5)

Definition at line 108 of file imgui_impl_sdl2.cc.

Function Documentation

◆ ImGui_ImplSDL2_InitForD3D()

bool ImGui_ImplSDL2_InitForD3D ( SDL_Window *  window)

Definition at line 568 of file imgui_impl_sdl2.cc.

◆ ImGui_ImplSDL2_InitForMetal()

bool ImGui_ImplSDL2_InitForMetal ( SDL_Window *  window)

Definition at line 576 of file imgui_impl_sdl2.cc.

◆ ImGui_ImplSDL2_InitForOpenGL()

bool ImGui_ImplSDL2_InitForOpenGL ( SDL_Window *  window,
void *  sdl_gl_context 
)

Definition at line 551 of file imgui_impl_sdl2.cc.

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

◆ ImGui_ImplSDL2_InitForOther()

bool ImGui_ImplSDL2_InitForOther ( SDL_Window *  window)

Definition at line 586 of file imgui_impl_sdl2.cc.

◆ ImGui_ImplSDL2_InitForSDLRenderer()

bool ImGui_ImplSDL2_InitForSDLRenderer ( SDL_Window *  window,
SDL_Renderer *  renderer 
)

Definition at line 581 of file imgui_impl_sdl2.cc.

◆ ImGui_ImplSDL2_InitForVulkan()

bool ImGui_ImplSDL2_InitForVulkan ( SDL_Window *  window)

Definition at line 556 of file imgui_impl_sdl2.cc.

References ImGui_ImplSDL2_Data::UseVulkan.

◆ 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 ( )