EInvalidateWidgetReason

Syntax

enum EInvalidateWidgetReason
{
    None                   = 0,
    Layout                 = 1 << 0,
    Paint                  = 1 << 1,
    Volatility             = 1 << 2,
    PaintAndVolatility     = Paint | Volatility,
    LayoutAndVolatility    = Layout | Volatility,
    Visibility             = Layout | Paint | Volatility,
}

Values

Name

Description

None

Not actually used, but defining it.

Layout

Use Layout invalidation if your widget needs to change desired size.

Paint

Use when the painting of widget has been altered, but nothing affecting sizing.

Volatility

Use if just the volatility of the widget has been adjusted.

PaintAndVolatility

Use Paint invalidation if you're changing a normal property involving painting or sizing.

LayoutAndVolatility

Use Layout invalidation if you're changing a normal property involving painting or sizing.

Visibility

Changing visibility affects layout, paint, and volatility

Remarks

The different types of invalidation that are possible for a widget.

References

Module

SlateCore

Header

Runtime/SlateCore/Public/Widgets/SWidget.h