Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SPanel
- SWidgetSwitcher
- SCommonAnimatedSwitcher
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SWidgetSwitcher.h |
| Include | #include "Widgets/Layout/SWidgetSwitcher.h" |
Syntax
class SWidgetSwitcher : public SPanel
Remarks
Implements a widget switcher.
A widget switcher is like a tab control, but without tabs. At most one widget is visible at time.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FScopedWidgetSlotArguments | AddSlot
(
int32 SlotIndex |
Adds a slot to the widget switcher at the specified location. | |
| void | Construct
(
const FArguments& InArgs |
Constructs the widget. | |
| const FSlot * | |||
| TSharedPtr< SWidget > | Gets the active widget. | ||
| int32 | Gets the slot index of the currently active widget. | ||
| int32 | Gets the number of widgets that this switcher manages. | ||
| TPanelChildren< FSlot > & | |||
| TSharedPtr< SWidget > | GetWidget
(
int32 SlotIndex |
Gets the widget in the specified slot. | |
| int32 | GetWidgetIndex
(
TSharedRef< SWidget > Widget |
Gets the slot index of the specified widget. | |
| int32 | RemoveSlot
(
TSharedRef< SWidget > WidgetToRemove |
Removes a slot with the corresponding widget in it. | |
| void | SetActiveWidget
(
TSharedRef< SWidget > Widget |
Sets the active widget. | |
| void | SetActiveWidgetIndex
(
int32 Index |
Activates the widget at the specified index. | |
| FSlot::FSlotArguments | Slot () |
Creates a new widget slot. |
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. | |
| bool | Recomputes the volatility of the widget. | ||
| 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. | |
| bool | ValidatePathToChild
(
SWidget* InChild |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Typedefs
| Name | Description |
|---|---|
| FScopedWidgetSlotArguments | |
| FSlot |