requiresRedraw method

void requiresRedraw()

Notifies the parent that the current state of this GDisplayObject has changed and it requires a redraw.

This method updates the $hasTouchableArea and $hasVisibleArea flags based on the object's current state of visibility, masking, and scaling.

Implementation

void requiresRedraw() {
  /// TODO: notify parent the current state of this DisplayObject.
  $hasTouchableArea =
      visible && $maskee == null && _scaleX != 0 && _scaleY != 0;

  $hasVisibleArea = $alpha != 0 &&
      visible &&
      $maskee == null &&
      _scaleX != 0 &&
      _scaleY != 0;
}