Files
UnrealEngineUWP/Engine/Source/Editor/TextureEditor/Classes/TextureEditorSettings.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

69 lines
1.8 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/Object.h"
#include "TextureEditorSettings.generated.h"
/**
* Enumerates background for the texture editor view port.
*/
UENUM()
enum ETextureEditorBackgrounds
{
TextureEditorBackground_SolidColor UMETA(DisplayName="Solid Color"),
TextureEditorBackground_Checkered UMETA(DisplayName="Checkered"),
TextureEditorBackground_CheckeredFill UMETA(DisplayName="Checkered (Fill)")
};
/**
* Implements the Editor's user settings.
*/
UCLASS(config=EditorPerProjectUserSettings)
class TEXTUREEDITOR_API UTextureEditorSettings
: public UObject
{
GENERATED_UCLASS_BODY()
public:
/** The type of background to draw in the texture editor view port. */
UPROPERTY(config)
TEnumAsByte<ETextureEditorBackgrounds> Background;
/** Background and foreground color used by Texture preview view ports. */
UPROPERTY(config, EditAnywhere, Category=Background)
FColor BackgroundColor;
/** The first color of the checkered background. */
UPROPERTY(config, EditAnywhere, Category=Background)
FColor CheckerColorOne;
/** The second color of the checkered background. */
UPROPERTY(config, EditAnywhere, Category=Background)
FColor CheckerColorTwo;
/** The size of the checkered background tiles. */
UPROPERTY(config, EditAnywhere, Category=Background, meta=(ClampMin="2", ClampMax="4096"))
int32 CheckerSize;
public:
/** Whether the texture should scale to fit the view port. */
UPROPERTY(config)
bool FitToViewport;
/** Color to use for the texture border, if enabled. */
UPROPERTY(config, EditAnywhere, Category=TextureBorder)
FColor TextureBorderColor;
/** If true, displays a border around the texture. */
UPROPERTY(config)
bool TextureBorderEnabled;
};