9#include "SlateColor.generated.h"
63 : SpecifiedColor(InColor)
74 : SpecifiedColor(InColor.ReinterpretAsLinear())
85 : SpecifiedColor(*InColor)
109 case ESlateColorStylingMode::UseColor_Foreground:
110 case ESlateColorStylingMode::UseColor_UseStyle:
114 case ESlateColorStylingMode::UseColor_Specified:
115 return SpecifiedColor;
118 case ESlateColorStylingMode::UseColor_ColorTable:
119 return GetColorFromTable();
122 case ESlateColorStylingMode::UseColor_Foreground_Subdued:
136 if (ColorUseRule == ESlateColorStylingMode::UseColor_ColorTable)
138 return GetColorFromTable();
141 return SpecifiedColor;
152 return (ColorUseRule == ESlateColorStylingMode::UseColor_Specified) || (ColorUseRule == ESlateColorStylingMode::UseColor_ColorTable);
162 if (ColorUseRule == ESlateColorStylingMode::UseColor_ColorTable)
164 SpecifiedColor = GetColorFromTable();
165 ColorUseRule = ESlateColorStylingMode::UseColor_Specified;
178 return SpecifiedColor ==
Other.SpecifiedColor
179 && ColorUseRule ==
Other.ColorUseRule
180 && (ColorUseRule != ESlateColorStylingMode::UseColor_ColorTable || ColorTableId ==
Other.ColorTableId);
192 return !(*
this ==
Other);
200 return FSlateColor( ESlateColorStylingMode::UseColor_Foreground );
206 return FSlateColor( ESlateColorStylingMode::UseColor_Foreground_Subdued );
212 return FSlateColor(ESlateColorStylingMode::UseColor_UseStyle);
250 WithStructuredSerializeFromMismatchedTag =
true,
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
ESlateColorStylingMode
Definition SlateColor.h:18
EStyleColor
Definition StyleColors.h:32
Definition StructuredArchiveSlots.h:52
Definition PropertyTag.h:38
Definition SlateColor.h:42
static FSlateColor UseSubduedForeground()
Definition SlateColor.h:204
FSlateColor()
Definition SlateColor.h:52
FSlateColor(const FLinearColor &InColor)
Definition SlateColor.h:62
FSlateColor(const FColor InColor)
Definition SlateColor.h:73
bool operator==(const FSlateColor &Other) const
Definition SlateColor.h:176
FSlateColor(EStyleColor InColorTableId)
Definition SlateColor.h:89
FSlateColor(ESlateColorStylingMode InColorUseRule)
Definition SlateColor.h:222
FLinearColor GetSpecifiedColor() const
Definition SlateColor.h:134
bool IsColorSpecified() const
Definition SlateColor.h:150
bool operator!=(const FSlateColor &Other) const
Definition SlateColor.h:190
const FLinearColor & GetColor(const FWidgetStyle &InWidgetStyle) const
Definition SlateColor.h:104
static FSlateColor UseForeground()
Definition SlateColor.h:198
void Unlink()
Definition SlateColor.h:160
FSlateColor(const TSharedRef< FLinearColor > &InColor)
Definition SlateColor.h:84
static FSlateColor UseStyle()
Definition SlateColor.h:210
Definition StructOpsTypeTraits.h:11
Definition StructOpsTypeTraits.h:46