class fwt::Canvas
sys::Obj fwt::Widget fwt::Canvas
Canvas is a custom widget which paints itself.
- doubleBuffered
-
const Bool doubleBuffered := false
Enables double buffering support which can reduce flickering at the expose of a larger RAM footprint
- onPaint
-
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.