Widget painting

Painting defines how widgets present themselves graphically (using: colors, transparencies, and so on), as well as clipping. .

Graphics are always translated so that the origin 0,0 is positioned at the top, left corner of the widget. The graphic's clip (visible area) is set to the widget's size. Alpha and transparent pixels blend with the pixels already drawn. Widgets are drawn in property order, the first widget is drawn first (at the bottom), and the last widget drawn last (on the top). Effective z-order is the reverse of property order.