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

Represents the position, size, and absolute position of a Widget in Slate. 更多...

#include <Geometry.h>

Public 成员函数

FORCEINLINE_DEBUGGABLE FVector2D AbsoluteToLocal (FVector2D AbsoluteCoordinate) const
 Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in. 更多...
 
FORCEINLINE_DEBUGGABLE void AppendTransform (const FSlateLayoutTransform &LayoutTransform)
 Special case method to append a layout transform to a geometry. 更多...
 
 FGeometry ()
 Default constructor. 更多...
 
 FGeometry (const FVector2D &OffsetFromParent, const FVector2D &ParentAbsolutePosition, const FVector2D &InLocalSize, float InScale)
 !!! DEPRECATED FUNCTION !!! Use MakeChild taking a layout transform instead! Construct a new geometry given the following parameters: 更多...
 
FORCEINLINE FVector2D GetAbsolutePosition () const
 Get the absolute position in render space.
 
FORCEINLINE FVector2D GetAbsolutePositionAtCoordinates (const FVector2D &NormalCoordinates) const
 Get the absolute position on the surface of the geometry using normalized coordinates. 更多...
 
FORCEINLINE FVector2D GetAbsoluteSize () const
 Get the absolute size of the geometry in render space.
 
FORCEINLINE FSlateLayoutTransform GetAccumulatedLayoutTransform () const
 
FORCEINLINE const FSlateRenderTransform & GetAccumulatedRenderTransform () const
 
FORCEINLINE_DEBUGGABLE FSlateRect GetClippingRect () const
 !!! DEPRECATED !!! This legacy function does not account for render transforms. 更多...
 
FORCEINLINE_DEBUGGABLE FVector2D GetDrawSize () const
 !!! DEPRECATED !!! This legacy function does not account for render transforms. 更多...
 
FORCEINLINE FVector2D GetLocalPositionAtCoordinates (const FVector2D &NormalCoordinates) const
 Get the local position on the surface of the geometry using normalized coordinates. 更多...
 
FORCEINLINE const FVector2D & GetLocalSize () const
 
FORCEINLINE_DEBUGGABLE bool IsUnderLocation (const FVector2D &AbsoluteCoordinate) const
 Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in. 更多...
 
FORCEINLINE_DEBUGGABLE FVector2D LocalToAbsolute (FVector2D LocalCoordinate) const
 Translates local coordinates into absolute coordinates 更多...
 
FORCEINLINE_DEBUGGABLE FVector2D LocalToRoundedLocal (FVector2D LocalCoordinate) const
 Translates the local coordinates into local coordinates that after being transformed into absolute space will be rounded to a whole number or approximately a whole number. 更多...
 
FORCEINLINE_DEBUGGABLE FGeometry MakeChild (const FVector2D &ChildOffset, const FVector2D &InLocalSize, float ChildScale=1.0f) const
 !!! DEPRECATED FUNCTION !!! Use MakeChild taking a layout transform instead! Create a child geometry relative to this one with a given local space size and layout transform given by a scale+offset. 更多...
 
FORCEINLINE_DEBUGGABLE FGeometry MakeChild (const FVector2D &InLocalSize, const FSlateLayoutTransform &LayoutTransform) const
 Create a child geometry relative to this one with a given local space size, layout transform, and identity render transform. 更多...
 
FORCEINLINE_DEBUGGABLE FGeometry MakeChild (const FVector2D &InLocalSize, const FSlateLayoutTransform &LayoutTransform, const FSlateRenderTransform &RenderTransform, const FVector2D &RenderTransformPivot) const
 Create a child geometry relative to this one with a given local space size, layout transform, and render transform. 更多...
 
FArrangedWidget MakeChild (const TSharedRef< SWidget > &ChildWidget, const FLayoutGeometry &LayoutGeometry) const
 Create a child geometry+widget relative to this one using the given LayoutGeometry. 更多...
 
FArrangedWidget MakeChild (const TSharedRef< SWidget > &ChildWidget, const FVector2D &ChildOffset, const FVector2D &InLocalSize, float ChildScale=1.0f) const
 !!! DEPRECATED FUNCTION !!! Use MakeChild taking a layout transform instead! Create a child geometry+widget relative to this one with a given local space size and layout transform given by a scale+offset. 更多...
 
FArrangedWidget MakeChild (const TSharedRef< SWidget > &ChildWidget, const FVector2D &InLocalSize, const FSlateLayoutTransform &LayoutTransform) const
 Create a child geometry+widget relative to this one with a given local space size and layout transform. 更多...
 
bool operator!= (const FGeometry &Other) const
 Test geometries for strict inequality (i.e. 更多...
 
FGeometry & operator= (const FGeometry &RHS)
 !!! HACK!!! We're keeping members of FGeometry const to prevent mutability without making them private, for backward compatibility. 更多...
 
bool operator== (const FGeometry &Other) const
 Test geometries for strict equality (i.e. 更多...
 
FORCEINLINE_DEBUGGABLE FPaintGeometry ToInflatedPaintGeometry (const FVector2D &InflateAmount) const
 Create a paint geometry relative to this one that whose local space is "inflated" by the specified amount in each direction. 更多...
 
FORCEINLINE_DEBUGGABLE FPaintGeometry ToOffsetPaintGeometry (const FVector2D &LocalOffset) const
 !!! DEPRECATED FUNCTION !!! Use ToPaintGeometry taking a layout transform instead! Create a paint geometry relative to this one with the same size size and a given local space offset. 更多...
 
FORCEINLINE_DEBUGGABLE FPaintGeometry ToPaintGeometry () const
 Create a paint geometry that represents this geometry. 更多...
 
FORCEINLINE_DEBUGGABLE FPaintGeometry ToPaintGeometry (const FSlateLayoutTransform &LayoutTransform) const
 Create a paint geometry with the same size as this geometry with a given layout transform. 更多...
 
FORCEINLINE_DEBUGGABLE FPaintGeometry ToPaintGeometry (const FVector2D &InLocalOffset, const FVector2D &InLocalSize, float InLocalScale=1.0f) const
 !!! DEPRECATED FUNCTION !!! Use ToPaintGeometry taking a layout transform instead! Create a paint geometry relative to this one with a given local space size and layout transform given as a scale+offset. 更多...
 
FORCEINLINE_DEBUGGABLE FPaintGeometry ToPaintGeometry (const FVector2D &InLocalSize, const FSlateLayoutTransform &InLayoutTransform) const
 Create a paint geometry relative to this one with a given local space size and layout transform. 更多...
 
FORCEINLINE_DEBUGGABLE FPaintGeometry ToPaintGeometry (const FVector2D &InLocalSize, const FSlateLayoutTransform &InLayoutTransform, const FSlateRenderTransform &RenderTransform, const FVector2D &RenderTransformPivot=FVector2D(0.5f, 0.5)) const
 Create a paint geometry relative to this one with a given local space size and layout transform. 更多...
 
FString ToString () const
 

静态 Public 成员函数

static FORCEINLINE_DEBUGGABLE FGeometry MakeRoot (const FVector2D &InLocalSize, const FSlateLayoutTransform &LayoutTransform)
 Makes a new geometry that is essentially the root of a hierarchy (has no parent transforms to inherit). 更多...
 
static FORCEINLINE_DEBUGGABLE FGeometry MakeRoot (const FVector2D &InLocalSize, const FSlateLayoutTransform &LayoutTransform, const FSlateRenderTransform &RenderTransform)
 Makes a new geometry that is essentially the root of a hierarchy (has no parent transforms to inherit). 更多...
 

Public 属性

const FVector2D AbsolutePosition
 !!! DEPRECATED !!! These legacy public members should ideally not be referenced, as they do not account for the render transform. 更多...
 
const FVector2D Position
 !!! DEPRECATED !!! 更多...
 
const float Scale
 !!! DEPRECATED !!! These legacy public members should ideally not be referenced, as they do not account for the render transform. 更多...
 
const FVector2D Size
 !!! DEPRECATED !!! Use GetLocalSize() accessor instead of directly accessing public members. 更多...
 

详细描述

Represents the position, size, and absolute position of a Widget in Slate.

The absolute location of a geometry is usually screen space or window space depending on where the geometry originated. Geometries are usually paired with a SWidget pointer in order to provide information about a specific widget (see FArrangedWidget). A Geometry's parent is generally thought to be the Geometry of the the corresponding parent widget.

示例
/github/workspace/Engine/Source/Runtime/UMG/Public/Components/Widget.h.

构造及析构函数说明

◆ FGeometry() [1/2]

FGeometry::FGeometry ( )

Default constructor.

Creates a geometry with identity transforms.

◆ FGeometry() [2/2]

FGeometry::FGeometry ( const FVector2D &  OffsetFromParent,
const FVector2D &  ParentAbsolutePosition,
const FVector2D &  InLocalSize,
float  InScale 
)
inline

!!! DEPRECATED FUNCTION !!! Use MakeChild taking a layout transform instead! Construct a new geometry given the following parameters:

参数
OffsetFromParentLocal position of this geometry within its parent geometry.
ParentAbsolutePositionThe absolute position of the parent geometry containing this geometry.
InSizeThe size of this geometry.
InScaleThe scale of this geometry with respect to Normal Slate Coordinates.

成员函数说明

◆ AbsoluteToLocal()

FORCEINLINE_DEBUGGABLE FVector2D FGeometry::AbsoluteToLocal ( FVector2D  AbsoluteCoordinate) const
inline

Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in.

返回
Transforms AbsoluteCoordinate into the local space of this Geometry.

◆ AppendTransform()

FORCEINLINE_DEBUGGABLE void FGeometry::AppendTransform ( const FSlateLayoutTransform &  LayoutTransform)
inline

Special case method to append a layout transform to a geometry.

This is used in cases where the FGeometry was arranged in window space and we need to add the root desktop translation. If you find yourself wanting to use this function, ask someone if there's a better way.

参数
LayoutTransformAn additional layout transform to append to this geometry.

◆ GetAbsolutePositionAtCoordinates()

FORCEINLINE FVector2D FGeometry::GetAbsolutePositionAtCoordinates ( const FVector2D &  NormalCoordinates) const
inline

Get the absolute position on the surface of the geometry using normalized coordinates.

(0,0) - upper left (1,1) - bottom right

Example: Say you wanted to know the center of the widget in absolute space, GetAbsolutePositionAtCoordinates(FVector2D(0.5f, 0.5f));

◆ GetAccumulatedLayoutTransform()

FORCEINLINE FSlateLayoutTransform FGeometry::GetAccumulatedLayoutTransform ( ) const
inline
返回
the accumulated layout transform. Shouldn't be needed in general.

◆ GetAccumulatedRenderTransform()

FORCEINLINE const FSlateRenderTransform & FGeometry::GetAccumulatedRenderTransform ( ) const
inline
返回
the accumulated render transform. Shouldn't be needed in general.

◆ GetClippingRect()

FORCEINLINE_DEBUGGABLE FSlateRect FGeometry::GetClippingRect ( ) const
inline

!!! DEPRECATED !!! This legacy function does not account for render transforms.

Returns a clipping rectangle corresponding to the allocated geometry's absolute position and size. Note that the clipping rectangle starts 1 pixel above and left of the geometry because clipping is not inclusive on the lower bound.

Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in.

返回
Allotted geometry rectangle in absolute coordinates.

◆ GetDrawSize()

FORCEINLINE_DEBUGGABLE FVector2D FGeometry::GetDrawSize ( ) const
inline

!!! DEPRECATED !!! This legacy function does not account for render transforms.

Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in.

返回
the size of the geometry in absolute space

◆ GetLocalPositionAtCoordinates()

FORCEINLINE FVector2D FGeometry::GetLocalPositionAtCoordinates ( const FVector2D &  NormalCoordinates) const
inline

Get the local position on the surface of the geometry using normalized coordinates.

(0,0) - upper left (1,1) - bottom right

Example: Say you wanted to know the center of the widget in local space, GetLocalPositionAtCoordinates(FVector2D(0.5f, 0.5f));

◆ GetLocalSize()

FORCEINLINE const FVector2D & FGeometry::GetLocalSize ( ) const
inline
返回
the size of the geometry in local space.

◆ IsUnderLocation()

FORCEINLINE_DEBUGGABLE bool FGeometry::IsUnderLocation ( const FVector2D &  AbsoluteCoordinate) const
inline

Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in.

返回
true if the provided location in absolute coordinates is within the bounds of this geometry.

◆ LocalToAbsolute()

FORCEINLINE_DEBUGGABLE FVector2D FGeometry::LocalToAbsolute ( FVector2D  LocalCoordinate) const
inline

Translates local coordinates into absolute coordinates

Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in.

返回
Absolute coordinates

◆ LocalToRoundedLocal()

FORCEINLINE_DEBUGGABLE FVector2D FGeometry::LocalToRoundedLocal ( FVector2D  LocalCoordinate) const
inline

Translates the local coordinates into local coordinates that after being transformed into absolute space will be rounded to a whole number or approximately a whole number.

This is important for cases where you want to show a popup or a tooltip and not have the window start on a half pixel, which can cause the contents to jitter in relation to eachother as the tooltip or popup moves around.

◆ MakeChild() [1/6]

FORCEINLINE_DEBUGGABLE FGeometry FGeometry::MakeChild ( const FVector2D &  ChildOffset,
const FVector2D &  InLocalSize,
float  ChildScale = 1.0f 
) const
inline

!!! DEPRECATED FUNCTION !!! Use MakeChild taking a layout transform instead! Create a child geometry relative to this one with a given local space size and layout transform given by a scale+offset.

The Render Transform is identity.

参数
ChildOffsetOffset of the child relative to the parent. Scale+Offset effectively define the layout transform.
LocalSizeThe size of the child geometry in local space.
ChildScaleScale of the child relative to the parent. Scale+Offset effectively define the layout transform.
返回
The new child geometry.

◆ MakeChild() [2/6]

FORCEINLINE_DEBUGGABLE FGeometry FGeometry::MakeChild ( const FVector2D &  InLocalSize,
const FSlateLayoutTransform &  LayoutTransform 
) const
inline

Create a child geometry relative to this one with a given local space size, layout transform, and identity render transform.

For example, a widget with a 5x5 margin will create a geometry for it's child contents having a LayoutTransform of Translate(5,5) and a LocalSize 10 units smaller than it's own.

参数
LocalSizeThe size of the child geometry in local space.
LayoutTransformLayout transform of the new child relative to this Geometry. Goes from the child's layout space to the this widget's layout space.
返回
The new child geometry.

◆ MakeChild() [3/6]

FORCEINLINE_DEBUGGABLE FGeometry FGeometry::MakeChild ( const FVector2D &  InLocalSize,
const FSlateLayoutTransform &  LayoutTransform,
const FSlateRenderTransform &  RenderTransform,
const FVector2D &  RenderTransformPivot 
) const
inline

Create a child geometry relative to this one with a given local space size, layout transform, and render transform.

For example, a widget with a 5x5 margin will create a geometry for it's child contents having a LayoutTransform of Translate(5,5) and a LocalSize 10 units smaller than it's own.

参数
LocalSizeThe size of the child geometry in local space.
LayoutTransformLayout transform of the new child relative to this Geometry. Goes from the child's layout space to the this widget's layout space.
RenderTransformRender-only transform of the new child that is applied before the layout transform for rendering purposes only.
RenderTransformPivotPivot in normalized local space of the Render transform.
返回
The new child geometry.

◆ MakeChild() [4/6]

FORCEINLINE_DEBUGGABLE FArrangedWidget FGeometry::MakeChild ( const TSharedRef< SWidget > &  ChildWidget,
const FLayoutGeometry &  LayoutGeometry 
) const

Create a child geometry+widget relative to this one using the given LayoutGeometry.

参数
ChildWidgetThe child widget this geometry is being created for.
LayoutGeometryLayout geometry of the child.
返回
The new child geometry.

◆ MakeChild() [5/6]

FORCEINLINE_DEBUGGABLE FArrangedWidget FGeometry::MakeChild ( const TSharedRef< SWidget > &  ChildWidget,
const FVector2D &  ChildOffset,
const FVector2D &  InLocalSize,
float  ChildScale = 1.0f 
) const

!!! DEPRECATED FUNCTION !!! Use MakeChild taking a layout transform instead! Create a child geometry+widget relative to this one with a given local space size and layout transform given by a scale+offset.

The Geometry inherits the child widget's render transform.

参数
ChildWidgetThe child widget this geometry is being created for.
ChildOffsetOffset of the child relative to the parent. Scale+Offset effectively define the layout transform.
LocalSizeThe size of the child geometry in local space.
ChildScaleScale of the child relative to the parent. Scale+Offset effectively define the layout transform.
返回
The new child geometry+widget.

◆ MakeChild() [6/6]

FORCEINLINE_DEBUGGABLE FArrangedWidget FGeometry::MakeChild ( const TSharedRef< SWidget > &  ChildWidget,
const FVector2D &  InLocalSize,
const FSlateLayoutTransform &  LayoutTransform 
) const

Create a child geometry+widget relative to this one with a given local space size and layout transform.

The Geometry inherits the child widget's render transform. For example, a widget with a 5x5 margin will create a geometry for it's child contents having a LayoutTransform of Translate(5,5) and a LocalSize 10 units smaller than it's own.

参数
ChildWidgetThe child widget this geometry is being created for.
LocalSizeThe size of the child geometry in local space.
LayoutTransformLayout transform of the new child relative to this Geometry.
返回
The new child geometry+widget.

◆ MakeRoot() [1/2]

static FORCEINLINE_DEBUGGABLE FGeometry FGeometry::MakeRoot ( const FVector2D &  InLocalSize,
const FSlateLayoutTransform &  LayoutTransform 
)
inlinestatic

Makes a new geometry that is essentially the root of a hierarchy (has no parent transforms to inherit).

For a root Widget, the LayoutTransform is often the window DPI scale + window offset.

参数
LocalSizeSize of the geometry in Local Space.
LayoutTransformLayout transform of the geometry.
返回
The new root geometry

◆ MakeRoot() [2/2]

static FORCEINLINE_DEBUGGABLE FGeometry FGeometry::MakeRoot ( const FVector2D &  InLocalSize,
const FSlateLayoutTransform &  LayoutTransform,
const FSlateRenderTransform &  RenderTransform 
)
inlinestatic

Makes a new geometry that is essentially the root of a hierarchy (has no parent transforms to inherit).

For a root Widget, the LayoutTransform is often the window DPI scale + window offset.

参数
LocalSizeSize of the geometry in Local Space.
LayoutTransformLayout transform of the geometry.
返回
The new root geometry

◆ operator!=()

bool FGeometry::operator!= ( const FGeometry &  Other) const
inline

Test geometries for strict inequality (i.e.

exact float equality negated).

参数
OtherA geometry to compare to.
返回
false if this is equal to other, true otherwise.

◆ operator=()

FGeometry & FGeometry::operator= ( const FGeometry &  RHS)

!!! HACK!!! We're keeping members of FGeometry const to prevent mutability without making them private, for backward compatibility.

But this means the assignment operator no longer works. We implement one ourselves now and force a memcpy.

◆ operator==()

bool FGeometry::operator== ( const FGeometry &  Other) const
inline

Test geometries for strict equality (i.e.

exact float equality).

参数
OtherA geometry to compare to.
返回
true if this is equal to other, false otherwise.

◆ ToInflatedPaintGeometry()

FORCEINLINE_DEBUGGABLE FPaintGeometry FGeometry::ToInflatedPaintGeometry ( const FVector2D &  InflateAmount) const
inline

Create a paint geometry relative to this one that whose local space is "inflated" by the specified amount in each direction.

The paint geometry inherits the widget's render transform.

参数
InflateAmountAmount by which to "inflate" the geometry in each direction around the center point. Effectively defines a layout transform offset and an inflation of the LocalSize.
返回
The new paint geometry derived from this one.

◆ ToOffsetPaintGeometry()

FORCEINLINE_DEBUGGABLE FPaintGeometry FGeometry::ToOffsetPaintGeometry ( const FVector2D &  LocalOffset) const
inline

!!! DEPRECATED FUNCTION !!! Use ToPaintGeometry taking a layout transform instead! Create a paint geometry relative to this one with the same size size and a given local space offset.

The paint geometry inherits the widget's render transform.

参数
LocalOffsetOffset of the paint geometry relative to the parent. Effectively defines the layout transform.
返回
The new paint geometry derived from this one.

◆ ToPaintGeometry() [1/5]

FORCEINLINE_DEBUGGABLE FPaintGeometry FGeometry::ToPaintGeometry ( ) const
inline

Create a paint geometry that represents this geometry.

返回
The new paint geometry.

◆ ToPaintGeometry() [2/5]

FORCEINLINE_DEBUGGABLE FPaintGeometry FGeometry::ToPaintGeometry ( const FSlateLayoutTransform &  LayoutTransform) const
inline

Create a paint geometry with the same size as this geometry with a given layout transform.

The paint geometry inherits the widget's render transform.

参数
LayoutTransformLayout transform of the paint geometry relative to this Geometry.
返回
The new paint geometry derived from this one.

◆ ToPaintGeometry() [3/5]

FORCEINLINE_DEBUGGABLE FPaintGeometry FGeometry::ToPaintGeometry ( const FVector2D &  InLocalOffset,
const FVector2D &  InLocalSize,
float  InLocalScale = 1.0f 
) const
inline

!!! DEPRECATED FUNCTION !!! Use ToPaintGeometry taking a layout transform instead! Create a paint geometry relative to this one with a given local space size and layout transform given as a scale+offset.

The paint geometry inherits the widget's render transform.

参数
LocalOffsetOffset of the paint geometry relative to the parent. Scale+Offset effectively define the layout transform.
LocalSizeThe size of the paint geometry in local space.
LocalScaleScale of the paint geometry relative to the parent. Scale+Offset effectively define the layout transform.
返回
The new paint geometry derived from this one.

◆ ToPaintGeometry() [4/5]

FORCEINLINE_DEBUGGABLE FPaintGeometry FGeometry::ToPaintGeometry ( const FVector2D &  InLocalSize,
const FSlateLayoutTransform &  InLayoutTransform 
) const
inline

Create a paint geometry relative to this one with a given local space size and layout transform.

The paint geometry inherits the widget's render transform.

参数
LocalSizeThe size of the child geometry in local space.
LayoutTransformLayout transform of the paint geometry relative to this Geometry.
返回
The new paint geometry derived from this one.

◆ ToPaintGeometry() [5/5]

FORCEINLINE_DEBUGGABLE FPaintGeometry FGeometry::ToPaintGeometry ( const FVector2D &  InLocalSize,
const FSlateLayoutTransform &  InLayoutTransform,
const FSlateRenderTransform &  RenderTransform,
const FVector2D &  RenderTransformPivot = FVector2D(0.5f, 0.5) 
) const
inline

Create a paint geometry relative to this one with a given local space size and layout transform.

The paint geometry inherits the widget's render transform.

参数
LocalSizeThe size of the child geometry in local space.
LayoutTransformLayout transform of the paint geometry relative to this Geometry.
返回
The new paint geometry derived from this one.

◆ ToString()

FString FGeometry::ToString ( ) const
返回
A String representation of this Geometry

类成员变量说明

◆ AbsolutePosition

const FVector2D FGeometry::AbsolutePosition

!!! DEPRECATED !!! These legacy public members should ideally not be referenced, as they do not account for the render transform.

FGeometry manipulation should be done in local space as much as possible so logic can be done in aligned local space, but still support arbitrary render transforms.

This member has been made const to prevent mutation, which would also break render transforms, which are computed during construction. There is no way to easily detect mutation of public members, thus no way to update the render transforms when they are modified.

Position in absolute space. Equivalent to the translation of the accumulated layout transform.

Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in.

◆ Position

const FVector2D FGeometry::Position

!!! DEPRECATED !!!

Position of the geometry with respect to its parent in local space. Equivalent to the translation portion of the Local->Parent layout transform. If you know your children have no additional scale applied to them, you can use this as the Local->Parent layout transform. If your children DO have additional scale applied, there is no way to determine the actual Local->Parent layout transform, since the scale is accumulated.

◆ Scale

const float FGeometry::Scale

!!! DEPRECATED !!! These legacy public members should ideally not be referenced, as they do not account for the render transform.

FGeometry manipulation should be done in local space as much as possible so logic can be done in aligned local space, but still support arbitrary render transforms.

This member has been made const to prevent mutation, which would also break render transforms, which are computed during construction. There is no way to easily detect mutation of public members, thus no way to update the render transforms when they are modified.

Scale in absolute space. Equivalent to the scale of the accumulated layout transform.

Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in.

◆ Size

const FVector2D FGeometry::Size

!!! DEPRECATED !!! Use GetLocalSize() accessor instead of directly accessing public members.

This member has been made const to prevent mutation.
There is no way to easily detect mutation of public members, thus no way to update the render transforms when they are modified.

Size of the geometry in local space.


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