Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout
Inheritance Hierarchy
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SWrapBox.h |
| Include | #include "Widgets/Layout/SWrapBox.h" |
Syntax
class SWrapBox : public SPanel
Remarks
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-]
Constructors
| Type | Name | Description | |
|---|---|---|---|
SWrapBox () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FScopedWidgetSlotArguments | AddSlot () |
||
| void | |||
| void | Construct
(
const FArguments& InArgs |
||
| int32 | RemoveSlot
(
const TSharedRef< SWidget >& SlotWidget |
Removes a slot from this box panel which contains the specified SWidget | |
| void | SetHorizontalAlignment
(
TAttribute< EHorizontalAlignment > InHAlignment |
How to distribute the elements among any extra space in a given row | |
| void | SetInnerSlotPadding
(
FVector2D InInnerSlotPadding |
See InnerSlotPadding Attribute | |
| void | SetOrientation
(
EOrientation InOrientation |
Set the Orientation to determine if the wrap box needs to arrange the slots left-to-right or top-to-bottom | |
| void | SetUseAllottedSize
(
bool bInUseAllottedSize |
When true, use the WrapSize property to determine where to wrap to the next line. | |
| void | SetWrapSize
(
TAttribute< float > InWrapSize |
Set the size at which the wrap panel should wrap its content. | |
| FSlot::FSlotArguments | Slot () |
||
| const FSlateWidgetClassData & |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ComputeDesiredSize
(
float |
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. | |
| void | OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Panels arrange their children in a space described by the AllottedGeometry parameter. | |
| void | Ticks this widget with Geometry. |
Overridden from FSlateControlledConstruction
| Type | Name | Description | |
|---|---|---|---|
| const FSlateWidgetClassData & |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FChildArranger | |||
| FSlot | A slot that support alignment of content and padding |
Typedefs
| Name | Description |
|---|---|
| FScopedWidgetSlotArguments | |
| PrivateParentType | |
| PrivateThisType | |
| Super | |
| ThisClass |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | SetUseAllottedWidth
(
bool bInUseAllottedWidth |
Deprecated, please use SetUseAllottedSize() instead | |
| void | SetWrapWidth
(
TAttribute< float > InWrapWidth |
Deprecated, please use SetWrapSize() instead |