![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PaintGeometry.h>
Public Attributes | |
| FVector2f | DrawPosition |
| float | DrawScale |
A Paint geometry contains the window-space (draw-space) info to draw an element on the screen.
It contains the size of the element in the element's local space along with the transform needed to position the element in window space.
DrawPosition/DrawSize/DrawScale are maintained for legacy reasons, but are deprecated:
The DrawPosition and DrawSize are already positioned and scaled for immediate consumption by the draw code. The DrawScale is only applied to the internal aspects of the draw primitives. e.g. Line thickness, 3x3 grid margins, etc.
|
inline |
Default ctor.
|
inline |
|
inline |
|
inline |
Special case method to append a layout transform to a paint geometry. This is used in cases where the FGeometry was arranged in desktop space and we need to undo the root desktop translation to get into window space. If you find yourself wanting to use this function, ask someone if there's a better way.
| LayoutTransform | An additional layout transform to append to this paint geometry. |
|
inline |
Support mutable geometries constructed in window space, and possibly mutated later, as all legacy members are public. In these cases we defer creating of the RenderTransform and LocalSize until rendering time to ensure that all member changes have finished. WARNING: Legacy usage does NOT support render transforms!
|
inline |
Access the final render transform. Must call CommitTransformsIfUsingLegacyConstructor() first if legacy ctor is used.
|
inline |
Get the Size of the geometry in local space. Must call CommitTransformsIfUsingLegacyConstructor() first if legacy ctor is used.
|
inline |
|
inline |
Special case method to replace the render transform on a paint geometry.
| RenderTransform | An additional layout transform to append to this paint geometry. |
| FVector2f FPaintGeometry::DrawPosition |
!!! DEPRECATED!!! Drawing should only happen in local space to ensure render transforms work. WARNING: This legacy member represents is LAYOUT space, and does not account for render transforms.
Render-space position at which we will draw.
| float FPaintGeometry::DrawScale |
!!! DEPRECATED!!! Drawing should only happen in local space to ensure render transforms work. WARNING: This legacy member represents is LAYOUT space, and does not account for render transforms.
Only affects the draw aspects of individual draw elements. e.g. line thickness, 3x3 grid margins