Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

50 lines
2.1 KiB
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#if WITH_EDITOR
#include "Styling/SlateTypes.h"
#include "PIEPreviewWindowStyle.generated.h"
/**
* Represents the appearance of an SPIEWindow
*/
USTRUCT()
struct FPIEPreviewWindowStyle : public FSlateWidgetStyle
{
GENERATED_USTRUCT_BODY()
PIEPREVIEWDEVICEPROFILESELECTOR_API FPIEPreviewWindowStyle();
virtual ~FPIEPreviewWindowStyle() {}
PIEPREVIEWDEVICEPROFILESELECTOR_API virtual void GetResources(TArray< const FSlateBrush* >& OutBrushes) const override;
static PIEPREVIEWDEVICEPROFILESELECTOR_API const FName TypeName;
virtual const FName GetTypeName() const override { return TypeName; };
static PIEPREVIEWDEVICEPROFILESELECTOR_API const FPIEPreviewWindowStyle& GetDefault();
/** Style used to draw the window ScreenRotationButton button */
UPROPERTY()
FButtonStyle ScreenRotationButtonStyle;
FPIEPreviewWindowStyle& SetScreenRotationButtonStyle(const FButtonStyle& InScreenRotationButtonStyle) { ScreenRotationButtonStyle = InScreenRotationButtonStyle; return *this; }
/** Style used to draw the window 0.25x button */
UPROPERTY()
FButtonStyle QuarterMobileContentScaleFactorButtonStyle;
FPIEPreviewWindowStyle& SetQuarterMobileContentScaleFactorButtonStyle(const FButtonStyle& InQuarterMobileContentScaleFactorButtonStyle) { QuarterMobileContentScaleFactorButtonStyle = InQuarterMobileContentScaleFactorButtonStyle; return *this; }
/** Style used to draw the window 0.5x button */
UPROPERTY()
FButtonStyle HalfMobileContentScaleFactorButtonStyle;
FPIEPreviewWindowStyle& SetHalfMobileContentScaleFactorButtonStyle(const FButtonStyle& InHalfMobileContentScaleFactorButtonStyle) { HalfMobileContentScaleFactorButtonStyle = InHalfMobileContentScaleFactorButtonStyle; return *this; }
/** Style used to draw the window 1X button */
UPROPERTY()
FButtonStyle FullMobileContentScaleFactorButtonStyle;
FPIEPreviewWindowStyle& SetFullMobileContentScaleFactorButtonStyle(const FButtonStyle& InFullMobileContentScaleFactorButtonStyle) { FullMobileContentScaleFactorButtonStyle = InFullMobileContentScaleFactorButtonStyle; return *this; }
};
#endif