(alignment Alignment1D)
| 116 | } |
| 117 | |
| 118 | func (s *static) setTextAlignment1D(alignment Alignment1D) error { |
| 119 | var align Alignment2D |
| 120 | |
| 121 | switch alignment { |
| 122 | case AlignCenter: |
| 123 | align = AlignHCenterVCenter |
| 124 | |
| 125 | case AlignFar: |
| 126 | align = AlignHFarVCenter |
| 127 | |
| 128 | default: |
| 129 | align = AlignHNearVCenter |
| 130 | } |
| 131 | |
| 132 | return s.setTextAlignment(align) |
| 133 | } |
| 134 | |
| 135 | func (s *static) setTextAlignment(alignment Alignment2D) error { |
| 136 | if alignment == s.textAlignment { |
no test coverage detected