Navigation
API > API/Runtime > API/Runtime/SlateCore
Represents a 2D transformation in the following order: scale then translate. Used by FGeometry for it's layout transformations.
Matrix form looks like: [Vx Vy 1] * [ S 0 0 ] [ 0 S 0 ] [ Tx Ty 1 ]
| Name | FSlateLayoutTransform |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Rendering/SlateLayoutTransform.h |
| Include Path | #include "Rendering/SlateLayoutTransform.h" |
Syntax
class FSlateLayoutTransform
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSlateLayoutTransform
(
float InScale |
Rendering/SlateLayoutTransform.h | ||
FSlateLayoutTransform
(
const UE::Slate::FDeprecateVector2DParameter& InTranslation |
Rendering/SlateLayoutTransform.h | ||
FSlateLayoutTransform
(
float InScale, |
Ctor from a scale followed by translate. Shortcut to Concatenate(InScale, InTranslation). | Rendering/SlateLayoutTransform.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Scale | float | Rendering/SlateLayoutTransform.h | ||
| Translation | FVector2f | Rendering/SlateLayoutTransform.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSlateLayoutTransform Concatenate
(
const FSlateLayoutTransform& RHS |
This works by transforming the origin through LHS then RHS. | Rendering/SlateLayoutTransform.h | |
float GetScale() |
Access to the scale. | Rendering/SlateLayoutTransform.h | |
UE::Slate::FDeprecateVector2DResult GetTranslation() |
Access to the 2D translation | Rendering/SlateLayoutTransform.h | |
FSlateLayoutTransform Inverse() |
Invert the transform/scale. | Rendering/SlateLayoutTransform.h | |
FMatrix ToMatrix() |
Support for converting to an FMatrix. | Rendering/SlateLayoutTransform.h | |
UE::Slate::FDeprecateVector2DResult TransformPoint
(
const UE::Slate::FDeprecateVector2DParameter& Point |
Rendering/SlateLayoutTransform.h | ||
UE::Slate::FDeprecateVector2DResult TransformVector
(
const UE::Slate::FDeprecateVector2DParameter& Vector |
Rendering/SlateLayoutTransform.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FSlateLayoutTransform& Other |
Inequality. | Rendering/SlateLayoutTransform.h | |
bool operator==
(
const FSlateLayoutTransform& Other |
Equality. | Rendering/SlateLayoutTransform.h |