osu.Framework/Graphics/Containers/CompositeDrawable.cs
/// <summary>
/// Updates all masking calculations for this <see cref="CompositeDrawable"/> and its <see cref="AliveInternalChildren"/>.
/// This occurs post-<see cref="UpdateSubTree"/> to ensure that all <see cref="Drawable"/> updates have taken place.
/// </summary>
/// <param name="source">The parent that triggered this update on this <see cref="Drawable"/>.</param>
/// <param name="maskingBounds">The <see cref="RectangleF"/> that defines the masking bounds.</param>
/// <returns>Whether masking calculations have taken place.</returns>
Updates all masking calculations for this  and its .
This occurs post- to ensure that all  updates have taken place.
Updates all masking calculations for this and its . This occurs post - to ensure that all updates have taken place .
public override bool UpdateSubTreeMasking(Drawable source, RectangleF maskingBounds)
        {
            if (!base.UpdateSubTreeMasking(source, maskingBounds))
                return false;
            if (IsMaskedAway)
                return true;
            if (aliveInternalChildren.Count == 0)
                return true;
            if (RequiresChildrenUpdate)
            {
                var childMaskingBounds = ComputeChildMaskingBounds(maskingBounds);
                for (int i = 0; i < aliveInternalChildren.Count; i++)
                    aliveInternalChildren[i].UpdateSubTreeMasking(this, childMaskingBounds);
            }
            return true;
        }
public override bool UpdateSubTreeMasking ( Drawable source , RectangleF maskingBounds ) { if ( ! base . UpdateSubTreeMasking ( source , maskingBounds ) ) return false ; if ( IsMaskedAway ) return true ; if ( aliveInternalChildren . Count == 0 ) return true ; if ( RequiresChildrenUpdate ) { var childMaskingBounds = ComputeChildMaskingBounds ( maskingBounds ) ; for ( int i = 0 ; i < aliveInternalChildren . Count ; i ++ ) aliveInternalChildren [ i ] . UpdateSubTreeMasking ( this , childMaskingBounds ) ; } return true ; }
Updates all masking calculations for this  and its .
Updates all masking calculations for this and its .
Whether masking calculations have taken place.
Whether masking calculations have taken place .
source
Drawable
The parent that triggered this update on this .
The parent that triggered this update on this .
maskingBounds
RectangleF
The  that defines the masking bounds.
The that defines the masking bounds .