r5sdk/r5dev/thirdparty/imgui/include/imgui_utility.h
Kawe Mazidjatari 5f84803ac6 ImGui and DirectX code improvements
* Fix history duplication by removing trailing white space characters from submitted commands in console.
* Fix out of range exception caused by caching svConVar.size() in CConsole::BuildSummary while we are modifying it.
* Fixed memory leak  caused by extraneous Strdup calls in CConsole.
* Renamed variables and structure members, static vars in id3dx.cpp are not prefixed with s_, IBrowser_Config is now m_BrowserConfig.
* Performed code cleanup in id3dx.cpp.
2022-10-20 12:29:50 +02:00

39 lines
692 B
C++

#pragma once
/////////////////////////////////////////////////////////////////////////////
// Internals
int Stricmp(const char* s1, const char* s2);
int Strnicmp(const char* s1, const char* s2, int n);
char* Strdup(const char* s);
void Strtrim(char* s);
enum class ImGuiStyle_t
{
NONE = -1,
DEFAULT,
LEGACY,
MODERN
};
class ImGuiConfig
{
public:
struct
{
int m_nBind0 = VK_OEM_3;
int m_nBind1 = VK_INSERT;
} m_ConsoleConfig;
struct
{
int m_nBind0 = VK_HOME;
int m_nBind1 = VK_F10;
} m_BrowserConfig;
void Load();
void Save();
ImGuiStyle_t InitStyle() const;
};
extern ImGuiConfig* g_pImGuiConfig;