wxRuby Documentation Home


This class is used to draw upon Windows within an evt_paint handler. This is the recommended technique to draw lines, shapes and bitmaps on the screen.

This class is not instantiated directly. Rather, define an evt_paint handler, and within it call the paint method of the Window you wish to draw upon. This method accepts a block, which receives a PaintDC object upon which drawing methods can be called.

This class has no methods of its own; all the drawing methods are described in the documentation for DC.

Derived from



See also

DC, MemoryDC, PaintDC, WindowDC, ScreenDC

[This page automatically generated from the Textile source at Wed Sep 09 02:21:18 +0100 2009]