Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
imgui_impl_win32.h
Go to the documentation of this file.
1 // dear imgui: Platform Binding for Windows (standard windows API for 32 and 64 bits applications)
2 // This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..)
3 
4 // Implemented features:
5 // [X] Platform: Clipboard support (for Win32 this is actually part of core imgui)
6 // [X] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'.
7 // [X] Platform: Keyboard arrays indexed using VK_* Virtual Key Codes, e.g. ImGui::IsKeyPressed(VK_SPACE).
8 // [X] Platform: Gamepad support. Enabled with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'.
9 
10 #pragma once
11 
12 IMGUI_IMPL_API bool ImGui_ImplWin32_Init(void* hwnd);
15 
16 // Handler for Win32 messages, update mouse/keyboard data.
17 // You may or not need this for your implementation, but it can serve as reference for handling inputs.
18 // Intentionally commented out to avoid dragging dependencies on <windows.h> types. You can COPY this line into your .cpp code instead.
19 /*
20 IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
21 */
ImGuiIO::KeyAlt
bool KeyAlt
Definition: imgui.h:1415
ImGuiIO::KeySuper
bool KeySuper
Definition: imgui.h:1416
ImGuiNavInput_FocusPrev
@ ImGuiNavInput_FocusPrev
Definition: imgui.h:981
ImGuiMouseCursor_Hand
@ ImGuiMouseCursor_Hand
Definition: imgui.h:1181
ImGuiNavInput_DpadLeft
@ ImGuiNavInput_DpadLeft
Definition: imgui.h:973
ImGuiIO::MouseDown
bool MouseDown[5]
Definition: imgui.h:1410
MAP_BUTTON
#define MAP_BUTTON(NAV_NO, BUTTON_ENUM)
ImGuiBackendFlags_HasGamepad
@ ImGuiBackendFlags_HasGamepad
Definition: imgui.h:1018
ImGuiKey_Home
@ ImGuiKey_Home
Definition: imgui.h:944
SDL_Event::button
SDL_MouseButtonEvent button
Mouse button event data.
Definition: SdlEmulationLayer.h:740
ImGuiKey_PageDown
@ ImGuiKey_PageDown
Definition: imgui.h:943
ImGui::GetCursorPos
IMGUI_API ImVec2 GetCursorPos()
Definition: imgui.cpp:6892
ImGuiMouseCursor_ResizeNS
@ ImGuiMouseCursor_ResizeNS
Definition: imgui.h:1177
ImGuiIO::AddInputCharacter
IMGUI_API void AddInputCharacter(unsigned int c)
Definition: imgui.cpp:1259
ImGuiBackendFlags_HasSetMousePos
@ ImGuiBackendFlags_HasSetMousePos
Definition: imgui.h:1020
ImGuiBackendFlags_HasMouseCursors
@ ImGuiBackendFlags_HasMouseCursors
Definition: imgui.h:1019
ImGuiNavInput_Menu
@ ImGuiNavInput_Menu
Definition: imgui.h:972
ImGuiIO::MousePos
ImVec2 MousePos
Definition: imgui.h:1409
ImGuiMouseCursor_Arrow
@ ImGuiMouseCursor_Arrow
Definition: imgui.h:1174
ImGuiNavInput_Cancel
@ ImGuiNavInput_Cancel
Definition: imgui.h:970
ImGuiNavInput_LStickRight
@ ImGuiNavInput_LStickRight
Definition: imgui.h:978
ImGuiMouseCursor
int ImGuiMouseCursor
Definition: imgui.h:138
ImGuiIO::ImeWindowHandle
void * ImeWindowHandle
Definition: imgui.h:1394
ImGuiNavInput_FocusNext
@ ImGuiNavInput_FocusNext
Definition: imgui.h:982
ImGuiIO::BackendFlags
ImGuiBackendFlags BackendFlags
Definition: imgui.h:1345
ImGuiIO
Definition: imgui.h:1338
ImGuiKey_UpArrow
@ ImGuiKey_UpArrow
Definition: imgui.h:940
ImVec2::x
float x
Definition: imgui.h:181
ImGuiIO::KeysDown
bool KeysDown[512]
Definition: imgui.h:1417
ImGuiIO::MouseDrawCursor
bool MouseDrawCursor
Definition: imgui.h:1366
ImFontAtlas::IsBuilt
bool IsBuilt()
Definition: imgui.h:2113
ImGuiIO::NavInputs
float NavInputs[ImGuiNavInput_COUNT]
Definition: imgui.h:1418
ImVec2
Definition: imgui.h:179
NULL
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
ImGuiIO::WantSetMousePos
bool WantSetMousePos
Definition: imgui.h:1432
ImGuiNavInput_TweakFast
@ ImGuiNavInput_TweakFast
Definition: imgui.h:984
ImGuiMouseCursor_None
@ ImGuiMouseCursor_None
Definition: imgui.h:1173
ImGui_ImplWin32_NewFrame
IMGUI_IMPL_API void ImGui_ImplWin32_NewFrame()
Definition: imgui_impl_win32.cpp:201
ImGui::GetCurrentContext
IMGUI_API ImGuiContext * GetCurrentContext()
Definition: imgui.cpp:3242
ImGuiIO::Fonts
ImFontAtlas * Fonts
Definition: imgui.h:1359
ImGuiKey_V
@ ImGuiKey_V
Definition: imgui.h:955
ImGuiIO::KeyCtrl
bool KeyCtrl
Definition: imgui.h:1413
ImGuiKey_LeftArrow
@ ImGuiKey_LeftArrow
Definition: imgui.h:938
ImGuiIO::KeyShift
bool KeyShift
Definition: imgui.h:1414
ImGuiConfigFlags_NavEnableGamepad
@ ImGuiConfigFlags_NavEnableGamepad
Definition: imgui.h:1003
ImGuiConfigFlags_NoMouseCursorChange
@ ImGuiConfigFlags_NoMouseCursorChange
Definition: imgui.h:1007
ImGuiMouseCursor_TextInput
@ ImGuiMouseCursor_TextInput
Definition: imgui.h:1175
DBT_DEVNODES_CHANGED
#define DBT_DEVNODES_CHANGED
Definition: imgui_impl_win32.cpp:244
ImGuiMouseCursor_COUNT
@ ImGuiMouseCursor_COUNT
Definition: imgui.h:1182
ImGui_ImplWin32_Shutdown
void ImGui_ImplWin32_Shutdown()
Definition: imgui_impl_win32.cpp:92
ImGui_ImplWin32_Init
IMGUI_IMPL_API bool ImGui_ImplWin32_Init(void *hwnd)
Definition: imgui_impl_win32.cpp:50
ImGui::GetIO
IMGUI_API ImGuiIO & GetIO()
Definition: imgui.cpp:3300
ImGuiIO::ConfigFlags
ImGuiConfigFlags ConfigFlags
Definition: imgui.h:1344
ImGui::SetCursorPos
IMGUI_API void SetCursorPos(const ImVec2 &local_pos)
Definition: imgui.cpp:6910
MAP_ANALOG
#define MAP_ANALOG(NAV_NO, VALUE, V0, V1)
ImGuiMouseCursor_ResizeEW
@ ImGuiMouseCursor_ResizeEW
Definition: imgui.h:1178
ImGuiKey_End
@ ImGuiKey_End
Definition: imgui.h:945
ImGuiKey_Enter
@ ImGuiKey_Enter
Definition: imgui.h:950
ImGuiKey_Backspace
@ ImGuiKey_Backspace
Definition: imgui.h:948
ImGuiKey_C
@ ImGuiKey_C
Definition: imgui.h:954
ImGuiKey_RightArrow
@ ImGuiKey_RightArrow
Definition: imgui.h:939
ImGuiIO::MouseWheelH
float MouseWheelH
Definition: imgui.h:1412
ImGuiKey_A
@ ImGuiKey_A
Definition: imgui.h:953
ImGuiIO::BackendPlatformName
const char * BackendPlatformName
Definition: imgui.h:1379
ImGuiNavInput_DpadDown
@ ImGuiNavInput_DpadDown
Definition: imgui.h:976
ImGuiIO::DeltaTime
float DeltaTime
Definition: imgui.h:1347
ImGuiKey_Z
@ ImGuiKey_Z
Definition: imgui.h:958
imgui_impl_win32.h
ImGui_ImplWin32_WndProcHandler
IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: imgui_impl_win32.cpp:254
ImGui_ImplWin32_Shutdown
IMGUI_IMPL_API void ImGui_ImplWin32_Shutdown()
Definition: imgui_impl_win32.cpp:92
ImGuiNavInput_DpadUp
@ ImGuiNavInput_DpadUp
Definition: imgui.h:975
ImGui_ImplWin32_NewFrame
void ImGui_ImplWin32_NewFrame()
Definition: imgui_impl_win32.cpp:201
ImVec2::y
float y
Definition: imgui.h:181
ImGuiKey_Space
@ ImGuiKey_Space
Definition: imgui.h:949
ImGuiNavInput_LStickUp
@ ImGuiNavInput_LStickUp
Definition: imgui.h:979
ImGuiKey_PageUp
@ ImGuiKey_PageUp
Definition: imgui.h:942
IMGUI_IMPL_API
#define IMGUI_IMPL_API
Definition: imgui.h:60
ImGuiKey_Delete
@ ImGuiKey_Delete
Definition: imgui.h:947
ImGuiNavInput_Input
@ ImGuiNavInput_Input
Definition: imgui.h:971
ImGuiKey_X
@ ImGuiKey_X
Definition: imgui.h:956
ImGuiKey_DownArrow
@ ImGuiKey_DownArrow
Definition: imgui.h:941
ImGuiKey_Insert
@ ImGuiKey_Insert
Definition: imgui.h:946
ImGuiNavInput_Activate
@ ImGuiNavInput_Activate
Definition: imgui.h:969
ImGui_ImplWin32_Init
bool ImGui_ImplWin32_Init(void *hwnd)
Definition: imgui_impl_win32.cpp:50
ImGui::IsAnyMouseDown
IMGUI_API bool IsAnyMouseDown()
Definition: imgui.cpp:4448
ImGuiMouseCursor_ResizeNESW
@ ImGuiMouseCursor_ResizeNESW
Definition: imgui.h:1179
ImGuiNavInput_TweakSlow
@ ImGuiNavInput_TweakSlow
Definition: imgui.h:983
ImGui::GetMouseCursor
IMGUI_API ImGuiMouseCursor GetMouseCursor()
Definition: imgui.cpp:4558
ImGuiMouseCursor_ResizeNWSE
@ ImGuiMouseCursor_ResizeNWSE
Definition: imgui.h:1180
ImGuiIO::KeyMap
int KeyMap[ImGuiKey_COUNT]
Definition: imgui.h:1354
WM_MOUSEHWHEEL
#define WM_MOUSEHWHEEL
Definition: imgui_impl_win32.cpp:241
ImGuiNavInput_LStickLeft
@ ImGuiNavInput_LStickLeft
Definition: imgui.h:977
ImGuiKey_Y
@ ImGuiKey_Y
Definition: imgui.h:957
IM_ASSERT
#define IM_ASSERT(_EXPR)
Definition: imgui.h:66
ImGuiMouseCursor_ResizeAll
@ ImGuiMouseCursor_ResizeAll
Definition: imgui.h:1176
ImGuiIO::MouseWheel
float MouseWheel
Definition: imgui.h:1411
ImGuiKey_Tab
@ ImGuiKey_Tab
Definition: imgui.h:937
ImGuiKey_Escape
@ ImGuiKey_Escape
Definition: imgui.h:951
ImGuiIO::DisplaySize
ImVec2 DisplaySize
Definition: imgui.h:1346
ImGuiKey_KeyPadEnter
@ ImGuiKey_KeyPadEnter
Definition: imgui.h:952
ImGuiNavInput_LStickDown
@ ImGuiNavInput_LStickDown
Definition: imgui.h:980
ImGuiNavInput_DpadRight
@ ImGuiNavInput_DpadRight
Definition: imgui.h:974