mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-18 16:30:32 +00:00
c144658f37
- Added SImGuiLayout to resets layout and house SImGuiWidget. - Module manager creates SImGuiLayout instead of SImGuiWidget (eventually it should be replaced with a higher level object, like AHUD). - Reworked ImGui canvas dragging and scaling and moved to SImGuiCanvasControl. - Removed dependency on ImGui internal cursor data. New presentation is cleaner and doesn't use cursor data. - Rendering code could be simplified after layout reset provided by SImGuiLayout. - SImGuiWidget still handles input, rendering of ImGui draw data and activation of SImGuiCanvasControl. - All widgets are in own subfolder.
19 lines
427 B
C++
19 lines
427 B
C++
// Distributed under the MIT License (MIT) (see accompanying LICENSE file)
|
|
|
|
#pragma once
|
|
|
|
#include <imgui.h>
|
|
|
|
|
|
// Gives access to selected ImGui implementation features.
|
|
namespace ImGuiImplementation
|
|
{
|
|
#if WITH_EDITOR
|
|
// Get the handle to the ImGui Context pointer.
|
|
ImGuiContext** GetImGuiContextHandle();
|
|
|
|
// Set the ImGui Context pointer handle.
|
|
void SetImGuiContextHandle(ImGuiContext** Handle);
|
|
#endif // WITH_EDITOR
|
|
}
|