Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Input
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SSegmentedControl
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SSegmentedControl.h |
| Include | #include "Widgets/Input/SSegmentedControl.h" |
Syntax
template<typename OptionType>
class SSegmentedControl : public SCompoundWidget
Remarks
A Slate Segmented Control is functionally similar to a group of Radio Buttons. Slots require a templated value to return when the segment is selected by the user. Users can specify text, icon or provide custom content to each Segment.
Note: It is currently not possible to add segments after initialization (i.e. there is no AddSlot).
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FScopedWidgetSlotArguments | AddSlot
(
const OptionType& InValue, |
||
| void | Construct
(
const FArguments& InArgs |
||
| TSharedPtr< SSegmentedControl< OptionType > > | Create
(
const TArray< OptionType >& InKeys, |
||
| OptionType | GetValue () |
||
| TArray< OptionType > | GetValues () |
||
| bool | HasValue
(
OptionType InValue |
||
| int32 | NumSlots () |
||
| void | |||
| void | SetValue
(
TAttribute< OptionType > InValue, |
See the Value attribute | |
| void | SetValues
(
TAttribute< TArray< OptionType >> InValues, |
See the Values attribute | |
| FSlot::FSlotArguments | Slot
(
const OptionType& InValue |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FSlot | Stores the per-child info for this panel type |
Typedefs
| Name | Description |
|---|---|
| FOnValueChanged | |
| FOnValueChecked | |
| FOnValuesChanged | |
| FScopedWidgetSlotArguments | Slot Management. |