Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 871 Bytes

painters.rst

File metadata and controls

42 lines (24 loc) · 871 Bytes

Painters

Painters are used to draw the view.

Protocols

Each painter adheres to the Painter protocol.

gaphas.painter.Painter

Some painters, such as FreeHandPainter and BoundingBoxPainter, require a special painter protocol:

gaphas.painter.painter.ItemPainterType

Default implementations

gaphas.painter.PainterChain

gaphas.painter.ItemPainter

gaphas.painter.HandlePainter

gaphas.painter.BoundingBoxPainter

gaphas.painter.FreeHandPainter

Rubberband tool

A special painter is used to display rubberband selection. This painter shares some state with the rubberband tool.

gaphas.tool.rubberband.RubberbandPainter