GrpcPrint/PrintS/external/imgui/imgui_context_extensions.h

20 lines
542 B
C
Raw Normal View History

2024-03-19 17:45:12 +08:00
#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