SWidget::CalculateCullingAndClippingRules

Calculates what if any clipping state changes need to happen when drawing this widget.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWidget.h

Include

#include "Widgets/SWidget.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SWidget.cpp

Syntax

FSlateRect CalculateCullingAndClippingRules
(
    const FGeometry & AllottedGeometry,
    const FSlateRect & MyCullingRect,
    bool & bClipToBounds,
    bool & bAlwaysClip,
    bool & bIntersectClipBounds
) const

Remarks

Calculates what if any clipping state changes need to happen when drawing this widget.

Returns

the culling rect that should be used going forward.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss