Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Styling
Inheritance Hierarchy
- FSlateBrush
- FSlateBorderBrush
- FSlateVectorBorderBrush
- FSlateBoxBrush
- FSlateVectorBoxBrush
- FSlateColorBrush
- FSlateDynamicImageBrush
- FSlateImageBrush
- FSlateVectorImageBrush
- FSlateMaterialBrush
- FSlateNoResource
- FSlateOptionalBrush
- FSlateRoundedBoxBrush
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Styling/SlateBrush.h |
Include | #include "Styling/SlateBrush.h" |
Syntax
struct FSlateBrush
Remarks
A brush which contains information about how to draw a Slate element
Variables
Type | 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< enum ESlateBrushDrawType::Type > | DrawAs | How to draw the image |
![]() |
FDeprecateSlateVector2D | ImageSize | Size of the resource in Slate Units |
![]() |
TEnumAsByte< enum ESlateBrushImageType::Type > | ImageType | The type of image |
![]() |
FMargin | Margin | The margin to use in Box and Border modes |
![]() |
TEnumAsByte< enum ESlateBrushMirrorType::Type > | Mirroring | How to mirror the image in Image mode. |
![]() |
FSlateBrushOutlineSettings | OutlineSettings | How to draw the outline. Currently only used for RoundedBox type brushes. |
![]() |
FSlateResourceHandle | ResourceHandle | Rendering resource for this brush |
![]() |
FName | ResourceName | The name of the rendering resource to use |
![]() |
TEnumAsByte< enum ESlateBrushTileType::Type > | Tiling | How to tile the image in Image mode |
![]() |
FSlateColor | TintColor | Tinting applied to the image. |
![]() |
FBox2f | UVRegion | Optional UV region for an image When valid - overrides UV region specified in resource proxy |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FSlateBrush () |
Default constructor. | |
![]() |
FSlateBrush
(
ESlateBrushDrawType::Type InDrawType, |
This constructor is protected; use one of the deriving classes instead. | |
![]() |
FSlateBrush
(
ESlateBrushDrawType::Type InDrawType, |
||
![]() |
FSlateBrush
(
ESlateBrushDrawType::Type InDrawType, |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
~FSlateBrush () |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddReferencedObjects
(
FReferenceCollector& Collector, |
Report any references to UObjects to the reference collector. |
![]() ![]() |
ESlateBrushDrawType::Type | GetDrawType () |
|
![]() ![]() |
UE::Slate::FDeprecateVector2DResult | GetImageSize () |
|
![]() ![]() |
ESlateBrushImageType::Type | GetImageType () |
|
![]() ![]() |
const FMargin & | GetMargin () |
|
![]() ![]() |
ESlateBrushMirrorType::Type | GetMirroring () |
|
![]() ![]() |
const FSlateResourceHandle & | GetRenderingResource
(
UE::Slate::FDeprecateVector2DParameter LocalSize, |
|
![]() ![]() |
const FSlateResourceHandle & | ||
![]() ![]() |
const FName | Gets the name of the resource object, if any. | |
![]() ![]() |
UObject * | Gets the UObject that represents the brush resource, if any. | |
![]() ![]() |
ESlateBrushTileType::Type | GetTiling () |
|
![]() ![]() |
FLinearColor | GetTint
(
const FWidgetStyle& InWidgetStyle |
Gets the brush's tint color. |
![]() ![]() |
UE::Slate::FDeprecateBox2D | 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 | ||
![]() ![]() |
bool | Checks whether the brush resource is loaded dynamically. | |
![]() ![]() |
bool | IsSet () |
|
![]() |
void | SetImageSize
(
UE::Slate::FDeprecateVector2DParameter InImageSize |
|
![]() |
void | SetResourceObject
(
UObject* InResourceObject |
Sets the UObject that represents the brush resource. |
![]() |
void | SetUVRegion
(
const FBox2d& InUVRegion |
Set brush UV region |
![]() |
void | SetUVRegion
(
const FBox2f& InUVRegion |
|
![]() |
void | UnlinkColors () |
Unlinks all colors in this brush. |
![]() ![]() |
const FString | Gets the identifier for UObject based texture paths. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const FSlateBrush& Other |
Compares this brush with another for inequality. |
![]() ![]() |
bool | operator==
(
const FSlateBrush& Other |
Compares this brush with another for equality. |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
uint8: 1 | bHasUObject_DEPRECATED | Whether or not the brush has a UTexture resource |
![]() |
FLinearColor | Tint_DEPRECATED | Tinting applied to the image. |