(newVisibleArea: Rect)
| 123 | } |
| 124 | |
| 125 | setVisibleArea(newVisibleArea: Rect) { |
| 126 | if (!rectEqualToRect(this.visibleArea, newVisibleArea)) { |
| 127 | if (sizeIsValid(newVisibleArea.size)) { |
| 128 | this.visibleArea = newVisibleArea; |
| 129 | } else { |
| 130 | this.visibleArea = zeroRect; |
| 131 | } |
| 132 | this.setNeedsDisplay(); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * A size that can be used as a hint by layout functions. |
no test coverage detected