SBackgroundBlur

A BackgroundBlur is similar to a Border in that it can be used to contain other widgets.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SBackgroundBlur.h

Include

#include "Widgets/Layout/SBackgroundBlur.h"

Syntax

class SBackgroundBlur : public SCompoundWidget

Remarks

A BackgroundBlur is similar to a Border in that it can be used to contain other widgets. However, instead of surrounding the content with an image, it applies a post-process blur to everything (both actors and widgets) that is underneath it.

For low-spec machines where the blur effect is too computationally expensive, a user-specified fallback image is used instead (effectively turning this into a Border)

Variables

Name Description

Protected variable

bool

 

bApplyAlphaToBlur

Protected variable

TAttribute< TOp...

 

BlurRadius

Protected variable

TAttribute< flo...

 

BlurStrength

Protected variable

const FSlateBru...

 

LowQualityFallbackBrush

Functions

Name Description

Protected function Const

void

 

ComputeEffectiveKernelSize

(
    float Strength,
    int32& OutKernelSize,
    int32& OutDownsampleAmount
)

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Public function Const

bool

 

IsUsingLowQualityFallbackBrush()

Public function

void

 

SetApplyAlphaToBlur

(
    bool bInApplyAlphaToBlur
)

Public function

void

 

SetBlurRadius

(
    const TAttribute< TOptional< int32 ...
)

Public function

void

 

SetBlurStrength

(
    const TAttribute< float >& InStren...
)

Public function

void

 

SetContent

(
    const TSharedRef< SWidget >& InCon...
)

Public function

void

 

SetHAlign

(
    EHorizontalAlignment HAlign
)

Public function

void

 

SetLowQualityBackgroundBrush

(
    const FSlateBrush* InBrush
)

Public function

void

 

SetPadding

(
    const TAttribute< FMargin >& InPad...
)

Public function

void

 

SetVAlign

(
    EVerticalAlignment VAlign
)

Overridden from SWidget

Name Description

Public function Virtual Const

int32

 

OnPaint

(
    const FPaintArgs& Args,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle,
    bool bParentEnabled
)

The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children.

Classes

Name

Description

Public struct

FArguments

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