Sets the sweep-gradient callback on the paint functions struct.
A paint functions struct
The sweep-gradient callback
Sets the sweep-gradient callback on the paint functions struct.