SEnableBox

A [SEnableBox](API\Runtime\Slate\Widgets\Layout\SEnableBox) contains a widget that is lied to about whether the parent hierarchy is enabled or not, being told the parent is always enabled

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Slate

Header

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

Include

#include "Widgets/Layout/SEnableBox.h"

Syntax

class SEnableBox : public SBox

Remarks

A SEnableBox contains a widget that is lied to about whether the parent hierarchy is enabled or not, being told the parent is always enabled

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs
)

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