engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FSlateBoxBrush结构体 参考

A 3x3 box where the sides stretch horizontally and vertically and the middle stretches to fill. 更多...

#include <SlateBoxBrush.h>

+ 类 FSlateBoxBrush 继承关系图:

Public 成员函数

FORCENOINLINE FSlateBoxBrush (const FName &InImageName, const FMargin &InMargin, const FLinearColor &InColorAndOpacity=FLinearColor(1, 1, 1, 1), ESlateBrushImageType::Type InImageType=ESlateBrushImageType::FullColor)
 Make a 3x3 box that stretches the texture. 更多...
 
FORCENOINLINE FSlateBoxBrush (const FName &InImageName, const FVector2D &ImageSize, const FMargin &InMargin, const FLinearColor &InColorAndOpacity=FLinearColor(1, 1, 1, 1), ESlateBrushImageType::Type InImageType=ESlateBrushImageType::FullColor)
 Make a 3x3 box that stretches the texture. 更多...
 
FORCENOINLINE FSlateBoxBrush (UObject *InResourceObject, const FMargin &InMargin, const FSlateColor &InColorAndOpacity=FSlateColor(FLinearColor(1, 1, 1, 1)), ESlateBrushImageType::Type InImageType=ESlateBrushImageType::FullColor)
 Make a 3x3 box that stretches the texture. 更多...
 
FORCENOINLINE FSlateBoxBrush (UObject *InResourceObject, const FVector2D &ImageSize, const FMargin &InMargin, const FSlateColor &InColorAndOpacity=FSlateColor(FLinearColor(1, 1, 1, 1)), ESlateBrushImageType::Type InImageType=ESlateBrushImageType::FullColor)
 Make a 3x3 box that stretches the texture. 更多...
 
- Public 成员函数 继承自 FSlateBrush
void AddReferencedObjects (FReferenceCollector &Collector, UObject *ReferencingObject=nullptr)
 Report any references to UObjects to the reference collector.
 
 FSlateBrush ()
 Default constructor.
 
const FName GetResourceName () const
 Gets the name of the resource object, if any. 更多...
 
class UObject * GetResourceObject () const
 Gets the UObject that represents the brush resource, if any. 更多...
 
FLinearColor GetTint (const FWidgetStyle &InWidgetStyle) const
 Gets the brush's tint color. 更多...
 
const FBox2D & GetUVRegion () const
 Get brush UV region, should check if region is valid before using it 更多...
 
bool HasUObject () const
 Checks whether this brush has a UTexture object 更多...
 
bool IsDynamicallyLoaded () const
 Checks whether the brush resource is loaded dynamically. 更多...
 
bool operator!= (const FSlateBrush &Other) const
 Compares this brush with another for inequality. 更多...
 
bool operator== (const FSlateBrush &Other) const
 Compares this brush with another for equality. 更多...
 
void SetResourceObject (class UObject *InResourceObject)
 Sets the UObject that represents the brush resource.
 
void SetUVRegion (const FBox2D &InUVRegion)
 Set brush UV region 更多...
 
void UnlinkColors ()
 Unlinks all colors in this brush. 更多...
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 FSlateBrush
static const FString UTextureIdentifier ()
 Gets the identifier for UObject based texture paths. 更多...
 
- Public 属性 继承自 FSlateBrush
TEnumAsByte< enum ESlateBrushDrawType::Type > DrawAs
 How to draw the image
 
FVector2D 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. 更多...
 
FSlateResourceHandle ResourceHandle
 Rendering resource for this brush
 
TEnumAsByte< enum ESlateBrushTileType::Type > Tiling
 How to tile the image in Image mode
 
FSlateColor TintColor
 Tinting applied to the image.
 
- Protected 成员函数 继承自 FSlateBrush
FORCENOINLINE FSlateBrush (ESlateBrushDrawType::Type InDrawType, const FName InResourceName, const FMargin &InMargin, ESlateBrushTileType::Type InTiling, ESlateBrushImageType::Type InImageType, const FVector2D &InImageSize, const FLinearColor &InTint=FLinearColor::White, UObject *InObjectResource=nullptr, bool bInDynamicallyLoaded=false)
 This constructor is protected; use one of the deriving classes instead. 更多...
 
- Protected 属性 继承自 FSlateBrush
uint8 bHasUObject_DEPRECATED:1
 Whether or not the brush has a UTexture resource
 
uint8 bIsDynamicallyLoaded:1
 Whether or not the brush path is a path to a UObject
 
FName ResourceName
 The name of the rendering resource to use
 
FBox2D UVRegion
 Optional UV region for an image When valid - overrides UV region specified in resource proxy
 

详细描述

A 3x3 box where the sides stretch horizontally and vertically and the middle stretches to fill.

The corners will not be stretched. The size of the sides and corners is determined by the Margin as follows:

            _____________________
           |  | Margin.Top    |  |
           |__|_______________|__|   Margin.Right
           |  |               |  |  /
         +--> |               | <--+
        /  |__|_______________|__|

Margin.Left | | Margin.Bottom | | |__|_______________|__|

构造及析构函数说明

◆ FSlateBoxBrush() [1/4]

FORCENOINLINE FSlateBoxBrush::FSlateBoxBrush ( const FName &  InImageName,
const FMargin &  InMargin,
const FLinearColor &  InColorAndOpacity = FLinearColor(1,1,1,1),
ESlateBrushImageType::Type  InImageType = ESlateBrushImageType::FullColor 
)
inline

Make a 3x3 box that stretches the texture.

参数
InImageNameThe name of image to make into a box
InMarginThe size of corners and sides in normalized texture UV space.
InColorAndOpacityColor and opacity scale.

◆ FSlateBoxBrush() [2/4]

FORCENOINLINE FSlateBoxBrush::FSlateBoxBrush ( const FName &  InImageName,
const FVector2D &  ImageSize,
const FMargin &  InMargin,
const FLinearColor &  InColorAndOpacity = FLinearColor(1,1,1,1),
ESlateBrushImageType::Type  InImageType = ESlateBrushImageType::FullColor 
)
inline

Make a 3x3 box that stretches the texture.

参数
InImageNameThe name of image to make into a box
ImageSizeThe size of the resource as we want it to appear in slate units.
InMarginThe size of corners and sides in texture space.
InColorAndOpacityColor and opacity scale. Note of the image type is ImageType_TintMask, this value should be in HSV

◆ FSlateBoxBrush() [3/4]

FORCENOINLINE FSlateBoxBrush::FSlateBoxBrush ( UObject *  InResourceObject,
const FMargin &  InMargin,
const FSlateColor &  InColorAndOpacity = FSlateColor(FLinearColor(1, 1, 1, 1)),
ESlateBrushImageType::Type  InImageType = ESlateBrushImageType::FullColor 
)
inline

Make a 3x3 box that stretches the texture.

参数
InResourceObjectThe image to render for this brush, can be a UTexture, UMaterialInterface, or AtlasedTextureInterface
InMarginThe size of corners and sides in normalized texture UV space.
InColorAndOpacityColor and opacity scale.

◆ FSlateBoxBrush() [4/4]

FORCENOINLINE FSlateBoxBrush::FSlateBoxBrush ( UObject *  InResourceObject,
const FVector2D &  ImageSize,
const FMargin &  InMargin,
const FSlateColor &  InColorAndOpacity = FSlateColor(FLinearColor(1, 1, 1, 1)),
ESlateBrushImageType::Type  InImageType = ESlateBrushImageType::FullColor 
)
inline

Make a 3x3 box that stretches the texture.

参数
InImageNameThe name of image to make into a box
ImageSizeThe size of the resource as we want it to appear in slate units.
InMarginThe size of corners and sides in texture space.
InColorAndOpacityColor and opacity scale. Note of the image type is ImageType_TintMask, this value should be in HSV

该结构体的文档由以下文件生成: