Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SPanel
- SBox
- SContextualAnimAssetBrowser
- SEnableBox
- SIKRetargetAssetBrowser
- SIKRigAssetBrowser
- SIKRigOutputLog
- SLinkedBox
- SSafeZone
- SVisualAttachmentBox
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SBox.h |
| Include | #include "Widgets/Layout/SBox.h" |
Syntax
class SBox : public SPanel
Remarks
SBox is the simplest layout element.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FBoxOneChildSlot | ChildSlot |
Constructors
| Type | Name | Description | |
|---|---|---|---|
SBox () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | |||
| float | |||
| void | Construct
(
const FArguments& InArgs |
||
| void | SetContent
(
const TSharedRef< SWidget >& InContent |
See the Content slot. | |
| void | SetHAlign
(
EHorizontalAlignment HAlign |
See HAlign argument | |
| void | SetHeightOverride
(
TAttribute< FOptionalSize > InHeightOverride |
See HeightOverride attribute | |
| void | SetMaxAspectRatio
(
TAttribute< FOptionalSize > InMaxAspectRatio |
||
| void | SetMaxDesiredHeight
(
TAttribute< FOptionalSize > InMaxDesiredHeight |
See MaxDesiredHeight attribute | |
| void | SetMaxDesiredWidth
(
TAttribute< FOptionalSize > InMaxDesiredWidth |
See MaxDesiredWidth attribute | |
| void | SetMinAspectRatio
(
TAttribute< FOptionalSize > InMinAspectRatio |
||
| void | SetMinDesiredHeight
(
TAttribute< FOptionalSize > InMinDesiredHeight |
See MinDesiredHeight attribute | |
| void | SetMinDesiredWidth
(
TAttribute< FOptionalSize > InMinDesiredWidth |
See MinDesiredWidth attribute | |
| void | SetPadding
(
TAttribute< FMargin > InPadding |
See Padding attribute | |
| void | SetVAlign
(
EVerticalAlignment VAlign |
See VAlign argument | |
| void | SetWidthOverride
(
TAttribute< FOptionalSize > InWidthOverride |
See WidthOverride attribute | |
| 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. | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
Overridden from FSlateControlledConstruction
| Type | Name | Description | |
|---|---|---|---|
| const FSlateWidgetClassData & |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FBoxOneChildSlot |
Typedefs
| Name | Description |
|---|---|
| PrivateParentType | |
| PrivateThisType | |
| Super | |
| ThisClass |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| FBoxSlot: public FSingleWidgetChildrenWithBasicLayoutSlot { using FSingleWidgetChildrenWithBasicLay... | pad0 | FBoxSlot is deprecated. Use FSingleWidgetChildrenWithBasicLayoutSlot or FOneSimpleMemberChild |