RealDocs

FGeometry

struct SlateCore Blueprint Since 4.0
#include "Layout/Geometry.h"

Description

Represents the position, size, and absolute position of a Slate widget in the widget hierarchy. Geometries encode both a local-space size and the accumulated transforms needed to place the widget in absolute (screen or window) space.

Caveats & Gotchas

  • Absolute coordinates can be either desktop space or window space depending on where the root of the hierarchy sits — never assume one without knowing your context.
  • The public fields Size, Scale, and AbsolutePosition are deprecated and const-locked since UE 4.x to prevent accidental mutation that would silently break the cached render transform. Always use the accessor methods (GetLocalSize, GetAbsoluteSize, GetAccumulatedLayoutTransform) instead.
  • FGeometry is POD (TIsPODType<FGeometry>::Value == true), so it can be memcpy'd, but the private AccumulatedRenderTransform must stay in sync — never construct or mutate one manually outside of MakeRoot/MakeChild.

Functions (7)

Transform
6
Access Type Name
public function FGeometry::AbsoluteToLocal
public function FGeometry::GetAbsoluteSize
public function FGeometry::LocalToAbsolute
public function FGeometry::GetAbsolutePositionAtCoordinates
public function FGeometry::GetLayoutBoundingRect
public function FGeometry::GetRenderBoundingRect
Utility
1
Access Type Name
public function FGeometry::IsUnderLocation

Properties

Access Type Name
public property FGeometry::AbsolutePosition deprecated
public property FGeometry::Scale deprecated
public property FGeometry::Size deprecated

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable
5.5 stable
5.2 stable FDeprecateVector2D migration began; FVector2f used internally.

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.