⌂
›
Reference
›
Canvas
Canvas
Canvas control. Build it with the canvas helper.
Example
canvas(
content: text("Canvas"),
expand: true,
width: 240,
height: 120,
on_animation_end: ->(event) {}
)
Properties
content— The single child control rendered inside this control.resize_intervalshapes
Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).
Events
on_animation_end— Fired when an animation completes.on_resize— Fired when the control is resized.on_size_change— Fired when the control's size changes.
Reference
- Family:
shared - Widget type:
canvas - Helper:
canvas