The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE3:Canvas (UT3)
Object >> Canvas |
Contents
- 1 Properties
- 2 Structs
- 3 Functions
- 3.1 Native functions
- 3.1.1 DeProject
- 3.1.2 Draw2DLine
- 3.1.3 DrawColorizedTile
- 3.1.4 DrawMaterialTile
- 3.1.5 DrawMaterialTileClipped
- 3.1.6 DrawRotatedMaterialTile
- 3.1.7 DrawRotatedTile
- 3.1.8 DrawText
- 3.1.9 DrawTextClipped
- 3.1.10 DrawTextureDoubleLine
- 3.1.11 DrawTextureLine
- 3.1.12 DrawTile
- 3.1.13 DrawTileClipped
- 3.1.14 DrawTileNew
- 3.1.15 DrawTileStretched
- 3.1.16 PopTransform
- 3.1.17 Project
- 3.1.18 PushTranslationMatrix
- 3.1.19 SetDrawColor
- 3.1.20 SetPos
- 3.1.21 StrLen
- 3.1.22 TextSize
- 3.2 Events
- 3.3 Other instance functions
- 3.1 Native functions
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Canvas: A drawing canvas. Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
Properties
bCenter
Type: bool
Whether to center the text.
bNoSmooth
Type: bool
Don't bilinear filter.
Canvas
Type: pointer{FCanvas}
Modifiers: native, const
ClipX
Type: float
ClipY
Type: float
Bottom right clipping region.
ColorModulate
Type: Object.Plane
Default value:
Member | Value |
---|---|
W | 1.0 |
X | 1.0 |
Y | 1.0 |
Z | 1.0 |
CurX
Type: float
CurY
Type: float
Current position for drawing.
CurYL
Type: float
Largest Y size since DrawText.
DefaultTexture
Type: Texture2D
Default value: Texture2D'EngineResources.WhiteSquareTexture'
DrawColor
Type: Object.Color
Color for drawing.
Default value:
Member | Value |
---|---|
A | 255 |
B | 127 |
G | 127 |
R | 127 |
Font
Type: Font
Font for DrawText.
Default value: Font'EngineFonts.SmallFont'
OrgX
Type: float
OrgY
Type: float
Origin for drawing.
SceneView
Type: pointer{FSceneView}
Modifiers: native, const
SizeX
Type: int
Modifiers: const
SizeY
Type: int
Modifiers: const
Structs
CanvasIcon
Holds texture information with UV coordinates as well.
- Texture2D Texture
- Source texture
- float U
- UV coords
- float V
- UV coords
- float UL
- UV coords
- float VL
- UV coords
Functions
Native functions
DeProject
Draw2DLine
DrawColorizedTile
DrawMaterialTile
Draws the emissive channel of a material to an axis-aligned quad at CurX,CurY.
Parameters:
- Mat - The material which contains the emissive expression to render.
- XL - The width of the quad in pixels.
- YL - The height of the quad in pixels.
- U - The U coordinate of the quad's upper left corner, in normalized coordinates.
- V - The V coordinate of the quad's upper left corner, in normalized coordinates.
- UL - The range of U coordinates which is mapped to the quad.
- VL - The range of V coordinates which is mapped to the quad.
DrawMaterialTileClipped
DrawRotatedMaterialTile
DrawRotatedTile
DrawText
DrawTextClipped
DrawTextureDoubleLine
DrawTextureLine
DrawTile
DrawTileClipped
DrawTileNew
the only difference in this new version is you can pass in other types of textures (e.g. ScriptedTexture)
DrawTileStretched
PopTransform
Pops the topmost matrix from the canvas transform stack.
Project
PushTranslationMatrix
Pushes a translation matrix onto the canvas.
Parameters:
- TranslationVector - Translation vector to use to create the translation matrix.
SetDrawColor
SetPos
StrLen
TextSize
Events
Reset
Other instance functions
DrawBox
DrawIcon
Draw a CanvasIcon at the desired canvas position.
DrawIconSection
Draw a subsection of a CanvasIcon at the desired canvas position.
DrawRect
DrawTextRA
Draws text right aligned from the current position.
DrawTexture
MakeIcon
Fake CanvasIcon constructor.