| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/Canvas.h |
Include |
#include "Engine/Canvas.h" |
class UCanvas : public UObject
A drawing canvas.
Name | Description | ||
---|---|---|---|
|
uint32: 1 |
bCenterX |
|
|
uint32: 1 |
bCenterY |
|
|
uint32: 1 |
bNoSmooth |
|
|
int32 |
CachedDisplayHeight |
|
|
int32 |
CachedDisplayWidth |
|
|
FCanvas * |
Canvas |
|
|
float |
ClipX |
|
|
float |
ClipY |
|
|
FPlane |
ColorModulate |
Internal. |
|
TObjectPtr< cla... |
DefaultTexture |
|
|
DisplayDebugManager |
||
|
DrawColor |
||
|
TObjectPtr< cla... |
GradientTexture0 |
|
|
FQuat |
HmdOrientation |
|
|
float |
OrgX |
Modifiable properties. |
|
float |
OrgY |
|
|
TObjectPtr< cla... |
ReporterGraph |
Helper class to render 2d graphs on canvas |
|
int32 |
SafeZonePadEX |
|
|
int32 |
SafeZonePadEY |
|
|
int32 |
SafeZonePadX |
Cached data for safe zone calculation. |
|
int32 |
SafeZonePadY |
|
|
FSceneView *... |
SceneView |
|
|
int32 |
SizeX |
|
|
int32 |
SizeY |
|
|
int32 |
UnsafeSizeX |
|
|
int32 |
UnsafeSizeY |
|
|
FMatrix |
ViewProjectionMatrix |
Name | Description | |
---|---|---|
|
UCanvas ( |
Name | Description | ||
---|---|---|---|
|
void |
ApplySafeZoneTransform() |
Applies the current Platform's safe zone to the current Canvas position. |
|
void |
CanvasStringSize ( |
Calculates the size of the specified string. |
|
void |
ClippedStrLen ( |
Calculate the length of a string. |
|
FFontRenderI... |
CreateFontRenderInfo ( |
Constructor for FontRenderInfo |
|
void |
Deproject ( |
Transforms 2D screen coordinates into a 3D world-space origin and direction. |
|
void |
DrawDebugGraph ( |
Draws a graph comparing 2 variables. Useful for visual debugging and tweaking. |
|
void |
DrawIcon ( |
Draw a CanvasIcon at the desired canvas position. |
|
void |
DrawItem ( |
Draw a CanvasItem at the given coordinates |
|
void |
DrawItem ( |
Draw a CanvasItem at the given coordinates |
|
void |
DrawItem ( |
Draw a CanvasItem |
|
void |
DrawScaledIcon ( |
Draw a scaled CanvasIcon at the desired canvas position. |
|
float |
DrawText ( |
Draws a string of text to the screen. |
|
float |
DrawText ( |
|
|
void |
DrawTile ( |
Draw arbitrary aligned rectangle. |
|
void |
GetCenter ( |
Return X,Y for center of the draw region. |
|
void |
GetCenter ( |
Return X,Y for center of the draw region. |
|
float |
GetDPIScale() |
|
|
TWeakObjectP... |
GetReporterGraph() |
Creates if necessary and returns ReporterGraph instance for 2d graph canvas drawing |
|
void |
Init ( |
Initializes the canvas. |
|
void |
K2_Deproject ( |
Performs a deprojection of a screen space coordinate using the projection matrix set up for the Canvas. |
|
void |
K2_DrawBorder ( |
Draws a 3x3 grid border with tiled frame and tiled interior on the Canvas. |
|
void |
K2_DrawBox ( |
Draws an unfilled box on the Canvas. |
|
void |
K2_DrawLine ( |
Draws a line on the Canvas. |
|
void |
K2_DrawMaterial ( |
Draws a material on the Canvas. |
|
void |
K2_DrawMaterialTriangle ( |
Draws a set of triangles on the Canvas. |
|
void |
K2_DrawPolygon ( |
Draws a polygon on the Canvas. |
|
void |
K2_DrawText ( |
Draws text on the Canvas. |
|
void |
K2_DrawTexture ( |
Draws a texture on the Canvas. |
|
void |
K2_DrawTriangle ( |
Draws a set of triangles on the Canvas. |
|
FVector |
K2_Project ( |
Performs a projection of a world space coordinates using the projection matrix set up for the Canvas. |
|
FVector2D |
K2_StrLen |
Returns the wrapped text size in screen space coordinates. |
|
FVector2D |
K2_TextSize |
Returns the clipped text size in screen space coordinates. |
|
MakeIcon ( |
Fake CanvasIcon constructor. |
|
|
void |
MeasureStringInternal ( |
Measures a string, optionally stopped after the specified horizontal offset in pixels is reached. |
|
void |
PopSafeZoneTransform() |
|
|
FVector |
Project ( |
Transforms a 3D world-space vector into 2D screen coordinates. |
|
void |
Reset ( |
Reset canvas parameters, optionally do not change the origin |
|
void |
SetClip ( |
Sets the position of the lower-left corner of the clipping region of the Canvas |
|
void |
SetDrawColor ( |
Set draw color. (R,G,B,A) |
|
void |
SetDrawColor ( |
Set draw color. (FColor) |
|
void |
SetLinearDrawColor ( |
Set DrawColor with a FLinearColor and optional opacity override |
|
void |
SetView ( |
Changes the view for the canvas. |
|
void |
StrLen |
Calculate the length of a string, taking text wrapping into account. |
|
void |
StrLen |
Calculate the length of a string, taking text wrapping into account. |
|
void |
StrLen |
Calculate the length of a string, taking text wrapping into account. |
|
void |
StrLen |
Calculate the length of a string, taking text wrapping into account. |
|
void |
TextSize |
Calculates the horizontal and vertical size of a given string. |
|
void |
TextSize |
Calculates the horizontal and vertical size of a given string. |
|
void |
Update() |
Updates the canvas. |
|
void |
UpdateAllCanvasSafeZoneData() |
Function to go through all constructed canvas items and update their safe zone data. |
|
void |
UpdateSafeZoneData() |
Updates cached SafeZone data from the device. Call when main device is resized. |
|
int32 |
WrappedPrint ( |
Compute size and optionally print text with word wrap. |
|
void |
WrappedStrLenf ( |
Calculate the size of a string built from a font, word wrapped to a specified region. |
|
void |
WrapString ( |
|
|
void |
WrapString ( |
Parses a single string into an array of strings that will fit inside the specified bounding region. |
Name | Description | ||
---|---|---|---|
|
void |
BeginDestroy() |
Called before destroying the object. |
Name |
Description |
|
---|---|---|
|
ELastCharacterIndexFormat |