Create a line style from an explicit width and line type.
(width: Size, line_type: LineType)
| 46 | impl LineStyle { |
| 47 | /// Create a line style from an explicit width and line type. |
| 48 | pub fn new(width: Size, line_type: LineType) -> Self { |
| 49 | Self { width, line_type } |
| 50 | } |
| 51 | |
| 52 | /// Create a solid line style with the default width of 1 logical pixel. |
| 53 | pub fn solid() -> Self { |