GrpcPrint/TestClient/external/imgui/imgui_context_extensions.h
2024-05-11 17:43:38 +08:00

20 lines
542 B
C++

#pragma once
#include "imgui.h"
namespace ImGui {
void PushContextSwitch(ImGuiContext *newCtx);
void PopContextSwitch();
class ScopedContextSwitch {
public:
explicit ScopedContextSwitch(ImGuiContext *newCtx);
ScopedContextSwitch(const ScopedContextSwitch& copy) = delete;
ScopedContextSwitch& operator=(const ScopedContextSwitch& copy) = delete;
ScopedContextSwitch(ScopedContextSwitch&& move) = delete;
ScopedContextSwitch& operator=(ScopedContextSwitch&& move) = delete;
~ScopedContextSwitch();
};
} // namespace ImGui