UE2:Canvas (U2XMP)
Object >> Canvas |
- Package:
- Engine
- This class in other games:
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
bCenter
Type: bool
Whether to center the text.
bNoSmooth
Type: bool
Don't bilinear filter.
ClipX
Type: float
ClipY
Type: float
Bottom right clipping region.
CurX
Type: float
CurY
Type: float
Current position for drawing.
CurYL
Type: float
Largest Y size since DrawText.
DebugFont
Type: Font
Default value: Font'Engine.DebugFont'
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.
MedFont
Type: Font
Medium system font.
Default value: Font'Engine.MediumFont'
OrgX
Type: float
OrgY
Type: float
Origin for drawing.
SizeX
Type: int
Modifiers: const
SizeY
Type: int
Modifiers: const
SmallFont
Type: Font
Small system font.
Default value: Font'Engine.SmallFont'
SpaceX
Type: float
SpaceY
Type: float
Spacing for after Draw*.
Style
Type: byte
Drawing style STY_None means don't draw.
Default value: 1
Viewport
Type: Viewport
Modifiers: const
Z
Type: float
Z location. 1=no screenflash, 2=yes screenflash.
Default value: 1.0
Functions
Static functions
MakeColor
Native functions
DeProject
DrawActor
DrawPortal
DrawRectangle
DrawText
DrawTextClipped
DrawTile
DrawTileClipped
GetDrawBounds
Project
SetDrawBounds
StrLen
TextSize
Events
Reset
Other instance functions
DrawIcon
DrawPattern
DrawRect
SetClip
SetDrawColor
SetFont
SetOrigin
SetPos