Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SWrapBox.h |
Include |
#include "Widgets/Layout/SWrapBox.h" |
class SWrapBox : public SPanel
With EOrientation::Orient_Horizontal Arranges widgets left-to-right. When the widgets exceed the PreferredSize the SWrapBox will place widgets on the next line.
Illustration: +Preferred Size | [-----][-|-] [][[]| [--------|] [] | With EOrientation::Orient_Vertical Arranges widgets top-to-bottom. When the widgets exceed the PreferredSize the SVerticalWrapBox will place widgets on the next line.
Illustration: [___] [___] [-1-] [-3-]
[___] [___] [-2-] [-4-]
[___] ==============================>-----Preferred Size [-3-]
Name | Description | |
---|---|---|
|
SWrapBox() |
Name | Description | ||
---|---|---|---|
|
FSlot & |
AddSlot() |
|
|
ClearChildren() |
||
|
Construct ( |
||
|
RemoveSlot ( |
Removes a slot from this box panel which contains the specified SWidget |
|
|
SetInnerSlotPadding ( |
See InnerSlotPadding Attribute |
|
|
SetOrientation ( |
Set the Orientation to determine if the wrap box needs to arrange the slots left-to-right or top-to-bottom |
|
|
SetUseAllottedSize ( |
When true, use the WrapSize property to determine where to wrap to the next line. |
|
|
SetWrapSize ( |
Set the size at which the wrap panel should wrap its content. |
|
|
FSlot & |
Slot() |
Name | Description | ||
---|---|---|---|
|
ComputeDesiredSize ( |
A Panel's desired size in the space required to arrange of its children on the screen while respecting all of the children's desired sizes and any layout-related options specified by the user. |
|
|
FChildren &#... |
GetChildren() |
All widgets must provide a way to access their children in a layout-agnostic way. |
|
OnArrangeChildren ( |
Panels arrange their children in a space described by the AllottedGeometry parameter. |
|
|
Tick ( |
Ticks this widget with Geometry. |
Name |
Description |
|
---|---|---|
|
FArguments |
|
|
FChildArranger |
|
|
FSlot |
A slot that support alignment of content and padding |
Name | Description | ||
---|---|---|---|
|
SetUseAllottedWidth ( |
Deprecated, please use SetUseAllottedSize() instead |
|
|
SetWrapWidth ( |
Deprecated, please use SetWrapSize() instead |