imgui-platform-kit 2.0.0
Cross-platform Dear ImGui application framework
Loading...
Searching...
No Matches
user_interface_window.h
Go to the documentation of this file.
1#pragma once
2
11#include <string>
12
13#include "imgui.h"
14
15#if defined(_WIN32)
16#include "imgui_impl_win32.h"
17#include "imgui_impl_dx12.h"
18#elif defined(__linux__) || defined(__APPLE__)
19#include "imgui_impl_glfw.h"
20#include "imgui_impl_opengl3.h"
21#endif
22
23#include "implot.h"
24#include "implot_internal.h"
25
26#include <imgui-node-editor/imgui_node_editor.h>
27namespace ImNodeEditor = ax::NodeEditor;
28
29namespace imgui_kit
30{
32 extern ImGuiWindowFlags g_globalWindowFlags;
37 ImGuiWindowFlags getGlobalWindowFlags();
42 void setGlobalWindowFlags(ImGuiWindowFlags flags);
47 void addGlobalWindowFlags(ImGuiWindowFlags flags);
52 void removeGlobalWindowFlags(ImGuiWindowFlags flags);
53
61 {
62 // This struct is intentionally left empty.
63 // Derived structs are expected to define specific member variables
64 // and functions relevant to their respective elements.
67 };
68
100}
Abstract base class for all windows rendered by the kit.
Definition user_interface_window.h:83
UserInterfaceWindow(const UserInterfaceWindow &)=delete
UserInterfaceWindow(UserInterfaceWindow &&)=delete
virtual void render()=0
Renders the window contents.
virtual ~UserInterfaceWindow()=default
UserInterfaceWindow & operator=(UserInterfaceWindow &&)=delete
UserInterfaceWindow & operator=(const UserInterfaceWindow &)=delete
Definition colour_palette.h:11
ImGuiWindowFlags getGlobalWindowFlags()
Returns the window flags currently applied to every kit-managed window.
void removeGlobalWindowFlags(ImGuiWindowFlags flags)
Removes flags from the global window flags.
void addGlobalWindowFlags(ImGuiWindowFlags flags)
Adds flags to the global window flags (bitwise OR).
ImGuiWindowFlags g_globalWindowFlags
ImGui window flags shared by every window managed by the kit.
void setGlobalWindowFlags(ImGuiWindowFlags flags)
Replaces the global window flags.
Base type for parameters passed to UserInterfaceWindow subclasses.
Definition user_interface_window.h:61