()
| 48 | } |
| 49 | |
| 50 | func (fillRule FillRule) String() string { |
| 51 | switch fillRule { |
| 52 | case NonZero: |
| 53 | return "NonZero" |
| 54 | case EvenOdd: |
| 55 | return "EvenOdd" |
| 56 | case Positive: |
| 57 | return "Positive" |
| 58 | case Negative: |
| 59 | return "Negative" |
| 60 | } |
| 61 | return fmt.Sprintf("FillRule(%d)", fillRule) |
| 62 | } |
| 63 | |
| 64 | // Command values as powers of 2 so that the float64 representation is exact |
| 65 | // TODO: make CloseCmd a LineTo + CloseCmd, where CloseCmd is only a command value, no coordinates |
nothing calls this directly
no outgoing calls
no test coverage detected