summaryrefslogtreecommitdiff
path: root/src/imgui_context.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imgui_context.hpp')
-rw-r--r--src/imgui_context.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/imgui_context.hpp b/src/imgui_context.hpp
index 520a711..94bac3d 100644
--- a/src/imgui_context.hpp
+++ b/src/imgui_context.hpp
@@ -13,11 +13,15 @@ class ImguiContext {
ImguiContext(GlContext& glContext, SdlContext& sdlContext, SdlMainWindow& mainWindow);
~ImguiContext();
- const ImGuiIO& getIO();
+ const ImGuiIO& getIO() const;
- void setIOFlag(ImGuiConfigFlags_ flag);
+ void setIOFlag(ImGuiConfigFlags_ flag) const;
+ bool processEvent(SDL_Event& event) const;
+ void startFrame() const;
+ void render() const;
private:
+ SdlMainWindow& m_mainWindow;
};
} // namespace bookmouse