UnrealImGui/Source/ImGui/Private/Editor/ImGuiCanvasSizeInfoCustomization.h
Sebastian 4c3905b348 Added more options to control the canvas size:
- Canvas size can be set to custom width and height, desktop size or viewport size.
- The old Adaptive Canvas Size is replaced by the viewport size type.
- Custom and desktop size types can be also extended to the viewport size but they will never be smaller than their base sizes.
2020-05-10 21:05:27 +01:00

23 lines
809 B
C++

// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#pragma once
#if WITH_EDITOR
#include <IPropertyTypeCustomization.h>
#include <PropertyHandle.h>
// Property type customization for FImGuiCanvasSizeInfo.
class FImGuiCanvasSizeInfoCustomization : public IPropertyTypeCustomization
{
public:
static TSharedRef<IPropertyTypeCustomization> MakeInstance();
// IPropertyTypeCustomization interface
virtual void CustomizeHeader(TSharedRef<IPropertyHandle> InStructPropertyHandle, FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
virtual void CustomizeChildren(TSharedRef<IPropertyHandle> InStructPropertyHandle, IDetailChildrenBuilder& StructBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
};
#endif // WITH_EDITOR