Render a blank box for this glyph's position and size.
(self, window)
| 177 | window.addstr(self.y, self.x - len(self.label), label) |
| 178 | |
| 179 | def blank(self, window): |
| 180 | """Render a blank box for this glyph's position and size.""" |
| 181 | |
| 182 | glyph = self.glyph |
| 183 | x = min(max(self.x, 0), MAX_X) |
| 184 | width = min(glyph.width, MAX_X - x) or 1 |
| 185 | for y_a in range(self.y, self.y + glyph.height): |
| 186 | y = y_a |
| 187 | window.addstr(y + VERT_PADDING, x + HORIZ_PADDING, " " * width) |
| 188 | |
| 189 | if self.label: |
| 190 | self._render_label(window, True) |
| 191 | |
| 192 | @hybrid_property |
| 193 | def width(self): |
no test coverage detected