mirror of
https://github.com/kevinporetti/UnrealImGui.git
synced 2025-01-19 00:40:32 +00:00
33 lines
706 B
C
33 lines
706 B
C
|
// Distributed under the MIT License (MIT) (see accompanying LICENSE file)
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <Widgets/SCompoundWidget.h>
|
||
|
|
||
|
|
||
|
class FImGuiModuleManager;
|
||
|
class UGameViewportClient;
|
||
|
|
||
|
// Layout preset for ImGui Widget.
|
||
|
class SImGuiLayout : public SCompoundWidget
|
||
|
{
|
||
|
typedef SCompoundWidget Super;
|
||
|
|
||
|
public:
|
||
|
|
||
|
SLATE_BEGIN_ARGS(SImGuiLayout)
|
||
|
{}
|
||
|
SLATE_ARGUMENT(FImGuiModuleManager*, ModuleManager)
|
||
|
SLATE_ARGUMENT(UGameViewportClient*, GameViewport)
|
||
|
SLATE_ARGUMENT(int32, ContextIndex)
|
||
|
SLATE_END_ARGS()
|
||
|
|
||
|
void Construct(const FArguments& InArgs);
|
||
|
|
||
|
const TWeakObjectPtr<UGameViewportClient>& GetGameViewport() const { return GameViewport; }
|
||
|
|
||
|
private:
|
||
|
|
||
|
TWeakObjectPtr<UGameViewportClient> GameViewport;
|
||
|
};
|