Class: Plushie::Widget::Canvas
- Inherits:
-
Object
- Object
- Plushie::Widget::Canvas
- Defined in:
- lib/plushie/widget/canvas.rb
Overview
Typed builder for the canvas widget: vector drawing surface.
Canvas is a container widget. Its children are +layer+ nodes (each mapping to an iced Cache for independent tessellation) or direct shape nodes for simple cases.
Instance Method Summary collapse
-
#add_layer(name, shape_nodes) ⇒ Canvas
Add a named layer of shape nodes as children.