Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Views
Inheritance Hierarchy
- STableViewBase
- TListTypeTraits< T, Enable >::SerializerType
- ITypedTableView
- SListView
- SAssetColumnView
- SAssetListView
- SCommonListView
- SMLDeformerCurvePickerListView
- SMLDeformerInputCurveListWidget
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Views/SListView.h |
| Include | #include "Widgets/Views/SListView.h" |
Syntax
template<typename ItemType>
class SListView :
public STableViewBase ,
private TListTypeTraits< T, Enable >::SerializerType,
public ITypedTableView< ItemType >
Remarks
A ListView widget observes an array of data items and creates visual representations of these items. ListView relies on the property that holding a reference to a value ensures its existence. In other words, neither SListView
A trivial use case appear below:
Given: TArray< TSharedPtr
SNew( SListView< TSharedPtr
In the example we make all our widgets be 24 screen units tall. The ListView will create widgets based on data items in the Items TArray. When the ListView needs to generate an item, it will do so using the specified OnGenerateRow method.
A sample implementation of MyClass::GenerateItemRow has to return a STableRow with optional content:
TSharedRef
Constructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | SListView
(
ETableViewMode::Type InListMode |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct this widget | ||
| FReply | OnKeyDown_Internal
(
const FGeometry& MyGeometry, |
||
| void | Private_OnEntryInitialized
(
ItemType TheItem, |
A low-level interface for use various widgets generated by ItemsWidgets(Lists, Trees, etc). These handle selection, expansion, and other such properties common to ItemsWidgets. |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FReply | Called after a key is pressed when this widget has focus (this event bubbles if not handled) | ||
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. | |
| FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was release within it. | |
| FNavigationReply | OnNavigation
(
const FGeometry& MyGeometry, |
Called when navigation is requested e.g. Left Joystick, Direction Pad, Arrow Keys can generate navigation events. | |
| bool | Checks to see if this widget supports keyboard focus. Override this in derived classes. |
Overridden from ITypedTableView
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< SWidget > | AsWidget () |
||
| ETableViewMode::Type | |||
| void | Empty the set of highlighted items. | ||
| void | Empty the selection set. | ||
| bool | Private_DoesItemHaveChildren
(
int32 ItemIndexInList |
||
| int32 | Private_GetNestingDepth
(
int32 ItemIndexInList |
||
| int32 | |||
| EOrientation | |||
| ESelectionMode::Type | |||
| const TBitArray & | Private_GetWiresNeededByDepth
(
int32 ItemIndexInList |
||
| bool | Private_HasSelectorFocus
(
const ItemType& TheItem |
Test if the item passed in has selector focus. | |
| bool | Private_IsItemExpanded
(
const ItemType& TheItem |
||
| bool | Private_IsItemHighlighted
(
const ItemType& TheItem |
Test if the current item should be highlighted. This is separate from hover highlights. | |
| bool | Private_IsItemSelectableOrNavigable
(
const ItemType& TheItem |
Test if the current item can be selected or navigated to. | |
| bool | Private_IsItemSelected
(
const ItemType& TheItem |
Test if the current item is selected. | |
| bool | Private_IsLastChild
(
int32 ItemIndexInList |
||
| bool | Is the list pending a refresh? | ||
| const TObjectPtrWrapTypeOf< ItemType > * | Private_ItemFromWidget
(
const ITableRow* TheWidget |
Given a Widget, find the corresponding data item. | |
| void | Private_OnExpanderArrowShiftClicked
(
ItemType TheItem, |
Called when the expander arrow for the given item is shift+clicked. | |
| bool | Private_OnItemClicked
(
ItemType TheItem |
Called when the item is clicked, and returns whether or not the event was handled | |
| bool | Private_OnItemDoubleClicked
(
ItemType TheItem |
Called when the item is double-clicked, and returns whether or not the event was handled | |
| void | Private_OnItemRightClicked
(
ItemType TheItem, |
Called when the item is right-clicked when not right mouse scrolling | |
| void | Private_SelectRangeFromCurrentTo
(
ItemType SelectorItem |
Select a range of items from the current RangeSelectionStart to the SelectorItem Does not cause an OnSelectionChanged()! | |
| void | Private_SetItemExpansion
(
ItemType TheItem, |
Set whether some data item is expanded or not. | |
| void | Private_SetItemHighlighted
(
ItemType TheItem, |
Enable a soft highlight on the element. | |
| void | Private_SetItemSelection
(
ItemType TheItem, |
Set the selection state of an item. | |
| void | Private_SignalSelectionChanged
(
ESelectInfo::Type SelectInfo |
Notify the ItemsWidget that we changed its selection. | |
| bool | Returns whether the table view uses selector focus. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |