Fantom

 

class

fwt::Canvas

sys::Obj
  fwt::Widget
    fwt::Canvas

@js

Canvas is a custom widget which paints itself.

Slots

onPaintSource

virtual Void onPaint(Graphics g)

This callback is invoked when the widget should be repainted. The graphics context is initialized at the widget's origin with the clip bounds set to the widget's size.