func (v *signalGraphView) DrawCallback(area DrawArea, context *cairo.Context) { context.Scale(v.parent.Scale(), v.parent.Scale()) x1, y1, x2, y2 := context.ClipExtents() r := image.Rect(int(x1), int(y1), int(x2), int(y2)) v.drawNodes(context, r) v.drawConnections(context, r) }
func (v *platformView) DrawCallback(area DrawArea, context *cairo.Context) { context.Scale(v.parent.Scale(), v.parent.Scale()) x1, y1, x2, y2 := context.ClipExtents() r := image.Rect(int(x1), int(y1), int(x2), int(y2)) v.drawArch(context, r) v.drawChannels(context, r) }
func (v *mappingView) DrawCallback(area DrawArea, context *cairo.Context) { context.Scale(v.parent.Scale(), v.parent.Scale()) x1, y1, x2, y2 := context.ClipExtents() r := image.Rect(int(x1), int(y1), int(x2), int(y2)) if r.Overlaps(v.unmapped.BBox()) { v.unmapped.Draw(context) } v.drawArch(context, r) v.drawNodes(context, r) v.drawChannels(context, r) v.drawConnections(context, r) }