class fwt::Canvas

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

@Js
@Serializable

Source

Canvas is a custom widget which paints itself.

doubleBuffered

const Bool doubleBuffered := false

Source

Enables double buffering support which can reduce flickering at the expose of a larger RAM footprint

onPaint

virtual Void onPaint(Graphics g)

Source

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.