Interface: UICanvas
Renders 2d shapes in the UI.
Properties
Name | Type | Description |
activationenabled | boolean | No description provided. |
actuallayoutheight | number | No description provided. |
actuallayoutwidth | number | No description provided. |
actualuiscale_x | number | No description provided. |
actualuiscale_y | number | No description provided. |
actualxoffset | number | No description provided. |
actualyoffset | number | No description provided. |
checked | boolean | No description provided. |
contentheight | number | No description provided. |
contentwidth | number | No description provided. |
defaultfocus | string | No description provided. |
desiredlayoutheight | number | No description provided. |
desiredlayoutwidth | number | No description provided. |
enabled | boolean | No description provided. |
hittest | boolean | No description provided. |
hittestchildren | boolean | No description provided. |
id | string | No description provided. |
inputnamespace | string | No description provided. |
layoutfile | string | No description provided. |
paneltype | UICanvas | No description provided. |
rememberchildfocus | boolean | No description provided. |
scrolloffset_x | number | No description provided. |
scrolloffset_y | number | No description provided. |
selectionpos_x | number | No description provided. |
selectionpos_y | number | No description provided. |
style | Style | No description provided. |
tabindex | number | No description provided. |
visible | boolean | No description provided. |
Functions
AcceptsFocus
No description provided.
AcceptsInput
No description provided.
AddClass
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
ApplyStyles
No description provided.
Parameter
Name | Type | Description |
arg0 | boolean | No description provided. |
BAscendantHasClass
No description provided.
Parameter
Name | Type | Description |
arg0 | string | No description provided. |
CanSeeInParentScroll
No description provided.
Children
No description provided.
Clear
Clear the canvas with the specified color
Parameter
Name | Type | Description |
color | string | Clear color |
ClearPanelEvent
No description provided.
Parameter
Name | Type | Description |
event | string | No description provided. |
ClearPropertyFromCode
No description provided.
Parameter
Name | Type | Description |
arg0 | unknown | No description provided. |
CreateChildren
No description provided.
Parameter
Name | Type | Description |
elements | string | No description provided. |
CreateCopyOfCSSKeyframes
No description provided.
Parameter
Name | Type | Description |
animation | string | No description provided. |
Data
No description provided.
Parameter
Name | Type | Description |
...args | any[] | No description provided. |
DeleteAsync
No description provided.
Parameter
Name | Type | Description |
delay | number | No description provided. |
DeleteKeyframes
No description provided.
Parameter
Name | Type | Description |
animation | unknown | No description provided. |
DrawFilledCircle
Draws a filled circle
Parameters
Name | Type | Description |
cX | number | X coord of center |
cY | number | Y coord of center |
radius | number | Radius of the circle |
color | string | Color of the circle |
DrawFilledWedge
Draws a filled wedge, basically a slice of a circle
Parameters
Name | Type | Description |
cX | number | X coord of center |
cY | number | Y coord of center |
radius | number | Radius of the circle |
startAngle | number | Starting angle (in radians) |
angleDelta | number | Angle delta (in radians) |
color | string | Color of the wedge |
DrawLineCircle
Draws a circle with lines (i.e. not filled)
Parameters
Name | Type | Description |
cX | number | X coord of center |
cY | number | Y coord of center |
radius | number | Radius of the circle |
color | string | Color of the lines |
DrawLinePoints
No description provided.
Parameters
Name | Type | Description |
count | number | The number of points to draw. |
coords | number[] | An array of float x/y coordinates. |
thickness | number | The thickness of the line. |
color | string | The color of the line as a string. |
DrawPoly
No description provided.
Parameters
Name | Type | Description |
count | number | The number of points to draw. |
coords | number[] | An array of float x/y coordinates. |
color | string | The color of the line as a string. |
DrawShadedPoly
No description provided.
Parameters
Name | Type | Description |
count | number | Number of points |
coords | number[] | An array of float x/y coords. Must be count * 2 in length |
colors | string[] | An array of colors for each point. Must be count in length |
DrawSoftLinePoints
Draws a line, but softer!
Parameters
Name | Type | Description |
count | number | Number of points |
coords | number[] | Array of float x/y coordinates. Must be count * 2 in length |
thickness | number | Thickness of the line |
softness | number | Softness of the line |
color | string | Color of the line |
DrawSoftLinePointsDisconnected
Draws a bunch of discrete points
Parameters
Name | Type | Description |
count | number | Number of points |
coords | number[] | Array of float x/y coordinates. Must be count * 2 in length |
thickness | number | Thickness of the line |
softness | number | Softness of the line |
color | string | Color of the line |
FindChild
Searches this element's direct children and returns a child with the specified id.
Parameter
Name | Type | Description |
id | string | No description provided. |
FindChildInLayoutFile
No description provided.
Parameter
Name | Type | Description |
id | string | No description provided. |
FindChildrenWithClassTraverse
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
FindChildTraverse
No description provided.
Parameter
Name | Type | Description |
id | string | No description provided. |
GetAttributeInt
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
fallback | number | No description provided. |
GetAttributeString
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
fallback | string | No description provided. |
GetAttributeUInt32
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
fallback | number | No description provided. |
GetChild
No description provided.
Parameter
Name | Type | Description |
index | number | No description provided. |
GetChildCount
No description provided.
GetChildIndex
No description provided.
Parameter
Name | Type | Description |
child | GenericPanel | No description provided. |
GetFirstChild
No description provided.
GetLastChild
No description provided.
GetLayoutFileDefine
No description provided.
Parameter
Name | Type | Description |
def | string | No description provided. |
GetParent
No description provided.
GetPositionWithinWindow
No description provided.
HasClass
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
HasDescendantKeyFocus
No description provided.
HasHoverStyle
No description provided.
HasKeyFocus
No description provided.
IsDraggable
No description provided.
IsReadyForDisplay
No description provided.
IsSelected
No description provided.
IsSizeValid
No description provided.
IsTransparent
No description provided.
IsValid
Check if this panel is still valid
LoadLayout
No description provided.
Parameters
Name | Type | Description |
url | string | No description provided. |
override | boolean | No description provided. |
partial | boolean | No description provided. |
LoadLayoutAsync
No description provided.
Parameters
Name | Type | Description |
url | string | No description provided. |
override | boolean | No description provided. |
partial | boolean | No description provided. |
LoadLayoutFromString
No description provided.
Parameters
Name | Type | Description |
layout | string | No description provided. |
override | boolean | No description provided. |
partial | boolean | No description provided. |
LoadLayoutFromStringAsync
No description provided.
Parameters
Name | Type | Description |
layout | string | No description provided. |
override | boolean | No description provided. |
partial | boolean | No description provided. |
LoadLayoutSnippet
No description provided.
Parameter
Name | Type | Description |
snippet | string | No description provided. |
MoveChildAfter
No description provided.
Parameters
Name | Type | Description |
arg0 | unknown | No description provided. |
arg1 | unknown | No description provided. |
MoveChildBefore
No description provided.
Parameters
Name | Type | Description |
arg0 | unknown | No description provided. |
arg1 | unknown | No description provided. |
RegisterForReadyEvents
Registers this panel to receive ready/unready events.
Parameter
Name | Type | Description |
enable | boolean | Should this panel receive ready/unready events? |
RemoveAndDeleteChildren
No description provided.
RemoveClass
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
ScrollParentToFitWhenFocused
No description provided.
ScrollParentToMakePanelFit
No description provided.
Parameters
Name | Type | Description |
arg0 | number | No description provided. |
arg1 | boolean | No description provided. |
ScrollToBottom
No description provided.
ScrollToFitRegion
No description provided.
Parameters
Name | Type | Description |
arg0 | number | No description provided. |
arg1 | number | No description provided. |
arg2 | number | No description provided. |
arg3 | number | No description provided. |
arg4 | unknown | No description provided. |
arg5 | boolean | No description provided. |
arg6 | boolean | No description provided. |
ScrollToLeftEdge
No description provided.
ScrollToRightEdge
No description provided.
ScrollToTop
No description provided.
SetAcceptsFocus
No description provided.
Parameter
Name | Type | Description |
istrue | boolean | No description provided. |
SetAdditive
Set additive rendering mode
Parameter
Name | Type | Description |
additive | boolean | No description provided. |
SetAttributeInt
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
value | number | No description provided. |
SetAttributeString
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
value | string | No description provided. |
SetAttributeUInt32
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
value | number | No description provided. |
SetDialogVariable
No description provided.
Parameters
Name | Type | Description |
arg0 | string | No description provided. |
arg1 | string | No description provided. |
SetDialogVariableFloat
No description provided.
Parameters
Name | Type | Description |
arg0 | string | No description provided. |
arg1 | number | No description provided. |
SetDialogVariableInt
No description provided.
Parameters
Name | Type | Description |
arg0 | string | No description provided. |
arg1 | number | No description provided. |
SetDialogVariableTime
No description provided.
Parameters
Name | Type | Description |
arg0 | string | No description provided. |
arg1 | string | number | No description provided. |
SetDisableFocusOnMouseDown
No description provided.
Parameter
Name | Type | Description |
istrue | boolean | No description provided. |
SetDraggable
No description provided.
Parameter
Name | Type | Description |
istrue | boolean | No description provided. |
SetDrawColor
Set current draw color
Parameter
Name | Type | Description |
color | string | No description provided. |
SetDrawSize
Set current draw size
Parameter
Name | Type | Description |
size | number | No description provided. |
SetFocus
No description provided.
Parameter
Name | Type | Description |
focus | boolean | No description provided. |
SetHasClass
No description provided.
Parameters
Name | Type | Description |
classname | string | No description provided. |
hasclass | boolean | No description provided. |
SetInputNamespace
No description provided.
Parameter
Name | Type | Description |
arg0 | string | No description provided. |
SetMaxDrawCommands
No description provided.
Parameter
Name | Type | Description |
max | number | No description provided. |
SetPanelEvent
Sets an event trigger for this panel.
Example
Parameters
Name | Type | Description |
event | string | No description provided. |
callback | Func<any[], void> | No description provided. |
See also
SetParent
No description provided.
Parameter
Name | Type | Description |
parent | GenericPanel | No description provided. |
SetReadyForDisplay
No description provided.
Parameter
Name | Type | Description |
arg0 | boolean | No description provided. |
SetScrollParentToFitWhenFocused
No description provided.
Parameter
Name | Type | Description |
arg0 | boolean | No description provided. |
SetTopOfInputContext
No description provided.
Parameter
Name | Type | Description |
arg0 | boolean | No description provided. |
SortChildrenOnAttribute
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
ascending | boolean | No description provided. |
SwitchClass
No description provided.
Parameters
Name | Type | Description |
oldclass | string | No description provided. |
newclass | string | No description provided. |
ToggleClass
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
TriggerClass
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
UpdateCurrentAnimationKeyframes
No description provided.
Parameter
Name | Type | Description |
animation | unknown | No description provided. |
UpdateFocusInContext
No description provided.