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

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.

构造及析构函数说明

◆ FPaintGeometry()

FPaintGeometry::FPaintGeometry ( const FSlateLayoutTransform &  InAccumulatedLayoutTransform,
const FSlateRenderTransform &  InAccumulatedRenderTransform,
const FVector2D &  InLocalSize,
bool  bInHasRenderTransform 
)
inline

Creates and initializes a new instance.

参数
InLocalSizeThe size in local space
InAccumulatedLayoutTransformThe accumulated layout transform (from an FGeometry)
InAccumulatedRenderTransformThe accumulated render transform (from an FGeometry)

成员函数说明

◆ AppendTransform()

void FPaintGeometry::AppendTransform ( const FSlateLayoutTransform &  LayoutTransform)
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.

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

◆ CommitTransformsIfUsingLegacyConstructor()

void FPaintGeometry::CommitTransformsIfUsingLegacyConstructor ( ) const
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!

◆ GetAccumulatedRenderTransform()

const FSlateRenderTransform & FPaintGeometry::GetAccumulatedRenderTransform ( ) const
inline

Access the final render transform.

Must call CommitTransformsIfUsingLegacyConstructor() first if legacy ctor is used.

◆ GetLocalSize()

const FVector2D & FPaintGeometry::GetLocalSize ( ) const
inline

Get the Size of the geometry in local space.

Must call CommitTransformsIfUsingLegacyConstructor() first if legacy ctor is used.

◆ SetRenderTransform()

void FPaintGeometry::SetRenderTransform ( const FSlateRenderTransform &  RenderTransform)
inline

Special case method to replace the render transform on a paint geometry.

参数
RenderTransformAn additional layout transform to append to this paint geometry.

类成员变量说明

◆ DrawPosition

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.

◆ DrawScale

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


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