Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Layout/Geometry.h |
Include |
#include "Layout/Geometry.h" |
struct FGeometry
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.
Name | Description | ||
---|---|---|---|
|
const FVector2f |
AbsolutePosition |
!!! DEPRECATED !!! These legacy public members should ideally not be referenced, as they do not account for the render transform. |
|
const FVector2f |
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. |
Name | Description | |
---|---|---|
|
FGeometry() |
Default constructor. Creates a geometry with identity transforms. |
|
FGeometry |
!!! DEPRECATED FUNCTION !!! Use MakeChild taking a layout transform instead! Construct a new geometry given the following parameters: |
Name | Description | ||
---|---|---|---|
|
AbsoluteToLocal ( |
Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in. |
|
|
AppendTransform ( |
Special case method to append a layout transform to a geometry. |
|
|
GetAbsolutePosition() |
Get the absolute position in render space. |
|
|
GetAbsolutePositionAtCoordinates ( |
Get the absolute position on the surface of the geometry using normalized coordinates. |
|
|
GetAbsoluteSize() |
Get the absolute size of the geometry in render space. |
|
|
FSlateLayout... |
GetAccumulatedLayoutTransform() |
|
|
const FSlate... |
GetAccumulatedRenderTransform() |
|
|
GetDrawSize() |
!!! DEPRECATED !!! This legacy function does not account for render transforms. |
|
|
GetLayoutBoundingRect ( |
||
|
GetLayoutBoundingRect ( |
||
|
GetLayoutBoundingRect() |
||
|
GetLocalPositionAtCoordinates ( |
Get the local position on the surface of the geometry using normalized coordinates. |
|
|
const FVecto... |
GetLocalSize() |
|
|
GetRenderBoundingRect ( |
||
|
GetRenderBoundingRect ( |
||
|
GetRenderBoundingRect() |
||
|
HasRenderTransform() |
||
|
IsUnderLocation ( |
Absolute coordinates could be either desktop or window space depending on what space the root of the widget hierarchy is in. |
|
|
LocalToAbsolute ( |
Translates local coordinates into absolute coordinates |
|
|
LocalToRoundedLocal ( |
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. |
|
|
FArrangedWid... |
MakeChild ( |
FGeometry Arranged Widget Inlined Functions. |
|
MakeChild ( |
Create a child geometry relative to this one with a given local space size, layout transform, and identity render transform. |
|
|
MakeChild ( |
||
|
FArrangedWid... |
MakeChild ( |
Create a child geometry+widget relative to this one using the given LayoutGeometry. |
|
MakeChild |
!!! 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. |
|
|
MakeChild ( |
Create a child geometry relative to this one with a given local space size, layout transform, and render transform. |
|
|
FArrangedWid... |
MakeChild ( |
!!! 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. |
|
MakeRoot ( |
Makes a new geometry that is essentially the root of a hierarchy (has no parent transforms to inherit). |
|
|
MakeRoot ( |
Makes a new geometry that is essentially the root of a hierarchy (has no parent transforms to inherit). |
|
|
FPaintGeomet... |
ToInflatedPaintGeometry ( |
Create a paint geometry relative to this one that whose local space is "inflated" by the specified amount in each direction. |
|
FPaintGeomet... |
ToOffsetPaintGeometry ( |
!!! 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. |
|
FPaintGeomet... |
ToPaintGeometry ( |
Create a paint geometry relative to this one with a given local space size and layout transform. |
|
FPaintGeomet... |
ToPaintGeometry ( |
Create a paint geometry with the same size as this geometry with a given layout transform. |
|
FPaintGeomet... |
ToPaintGeometry ( |
Create a paint geometry relative to this one with a given local space size and layout transform. |
|
FPaintGeomet... |
ToPaintGeometry |
!!! 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. |
|
FPaintGeomet... |
ToPaintGeometry() |
Create a paint geometry that represents this geometry. |
|
ToString() |
Name | Description | ||
---|---|---|---|
|
operator!= ( |
Test geometries for strict inequality (i.e. exact float equality negated). |
|
|
operator= ( |
!!! HACK!!! We're keeping members of FGeometry const to prevent mutability without making them private, for backward compatibility. |
|
|
operator== ( |
Test geometries for strict equality (i.e. exact float equality). |
Name | Description | ||
---|---|---|---|
|
GetClippingRect() |
This no longer represents any sort of clipping rect. Please use GetLayoutBoundingRect() to get the layout rect of this geometry. |