Where do I look at so as to build my own patch ? Is it enough to look at, for example, the class defining rectangles ?
Another question. Let suppose that I want to manage all the drawings, what will I have to do ? Imagine for example that I want to produce a TiKz code of a plot.