Skip to main content

ThisCanvas

Type

expression

Summary

The canvas used when drawing a widget.

Syntax

this canvas

Description

The canvas used when drawing a widget.

Examples

// Draw the label centered on the rect of the widget
set the paint of this canvas to solid paint with color [1,1,1]
fill text "Start" at center of my rectangle on this canvas

Value

NameTypeDescription

return

The target canvas for widget drawing operations.

Thank you for your feedback!

Was this page helpful?