An brush which contains information about how to draw a Slate element
更多...
#include <SlateBrush.h>
|
|
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
|
| |
An brush which contains information about how to draw a Slate element
- 示例
- /github/workspace/Engine/Source/Runtime/UMG/Public/Components/Widget.h.
◆ FSlateBrush()
This constructor is protected; use one of the deriving classes instead.
- 参数
-
| 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. |
◆ GetResourceName()
| const FName FSlateBrush::GetResourceName |
( |
| ) |
const |
|
inline |
Gets the name of the resource object, if any.
- 返回
- 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.
- 返回
- The resource object, or nullptr if it is not set.
◆ GetTint()
Gets the brush's tint color.
- 参数
-
| InWidgetStyle | The widget style to get the tint for. |
- 返回
- Tint color.
◆ GetUVRegion()
| const FBox2D & FSlateBrush::GetUVRegion |
( |
| ) |
const |
|
inline |
Get brush UV region, should check if region is valid before using it
- 返回
- UV region
◆ HasUObject()
| bool FSlateBrush::HasUObject |
( |
| ) |
const |
|
inline |
Checks whether this brush has a UTexture object
- 返回
- true if it has a UTexture object, false otherwise.
◆ IsDynamicallyLoaded()
| bool FSlateBrush::IsDynamicallyLoaded |
( |
| ) |
const |
|
inline |
Checks whether the brush resource is loaded dynamically.
- 返回
- true if loaded dynamically, false otherwise.
◆ operator!=()
| bool FSlateBrush::operator!= |
( |
const FSlateBrush & |
Other | ) |
const |
|
inline |
Compares this brush with another for inequality.
- 参数
-
- 返回
- false if the two brushes are equal, true otherwise.
◆ operator==()
| bool FSlateBrush::operator== |
( |
const FSlateBrush & |
Other | ) |
const |
|
inline |
Compares this brush with another for equality.
- 参数
-
- 返回
- true if the two brushes are equal, false otherwise.
◆ SetUVRegion()
| void FSlateBrush::SetUVRegion |
( |
const FBox2D & |
InUVRegion | ) |
|
|
inline |
Set brush UV region
- 参数
-
| InUVRegion | When valid - overrides UV region specified in resource proxy |
◆ UnlinkColors()
| void FSlateBrush::UnlinkColors |
( |
| ) |
|
|
inline |
◆ UTextureIdentifier()
| static const FString FSlateBrush::UTextureIdentifier |
( |
| ) |
|
|
static |
Gets the identifier for UObject based texture paths.
- 返回
- Texture identifier string.
◆ 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.
该结构体的文档由以下文件生成: