Navigation
API > API/Runtime > API/Runtime/Slate
Description
Trims a provided margin based on the block location. Grouped multiblocks want to be directly next to each other so that they can be presented as a single visual item. This function allows for defining a single "padding between items" value and have the appropriate sides of that padding zeroed out.
| Name | EMultiBlockLocation::ToHorizontalMargin |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/MultiBox/MultiBoxDefs.h |
| Include Path | #include "Framework/MultiBox/MultiBoxDefs.h" |
namespace EMultiBlockLocation
{
static FMargin EMultiBlockLocation::ToHorizontalMargin
(
EMultiBoxType InBoxType,
Type InLocation,
FMargin Margin
)
}
The margin for the block at the given location.
Parameters
| Name | Remarks |
|---|---|
| InBoxType | The type of box the group is within. Used to determine horizontal/vertical flow. |
| InLocation | The location of the block within the group. |
| Margin | The margin around a group or individual block. |