My program doesn't have bugs. It just develops random features.
UE2:Canvas (UE2Runtime)
Object >> Canvas |
Contents
- 1 Properties
- 1.1 bCenter
- 1.2 bNoSmooth
- 1.3 ClipX
- 1.4 ClipY
- 1.5 CurX
- 1.6 CurY
- 1.7 CurYL
- 1.8 DrawColor
- 1.9 Font
- 1.10 MedFont
- 1.11 MedFontName
- 1.12 OrgX
- 1.13 OrgY
- 1.14 pCanvasUtil
- 1.15 SizeX
- 1.16 SizeY
- 1.17 SmallFont
- 1.18 SmallFontName
- 1.19 SpaceX
- 1.20 SpaceY
- 1.21 Style
- 1.22 TinyFont
- 1.23 TinyFontName
- 1.24 Viewport
- 1.25 Z
- 2 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. This is a built-in Unreal class and it shouldn't be modified.
Notes. To determine size of a drawable object, set Style to STY_None, remember CurX, draw the thing, then inspect CurX and CurYL.
Properties[edit]
bCenter[edit]
Type: bool
Whether to center the text.
bNoSmooth[edit]
Type: bool
Don't bilinear filter.
ClipX[edit]
Type: float
ClipY[edit]
Type: float
Bottom right clipping region.
CurX[edit]
Type: float
The canvas current drawing position in the X Axis (Left to Right)
CurY[edit]
Type: float
The canvas current drawing position in the Y Axis (Top to Bottom)
CurYL[edit]
Type: float
Largest Y size since DrawText.
DrawColor[edit]
Type: Object.Color
Color for drawing.
Default value:
Member | Value |
---|---|
A | 255 |
B | 127 |
G | 127 |
R | 127 |
Font[edit]
Type: Font
Font for DrawText.
Default value: Font'Engine.DefaultFont'
MedFont[edit]
Type: Font
MedFontName[edit]
Type: string
Default value: "EM_Fonts_T.FontMono800x600"
OrgX[edit]
Type: float
OrgY[edit]
Type: float
Origin for drawing.
pCanvasUtil[edit]
Type: int
Modifiers: const
SizeX[edit]
Type: int
Modifiers: const
The screen size in X Axis
SizeY[edit]
Type: int
Modifiers: const
The screen size in Y Axis
SmallFont[edit]
Type: Font
SmallFontName[edit]
Type: string
Default value: "EM_Fonts_T.FontMono"
SpaceX[edit]
Type: float
SpaceY[edit]
Type: float
Spacing for after Draw*.
Style[edit]
Type: byte
Drawing style STY_None means don't draw.
Default value: 1
TinyFont[edit]
Type: Font
TinyFontName[edit]
Type: string
Default value: "EM_Fonts_T.FontMono"
Viewport[edit]
Type: Viewport
Modifiers: const
Viewport that owns the canvas.
Z[edit]
Type: float
Z location. 1=no screenflash, 2=yes screenflash.
Default value: 1.0
Functions[edit]
Static functions[edit]
MakeColor[edit]
Make a color with the input Red, Green and Blue levels
Native functions[edit]
DrawActor[edit]
Draw the the input actor with the other parameters. if WireFrame=True, the actor will be draw normaly but with another wireframe model around it. if ClearZ=True, the actor will be draw in front of everything. DisplayFOV is the FOV Angle of drawing.
DrawPortal[edit]
DrawText[edit]
Draw a text.
DrawTextClipped[edit]
DrawTextJustified[edit]
DrawTile[edit]
DrawTileClipped[edit]
DrawTileJustified[edit]
DrawTileScaled[edit]
DrawTileStretched[edit]
StrLen[edit]
TextSize[edit]
WrapStringToArray[edit]
Events[edit]
Reset[edit]
Reset all canvas variables to their defaults
Other instance functions[edit]
DrawBox[edit]
Draw a box. width is the box size in the X Axis and height is the size in Y Axis.
DrawBracket[edit]
DrawHorizontal[edit]
DrawIcon[edit]
Draw a scaled image.
DrawLine[edit]
DrawPattern[edit]
DrawRect[edit]
DrawVertical[edit]
Draw a vertical line(Y Axis)