Moved nested types from Style and Line.
Merge pull request #1 from AliveDevil/master

Moved nested types from Style and Line.