A Paint geometry contains the window-space (draw-space) info to draw an element on the screen. 更多...
#include <PaintGeometry.h>
Public 成员函数 | |
| void | AppendTransform (const FSlateLayoutTransform &LayoutTransform) |
| Special case method to append a layout transform to a paint geometry. 更多... | |
| void | CommitTransformsIfUsingLegacyConstructor () const |
| Support mutable geometries constructed in window space, and possibly mutated later, as all legacy members are public. 更多... | |
| FPaintGeometry () | |
| Default ctor. | |
| FPaintGeometry (const FSlateLayoutTransform &InAccumulatedLayoutTransform, const FSlateRenderTransform &InAccumulatedRenderTransform, const FVector2D &InLocalSize, bool bInHasRenderTransform) | |
| Creates and initializes a new instance. 更多... | |
| const FSlateRenderTransform & | GetAccumulatedRenderTransform () const |
| Access the final render transform. 更多... | |
| const FVector2D & | GetLocalSize () const |
| Get the Size of the geometry in local space. 更多... | |
| void | SetRenderTransform (const FSlateRenderTransform &RenderTransform) |
| Special case method to replace the render transform on a paint geometry. 更多... | |
Public 属性 | |
| FVector2D | DrawPosition |
| !!! DEPRECATED!!! Drawing should only happen in local space to ensure render transforms work. 更多... | |
| float | DrawScale |
| !!! DEPRECATED!!! Drawing should only happen in local space to ensure render transforms work. 更多... | |
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 |
|
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 |
Special case method to replace the render transform on a paint geometry.
| RenderTransform | An additional layout transform to append to this paint geometry. |
| FVector2D 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