Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Styling/SlateBrush.h |
Include |
#include "Styling/SlateBrush.h" |
struct FSlateBrush
A brush which contains information about how to draw a Slate element
Name | Description | ||
---|---|---|---|
|
uint8: 1 |
bIsDynamicallyLoaded |
Whether or not the brush path is a path to a UObject |
|
uint8: 1 |
bIsSet |
This is true for all constructed brushes except for optional brushes |
|
TEnumAsByte< en... |
DrawAs |
How to draw the image |
|
ImageSize |
Size of the resource in Slate Units |
|
|
TEnumAsByte< en... |
ImageType |
The type of image |
|
Margin |
The margin to use in Box and Border modes |
|
|
TEnumAsByte< en... |
Mirroring |
How to mirror the image in Image mode. |
|
OutlineSettings |
How to draw the outline. Currently only used for RoundedBox type brushes. |
|
|
ResourceHandle |
Rendering resource for this brush |
|
|
ResourceName |
The name of the rendering resource to use |
|
|
TEnumAsByte< en... |
Tiling |
How to tile the image in Image mode |
|
TintColor |
Tinting applied to the image. |
|
|
FBox2f |
UVRegion |
Optional UV region for an image When valid - overrides UV region specified in resource proxy |
Name | Description | |
---|---|---|
|
FSlateBrush() |
Default constructor. |
|
FSlateBrush ( |
This constructor is protected; use one of the deriving classes instead. |
|
FSlateBrush ( |
|
|
FSlateBrush ( |
Name | Description | |
---|---|---|
|
~FSlateBrush() |
Name | Description | ||
---|---|---|---|
|
void |
AddReferencedObjects ( |
Report any references to UObjects to the reference collector. |
|
ESlateBrushD... |
GetDrawType() |
|
|
UE::Slate::F... |
GetImageSize() |
|
|
ESlateBrushI... |
GetImageType() |
|
|
const FMargi... |
GetMargin() |
|
|
ESlateBrushM... |
GetMirroring() |
|
|
const FSlate... |
GetRenderingResource ( |
|
|
const FSlate... |
GetRenderingResource() |
|
|
const FName |
GetResourceName() |
Gets the name of the resource object, if any. |
|
UObject *... |
GetResourceObject() |
Gets the UObject that represents the brush resource, if any. |
|
ESlateBrushT... |
GetTiling() |
|
|
GetTint ( |
Gets the brush's tint color. |
|
|
UE::Slate::F... |
GetUVRegion() |
Get brush UV region, should check if region is valid before using it |
|
bool |
HasUObject() |
Checks whether this brush has a UTexture object |
|
void |
InvalidateResourceHandle() |
|
|
bool |
IsDynamicallyLoaded() |
Checks whether the brush resource is loaded dynamically. |
|
bool |
IsSet() |
|
|
void |
SetImageSize |
|
|
void |
SetResourceObject ( |
Sets the UObject that represents the brush resource. |
|
void |
SetUVRegion ( |
Set brush UV region |
|
void |
SetUVRegion ( |
|
|
void |
UnlinkColors() |
Unlinks all colors in this brush. |
|
const FStrin... |
UTextureIdentifier() |
Gets the identifier for UObject based texture paths. |
Name | Description | ||
---|---|---|---|
|
bool |
operator!= ( |
Compares this brush with another for inequality. |
|
bool |
operator== ( |
Compares this brush with another for equality. |
Name | Description | ||
---|---|---|---|
|
uint8: 1 |
bHasUObject_DEPRECATED |
Whether or not the brush has a UTexture resource |
|
Tint_DEPRECATED |
Tinting applied to the image. |