After countless failed attempts at trying to get a working template_curve_mapping, I have deemed it as inferior and broken, and decided to try my hand at a raw attempt with bgl, using an invisible operator button to capture the mouse events.
I've gotten the operator button positioned and sized how I want it, but now I need to draw the graph, and can't seem to figure out how to get the button's orientation and size (x,y,w,h).
Does anyone know how I could obtain those values from the Panel.draw context??
(the Operator.draw context is never invoked from the panel)