#pragma once #include "PanelWidget.hpp" #include "VerticalBoxSlot.hpp" namespace PalUIExtension::Api { // UVerticalBox : public UPanelWidget directly -- same shape as // Overlay / HorizontalBox. class VerticalBox : public PanelWidget { public: static auto ClassPath() -> const TCHAR* { return STR("/Script/UMG.VerticalBox"); } static auto DebugTag() -> const TCHAR* { return STR("VerticalBox"); } VerticalBox() = default; explicit VerticalBox(UObject* Obj) : PanelWidget(Obj, ClassOf(), DebugTag()) {} auto AddChildToVerticalBox(UObject* Content) -> VerticalBoxSlot { struct P { UObject* Content; UObject* ReturnValue; } p{ Content, nullptr }; auto Result = CallForReturn(STR("AddChildToVerticalBox"), p, &P::ReturnValue); return (Result && *Result) ? VerticalBoxSlot{ *Result } : VerticalBoxSlot{}; } }; }