mirror of
https://github.com/ocornut/imgui.git
synced 2024-12-01 11:39:15 +08:00
Merge branch 'mmozeiko-allow-to-disable-test-window'
This commit is contained in:
commit
f32d92f842
@ -22,6 +22,9 @@
|
||||
//#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS
|
||||
//#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS
|
||||
|
||||
//---- Don't implement help and test window functionality (ShowUserGuide()/ShowStyleEditor()/ShowTestWindow() methods will be empty)
|
||||
//#define IMGUI_DISABLE_TEST_WINDOWS
|
||||
|
||||
//---- Include imgui_user.inl at the end of imgui.cpp so you can include code that extends ImGui using its private data/functions.
|
||||
//#define IMGUI_INCLUDE_IMGUI_USER_INL
|
||||
|
||||
|
@ -8807,6 +8807,14 @@ static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y)
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef IMGUI_DISABLE_TEST_WINDOWS
|
||||
|
||||
void ImGui::ShowUserGuide() {}
|
||||
void ImGui::ShowStyleEditor() {}
|
||||
void ImGui::ShowTestWindow() {}
|
||||
|
||||
#else
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// HELP
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -10339,6 +10347,7 @@ static void ShowExampleAppLongText(bool* opened)
|
||||
}
|
||||
|
||||
// End of Sample code
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// FONT DATA
|
||||
|
Loading…
Reference in New Issue
Block a user