Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObject
- UVisual
- UWidget
- UDynamicEntryBoxBase
- UDynamicEntryBox
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/DynamicEntryBoxBase.h |
| Include | #include "Components/DynamicEntryBoxBase.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UDynamicEntryBoxBase : public UWidget
Remarks
Base for widgets that support a dynamic number of auto-generated entries at both design- and run-time. Contains all functionality needed to create, construct, and cache an arbitrary number of entry widgets, but exposes no means of entry creation or removal It's up to child classes to decide how they want to perform the population (some may do so entirely on their own without exposing a thing)
Variables
| Type | Name | Description | |
|---|---|---|---|
| EDynamicBoxType | EntryBoxType | The type of box panel into which created entries are added. | |
| TEnumAsByte< EHorizontalAlignment > | EntryHorizontalAlignment | Horizontal alignment of generated entries. Horizontal/Vertical/Wrap boxes only. | |
| FSlateChildSize | EntrySizeRule | Sizing rule to apply to generated entries. Horizontal/Vertical boxes only. | |
| FVector2D | EntrySpacing | The padding to apply between entries in the box. | |
| TEnumAsByte< EVerticalAlignment > | EntryVerticalAlignment | Vertical alignment of generated entries. Horizontal/Vertical/Wrap boxes only. | |
| int32 | MaxElementSize | The maximum size of each entry in the dominant axis of the box. Vertical/Horizontal boxes only. | |
| TSharedPtr< SPanel > | MyPanelWidget | Can be a horizontal, vertical, wrap box, or overlay. | |
| FRadialBoxSettings | RadialBoxSettings | Settings only relevant to RadialBox | |
| TArray< FVector2D > | SpacingPattern | The looping sequence of entry paddings to apply as entries are created. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UDynamicEntryBoxBase
(
const FObjectInitializer& Initializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddEntryChild
(
UUserWidget& ChildWidget |
||
| FMargin | BuildEntryPadding
(
const FVector2D& DesiredSpacing |
||
| UUserWidget * | CreateEntryInternal
(
TSubclassOf< UUserWidget > InEntryClass |
||
| const TArray< UUserWidget * > & | |||
| EDynamicBoxType | GetBoxType () |
||
| EHorizontalAlignment | |||
| const FSlateChildSize & | |||
| const FVector2D & | |||
| EVerticalAlignment | |||
| int32 | |||
| int32 | |||
| const FRadialBoxSettings & | |||
| TArray< EntryWidgetT * > | |||
| void | InitEntryBoxType
(
EDynamicBoxType InEntryBoxType |
Initialize EntryBoxType in the constructor before the SWidget is constructed. | |
| void | InitEntryHorizontalAlignment
(
EHorizontalAlignment InEntryHorizontalAlignment |
Initialize EntryHorizontalAlignment in the constructor before the SWidget is constructed. | |
| void | InitEntrySizeRule
(
FSlateChildSize InEntrySizeRule |
Initialize EntrySizeRule in the constructor before the SWidget is constructed. | |
| void | InitEntryVerticalAlignment
(
EVerticalAlignment InEntryVerticalAlignment |
Initialize EntryVerticalAlignment in the constructor before the SWidget is constructed. | |
| void | InitMaxElementSize
(
int32 InMaxElementSize |
Initialize MaxElementSize in the constructor before the SWidget is constructed. | |
| bool | IsEntryClassValid
(
TSubclassOf< UUserWidget > InEntryClass |
||
| void | RemoveEntryInternal
(
UUserWidget* EntryWidget |
||
| void | ResetInternal
(
bool bDeleteWidgets |
Clear out the box entries, optionally deleting the underlying Slate widgets entirely as well. | |
| void | ResetInternal
(
TFunctionRef< void(WidgetT&)> ResetEntryFunc, |
Clear out the box entries, executing the provided reset function for each and optionally deleting the underlying Slate widgets entirely as well. | |
| void | SetEntrySpacing
(
const FVector2D& InEntrySpacing |
||
| void | SetRadialSettings
(
const FRadialBoxSettings& InSettings |
Overridden from UWidget
| Type | Name | Description | |
|---|---|---|---|
| const FText | Gets the palette category of the widget | ||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | ||
| void | Applies all properties to the native widget if possible. |
Overridden from UVisual
| Type | Name | Description | |
|---|---|---|---|
| void | ReleaseSlateResources
(
bool bReleaseChildren |
See Also
UDynamicEntryBox for a ready-to-use version