def METHOD_NAME(self, x, y, w, h):
    def ellipse(ctx):
        if w != 0.0 and h != 0.0:
            ctx.save()
            ctx.translate(x + w / 2.0, y + h / 2.0)
            ctx.scale(w * 0.5, h * 0.5)
            ctx.arc(0.0, 0.0, 1.0, 0.0, 2 * _pi)
            ctx.close_path()
            ctx.restore()
    return ellipse