Source code for gaphas.painter.painter
"""The painter module provides different painters for parts of the canvas.
Painters can be swapped in and out.
Each painter takes care of a layer in the canvas (such as grid, items
and handles).
"""
from typing import Collection, Protocol
from cairo import Context as CairoContext
from gaphas.item import Item