Drawing patterns

Added support for fill patterns, line patterns, distance markers, visible/hidden types.

I tried putting data straight from the current api, I did not notice any problems or errors, therefore I think it is safe to merge it into the master.