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