Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Views
Inheritance Hierarchy
- ITableRow
- SBorder
- STableRow
- SAssetTagItemTableRow
- SComboRow
- SDatabaseAssetListItem
- SIKRigSolverStackItem
- SItemSelector::SItemSelectorItemTableRow
- SMLDeformerBonePickerTreeRowWidget
- SMLDeformerCurvePickerRowWidget
- SMLDeformerInputBoneTreeRowWidget
- SMLDeformerInputCurveListRowWidget
- SMultiColumnTableRow
- ISequencerTreeViewRow
- SOutlinerViewRow
- SAnimAttributeEntry
- SAssetColumnViewRow
- SAssetListViewRow
- SBoneMappingListRow
- SBonePairRow
- SCollectionSpreadSheetRow
- SDMXReadOnlyFixturePatchListRow
- SEventItem
- SIKRetargetChainMapRow
- SIKRetargetHierarchyRow
- SIKRigRetargetChainRow
- SIKRigSkeletonRow
- SLiveLinkCurveDebugUIListItem
- SOptionTableRow
- SSceneOutlinerPinnedTreeRow
- SSceneOutlinerTreeRow
- SSCS_RowWidget
- SSCS_RowWidget_ActorRoot
- SSCS_RowWidget_Separator
- SSelectionViewRow
- SSubobject_RowWidget
- SUsdTreeRow
- SUsdStagePreviewTreeRow
- SMultiSelectTableRow
- SNeuralMorphBoneGroupsTreeRowWidget
- SNeuralMorphCurveGroupsTreeRowWidget
- SRigStackItem
- SRigVMGraphFunctionLocalizationTableRow
- SRigVMVariableMappingTreeRow
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Views/STableRow.h |
| Include | #include "Widgets/Views/STableRow.h" |
Syntax
template<typename ItemType>
class STableRow :
public ITableRow,
public SBorder
Remarks
The ListView is populated by Selectable widgets. A Selectable widget is a way of the ListView containing it (OwnerTable) and holds arbitrary Content (Content). A Selectable works with its corresponding ListView to provide selection functionality.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowPreselectedItemActivation | When activating an item via mouse button, we generally don't allow pre-selected items to be activated | |
| bool | bChangedSelectionOnMouseDown | ||
| bool | bDragWasDetected | ||
| bool | bProcessingSelectionTouch | Did the current a touch interaction start in this item? | |
| bool | bShowSelection | Whether or not to visually show that this row is selected | |
| TWeakPtr< SWidget > | Content | The widget in the content slot for this row | |
| TSharedPtr< SExpanderArrow > | ExpanderArrowWidget | A pointer to the expander arrow on the row (if it exists) | |
| const ISlateStyle * | ExpanderStyleSet | The slate style to use with the expander | |
| int32 | IndexInList | Index of the corresponding data item in the list | |
| FSlotBase * | InnerContentSlot | The slot that contains the inner content for this row. | |
| TOptional< EItemDropZone > | ItemDropZone | Are we currently dragging/dropping over this item? | |
| FOnAcceptDrop | OnAcceptDrop | ||
| FOnCanAcceptDrop | OnCanAcceptDrop | ||
| FOnDragDetected | OnDragDetected_Handler | Delegate triggered when a user starts to drag a list item | |
| FOnTableRowDragEnter | OnDragEnter_Handler | Delegate triggered when a user's drag enters the bounds of this list item | |
| FOnTableRowDragLeave | OnDragLeave_Handler | Delegate triggered when a user's drag leaves the bounds of this list item | |
| FOnTableRowDrop | OnDrop_Handler | Delegate triggered when a user's drag is dropped in the bounds of this list item | |
| TWeakPtr< ITypedTableView< ItemType > > | OwnerTablePtr | The list that owns this Selectable | |
| FOnPaintDropIndicator | PaintDropIndicatorEvent | Optional delegate for painting drop indicators | |
| ETableRowSignalSelectionMode | SignalSelectionMode | When should we signal that selection changed for a left click | |
| const FTableRowStyle * | Style | Style used to draw this table row |
Constructors
| Type | Name | Description | |
|---|---|---|---|
STableRow () |
Protected constructor; SWidgets should only be instantiated via declarative syntax. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const typename STableRow< ItemType >::FArguments& InArgs, |
Construct this widget | |
| void | ConstructChildren
(
ETableViewMode::Type InOwnerTableMode, |
||
| void | ConstructInternal
(
FArguments const& InArgs, |
An internal method to construct and setup this row widget (purposely avoids child construction). | |
| const FSlateBrush * | GetBorder () |
||
| const FSlateBrush * | GetDropIndicatorBrush
(
EItemDropZone InItemDropZone |
Retrieves a brush for rendering a drop indicator for the specified drop zone | |
| FSlateColor | |||
| const ItemType * | GetItemForThis
(
const TSharedRef< ITypedTableView< ItemType >>& OwnerTable |
||
| bool | IsSelected () |
Callback to determine if the row is selected or not | |
| bool | Callback to determine if the row is selected singularly and has keyboard focus or not | ||
| void | OnDragEnter
(
FGeometry const& MyGeometry, |
||
| void | OnDragLeave
(
FDragDropEvent const& DragDropEvent |
||
| int32 | OnPaintDropIndicator
(
EItemDropZone InItemDropZone, |
||
| void | SetExpanderArrowVisibility
(
const EVisibility InExpanderArrowVisibility |
||
| void | SetOwnerTableView
(
TSharedPtr< STableViewBase > OwnerTableView |
||
| void | SetRowContent
(
TSharedRef< SWidget > InContent |
Set the entire content of this row, replacing any extra UI (such as the expander arrows for tree views) that was added by ConstructChildren | |
| EItemDropZone | ZoneFromPointerPosition
(
UE::Slate::FDeprecateVector2DParameter LocalPointerPos, |
Overridden from ITableRow
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< SWidget > | AsWidget () |
||
| int32 | |||
| TSharedPtr< SWidget > | GetContent () |
Get the inner content of this row | |
| int32 | |||
| int32 | |||
| FVector2D | GetRowSizeForColumn
(
const FName& InColumnName |
By default, this function does nothing, it should be implemented by derived class | |
| ESelectionMode::Type | Called to query the selection mode for the row | ||
| TBitArray | |||
| void | Called when the row has been generated and associated with an item in the owning table. | ||
| bool | |||
| bool | |||
| bool | IsLastChild () |
||
| void | Called when the expander arrow for this row is shift+clicked | ||
| void | ResetRow () |
Called when the row has been released from the owning table and is no longer associated with any items therein. | |
| void | SetIndexInList
(
int32 InIndexInList |
||
| void | Toggle the expansion of the item associated with this row |
Overridden from SBorder
| Type | Name | Description | |
|---|---|---|---|
| void | SetContent
(
TSharedRef< SWidget > InContent |
Set the inner content of this row, preserving any extra UI (such as the expander arrows for tree views) that was added by ConstructChildren |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< FSlateAccessibleWidget > | |||
| FReply | OnDragDetected
(
const FGeometry& MyGeometry, |
Called when Slate detects that a widget started to be dragged. | |
| FReply | OnDragOver
(
const FGeometry& MyGeometry, |
Called during drag and drop when the the mouse is being dragged over a widget. | |
| FReply | OnDrop
(
const FGeometry& MyGeometry, |
Called when the user is dropping something onto a widget; terminates drag and drop. | |
| FReply | OnMouseButtonDoubleClick
(
const FGeometry& InMyGeometry, |
Called when a mouse button is double clicked. Override this in derived classes. | |
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
See SWidget::OnMouseButtonDown | |
| FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
See SWidget::OnMouseButtonUp | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. | |
| FReply | OnTouchEnded
(
const FGeometry& MyGeometry, |
Called when a touchpad touch is ended (finger lifted) | |
| FReply | OnTouchStarted
(
const FGeometry& MyGeometry, |
Called when a touchpad touch is started (finger down) |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments | |||
| FSlateAccessibleTableRow | An accessible implementation of STableRow exposed to platform accessibility APIs. |
Typedefs
| Name | Description |
|---|---|
| FOnAcceptDrop | Delegate signature for handling the drop of FDragDropEvent onto target of type ItemType |
| FOnCanAcceptDrop | Delegate signature for querying whether this FDragDropEvent will be handled by the drop target of type ItemType. |
| FOnPaintDropIndicator | Delegate signature for painting drop indicators. |