#include <SlateBrush.h>
|
| SLATECORE_API FORCENOINLINE | FSlateBrush (ESlateBrushDrawType::Type InDrawType, const FName InResourceName, const FMargin &InMargin, ESlateBrushTileType::Type InTiling, ESlateBrushImageType::Type InImageType, const UE::Slate::FDeprecateVector2DParameter &InImageSize, const FLinearColor &InTint=FLinearColor::White, UObject *InObjectResource=nullptr, bool bInDynamicallyLoaded=false) |
| |
| SLATECORE_API FORCENOINLINE | FSlateBrush (ESlateBrushDrawType::Type InDrawType, const FName InResourceName, const FMargin &InMargin, ESlateBrushTileType::Type InTiling, ESlateBrushImageType::Type InImageType, const UE::Slate::FDeprecateVector2DParameter &InImageSize, const TSharedRef< FLinearColor > &InTint, UObject *InObjectResource=nullptr, bool bInDynamicallyLoaded=false) |
| |
| SLATECORE_API FORCENOINLINE | FSlateBrush (ESlateBrushDrawType::Type InDrawType, const FName InResourceName, const FMargin &InMargin, ESlateBrushTileType::Type InTiling, ESlateBrushImageType::Type InImageType, const UE::Slate::FDeprecateVector2DParameter &InImageSize, const FSlateColor &InTint, UObject *InObjectResource=nullptr, bool bInDynamicallyLoaded=false) |
| |
A brush which contains information about how to draw a Slate element
- Examples
- /work/Engine/Source/Runtime/UMG/Public/Components/Widget.h.
◆ FSlateBrush() [1/4]
| FSlateBrush::FSlateBrush |
( |
| ) |
|
◆ ~FSlateBrush()
| virtual FSlateBrush::~FSlateBrush |
( |
| ) |
|
|
inlinevirtual |
◆ FSlateBrush() [2/4]
This constructor is protected; use one of the deriving classes instead.
- Parameters
-
| InDrawType | How to draw the texture |
| InResourceName | The name of the resource |
| InMargin | Margin to use in border and box modes |
| InTiling | Tile horizontally/vertically or both? (only in image mode) |
| InImageType | The type of image |
| InTint | Tint to apply to the element. |
| InOutlineSettings | Optional Outline Border Settings for RoundedBox mode |
◆ FSlateBrush() [3/4]
◆ FSlateBrush() [4/4]
◆ AddReferencedObjects()
Report any references to UObjects to the reference collector.
◆ GetDrawType()
◆ GetImageSize()
◆ GetImageType()
◆ GetMargin()
| const FMargin & FSlateBrush::GetMargin |
( |
| ) |
const |
|
inline |
◆ GetMirroring()
◆ GetRenderingResource() [1/2]
◆ GetRenderingResource() [2/2]
◆ GetResourceName()
| const FName FSlateBrush::GetResourceName |
( |
| ) |
const |
|
inline |
Gets the name of the resource object, if any.
- Returns
- Resource name, or NAME_None if the resource object is not set.
◆ GetResourceObject()
| class UObject * FSlateBrush::GetResourceObject |
( |
| ) |
const |
|
inline |
Gets the UObject that represents the brush resource, if any.
The object may be a UMaterialInterface or a UTexture.
- Returns
- The resource object, or nullptr if it is not set.
◆ GetTiling()
◆ GetTint()
Gets the brush's tint color.
- Parameters
-
| InWidgetStyle | The widget style to get the tint for. |
- Returns
- Tint color.
◆ GetUVRegion()
Get brush UV region, should check if region is valid before using it
- Returns
- UV region
◆ HasUObject()
| bool FSlateBrush::HasUObject |
( |
| ) |
const |
|
inline |
Checks whether this brush has a UTexture object
- Returns
- true if it has a UTexture object, false otherwise.
◆ IsDynamicallyLoaded()
| bool FSlateBrush::IsDynamicallyLoaded |
( |
| ) |
const |
|
inline |
Checks whether the brush resource is loaded dynamically.
- Returns
- true if loaded dynamically, false otherwise.
◆ IsSet()
| bool FSlateBrush::IsSet |
( |
| ) |
const |
|
inline |
◆ operator!=()
Compares this brush with another for inequality.
- Parameters
-
- Returns
- false if the two brushes are equal, true otherwise.
◆ operator==()
Compares this brush with another for equality.
- Parameters
-
- Returns
- true if the two brushes are equal, false otherwise.
◆ SetImageSize()
◆ SetResourceObject()
| void FSlateBrush::SetResourceObject |
( |
class UObject * |
InResourceObject | ) |
|
Sets the UObject that represents the brush resource.
◆ SetUVRegion() [1/2]
| void FSlateBrush::SetUVRegion |
( |
const FBox2d & |
InUVRegion | ) |
|
|
inline |
Set brush UV region
- Parameters
-
| InUVRegion | When valid - overrides UV region specified in resource proxy |
◆ SetUVRegion() [2/2]
| void FSlateBrush::SetUVRegion |
( |
const FBox2f & |
InUVRegion | ) |
|
|
inline |
◆ UnlinkColors()
| void FSlateBrush::UnlinkColors |
( |
| ) |
|
|
inline |
◆ UTextureIdentifier()
| const FString FSlateBrush::UTextureIdentifier |
( |
| ) |
|
|
static |
Gets the identifier for UObject based texture paths.
- Returns
- Texture identifier string.
◆ FSlateShaderResourceManager
◆ bHasUObject_DEPRECATED
| uint8 FSlateBrush::bHasUObject_DEPRECATED |
|
protected |
Whether or not the brush has a UTexture resource
◆ bIsDynamicallyLoaded
| uint8 FSlateBrush::bIsDynamicallyLoaded |
|
protected |
Whether or not the brush path is a path to a UObject
◆ bIsSet
| uint8 FSlateBrush::bIsSet |
|
protected |
This is true for all constructed brushes except for optional brushes
◆ DrawAs
◆ ImageSize
Size of the resource in Slate Units
◆ ImageType
◆ Margin
The margin to use in Box and Border modes
◆ Mirroring
How to mirror the image in Image mode. This is normally only used for dynamic image brushes where the source texture comes from a hardware device such as a web camera.
◆ OutlineSettings
How to draw the outline. Currently only used for RoundedBox type brushes.
◆ ResourceHandle
Rendering resource for this brush
◆ ResourceName
| FName FSlateBrush::ResourceName |
|
protected |
The name of the rendering resource to use
◆ Tiling
How to tile the image in Image mode
◆ TintColor
Tinting applied to the image.
◆ UVRegion
Optional UV region for an image When valid - overrides UV region specified in resource proxy
The documentation for this struct was generated from the following files: