engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
STableRow< ItemType > 模板类 参考

The ListView is populated by Selectable widgets. 更多...

#include <STableRow.h>

+ 类 STableRow< ItemType > 继承关系图:

Public 成员函数

virtual TSharedRef< SWidget > AsWidget () override
 
void Construct (const typename STableRow< ItemType >::FArguments &InArgs, const TSharedRef< STableViewBase > &InOwnerTableView)
 Handle this event to determine whether a drag and drop operation can be executed on top of the target row widget. 更多...
 
 DECLARE_DELEGATE_RetVal_ThreeParams (FReply, FOnAcceptDrop, const FDragDropEvent &, EItemDropZone, ItemType)
 Delegate signature for handling the drop of FDragDropEvent onto target of type ItemType
 
 DECLARE_DELEGATE_RetVal_ThreeParams (TOptional< EItemDropZone >, FOnCanAcceptDrop, const FDragDropEvent &, EItemDropZone, ItemType)
 Delegate signature for querying whether this FDragDropEvent will be handled by the drop target of type ItemType.
 
virtual int32 DoesItemHaveChildren () const override
 
virtual const FSlateBrush * GetBorder () const
 
virtual TSharedPtr< SWidget > GetContent () override
 Get the inner content of this row
 
virtual int32 GetIndentLevel () const override
 
virtual FVector2D GetRowSizeForColumn (const FName &InColumnName) const override
 By default, this function does nothing, it should be implemented by derived class
 
virtual TBitArray GetWiresNeededByDepth () const override
 
virtual void InitializeRow () override
 Called when the row has been generated and associated with an item in the owning table. 更多...
 
virtual bool IsItemExpanded () const override
 
virtual bool IsItemSelected () const override
 
virtual bool IsLastChild () const override
 
bool IsSelected () const
 Callback to determine if the row is selected or not 更多...
 
bool IsSelectedExclusively () const
 Callback to determine if the row is selected singularly and has keyboard focus or not 更多...
 
virtual FReply OnDragDetected (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override
 Called when Slate detects that a widget started to be dragged. 更多...
 
virtual void OnDragEnter (FGeometry const &MyGeometry, FDragDropEvent const &DragDropEvent) override
 Called during drag and drop when the drag enters a widget. 更多...
 
virtual void OnDragLeave (FDragDropEvent const &DragDropEvent) override
 Called during drag and drop when the drag leaves a widget. 更多...
 
virtual FReply OnDragOver (const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent) override
 Called during drag and drop when the the mouse is being dragged over a widget. 更多...
 
virtual FReply OnDrop (const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent) override
 Called when the user is dropping something onto a widget; terminates drag and drop. 更多...
 
virtual FReply OnMouseButtonDoubleClick (const FGeometry &InMyGeometry, const FPointerEvent &InMouseEvent) override
 Called when a mouse button is double clicked. 更多...
 
virtual FReply OnMouseButtonDown (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override
 See SWidget::OnMouseButtonDown 更多...
 
virtual FReply OnMouseButtonUp (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override
 See SWidget::OnMouseButtonUp 更多...
 
virtual int32 OnPaint (const FPaintArgs &Args, const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled) const override
 The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. 更多...
 
virtual FReply OnTouchEnded (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent) override
 Called when a touchpad touch is ended (finger lifted) 更多...
 
virtual FReply OnTouchStarted (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent) override
 Called when a touchpad touch is started (finger down) 更多...
 
virtual void Private_OnExpanderArrowShiftClicked () override
 Called when the expander arrow for this row is shift+clicked
 
virtual void ResetRow () override
 Called when the row has been released from the owning table and is no longer associated with any items therein. 更多...
 
virtual void SetContent (TSharedRef< SWidget > InContent) override
 Set the inner content of this row, preserving any extra UI (such as the expander arrows for tree views) that was added by ConstructChildren
 
virtual void SetIndexInList (int32 InIndexInList) override
 
virtual 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
 
 STableRow ()
 Protected constructor; SWidgets should only be instantiated via declarative syntax.
 
virtual void ToggleExpansion () override
 Toggle the expansion of the item associated with this row
 
EItemDropZone ZoneFromPointerPosition (FVector2D LocalPointerPos, FVector2D LocalSize, EOrientation Orientation)
 
virtual TSharedRef< SWidget > AsWidget ()=0
 
virtual int32 DoesItemHaveChildren () const =0
 
virtual TSharedPtr< SWidget > GetContent ()=0
 
virtual int32 GetIndentLevel () const =0
 
virtual FVector2D GetRowSizeForColumn (const FName &InColumnName) const =0
 
virtual TBitArray GetWiresNeededByDepth () const =0
 
virtual void InitializeRow ()=0
 Called when the row has been generated and associated with an item in the owning table. 更多...
 
virtual bool IsItemExpanded () const =0
 
virtual bool IsItemSelected () const =0
 
virtual bool IsLastChild () const =0
 
virtual void Private_OnExpanderArrowShiftClicked ()=0
 Called when the expander arrow for this row is shift+clicked
 
virtual void ResetRow ()=0
 Called when the row has been released from the owning table and is no longer associated with any items therein. 更多...
 
virtual void SetIndexInList (int32 InIndexInList)=0
 
virtual void ToggleExpansion ()=0
 Toggle the expansion of the item associated with this row
 
- Public 成员函数 继承自 SBorder
void ClearContent ()
 Clears out the content for the border
 
virtual bool ComputeVolatility () const override
 Recomputes the volatility of the widget. 更多...
 
void Construct (const FArguments &InArgs)
 Construct this widget 更多...
 
const TSharedRef< SWidget > & GetContent () const
 Gets the content for this border 更多...
 
virtual int32 OnPaint (const FPaintArgs &Args, const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled) const override
 The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. 更多...
 
 SBorder ()
 ColorAndOpacity is the color and opacity of content in the border 更多...
 
void SetBorderBackgroundColor (const TAttribute< FSlateColor > &InColorAndOpacity)
 Sets the color and opacity of the background image of this border.
 
void SetBorderImage (const TAttribute< const FSlateBrush * > &InBorderImage)
 See BorderImage attribute
 
virtual void SetContent (TSharedRef< SWidget > InContent)
 Sets the content for this border 更多...
 
void SetDesiredSizeScale (const TAttribute< FVector2D > &InDesiredSizeScale)
 Set the desired size scale multiplier
 
void SetHAlign (EHorizontalAlignment HAlign)
 See HAlign argument
 
void SetPadding (const TAttribute< FMargin > &InPadding)
 See Padding attribute
 
void SetShowEffectWhenDisabled (const TAttribute< bool > &InShowEffectWhenDisabled)
 See ShowEffectWhenDisabled attribute
 
void SetVAlign (EVerticalAlignment VAlign)
 See VAlign argument
 
- Public 成员函数 继承自 SCompoundWidget
virtual FChildren * GetChildren () override
 Every widget that has children must implement this method. 更多...
 
FLinearColor GetColorAndOpacity () const
 Gets the widget's color.
 
const FVector2D GetContentScale () const
 Returns the size scaling factor for this widget. 更多...
 
virtual FSlateColor GetForegroundColor () const override
 
virtual void OnArrangeChildren (const FGeometry &AllottedGeometry, FArrangedChildren &ArrangedChildren) const override
 Compute the Geometry of all the children and add populate the ArrangedChildren list with their values. 更多...
 
virtual int32 OnPaint (const FPaintArgs &Args, const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled) const override
 The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. 更多...
 
void SetColorAndOpacity (const TAttribute< FLinearColor > &InColorAndOpacity)
 Sets the widget's color. 更多...
 
void SetContentScale (const TAttribute< FVector2D > &InContentScale)
 Sets the content scale for this widget. 更多...
 
void SetForegroundColor (const TAttribute< FSlateColor > &InForegroundColor)
 Sets the widget's foreground color. 更多...
 
virtual void SetVisibility (TAttribute< EVisibility > InVisibility) override final
 
- Public 成员函数 继承自 SWidget
template<typename MetaDataType >
void AddMetadata (const TSharedRef< MetaDataType > &AddMe)
 Add metadata to this widget. 更多...
 
virtual bool Advanced_IsWindow () const
 Is this widget derivative of SWindow
 
void ArrangeChildren (const FGeometry &AllottedGeometry, FArrangedChildren &ArrangedChildren) const
 Non-virtual entry point for arrange children. 更多...
 
FORCEINLINE void CacheVolatility ()
 Recalculates volatility of the widget and caches the result. 更多...
 
FSlateRect CalculateCullingAndClippingRules (const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, bool &bClipToBounds, bool &bAlwaysClip, bool &bIntersectClipBounds) const
 Calculates what if any clipping state changes need to happen when drawing this widget. 更多...
 
void Construct (const TAttribute< FText > &InToolTipText, const TSharedPtr< IToolTip > &InToolTip, const TAttribute< TOptional< EMouseCursor::Type > > &InCursor, const TAttribute< bool > &InEnabledState, const TAttribute< EVisibility > &InVisibility, const float InRenderOpacity, const TAttribute< TOptional< FSlateRenderTransform > > &InTransform, const TAttribute< FVector2D > &InTransformPivot, const FName &InTag, const bool InForceVolatile, const EWidgetClipping InClipping, const EFlowDirectionPreference InFlowPreference, const TOptional< FAccessibleWidgetData > &InAccessibleData, const TArray< TSharedRef< ISlateMetaData > > &InMetaData)
 Construct a SWidget based on initial parameters.
 
void EnableToolTipForceField (const bool bEnableForceField)
 Sets whether this widget is a "tool tip force field". 更多...
 
FORCEINLINE void ForceVolatile (bool bForce)
 Should this widget always appear as volatile for any layout caching host widget. 更多...
 
template<typename MetaDataType >
TArray< TSharedRef< MetaDataType > > GetAllMetaData () const
 Get all metadata of the type provided. 更多...
 
virtual FChildren * GetChildren ()=0
 Every widget that has children must implement this method. 更多...
 
FORCEINLINE EWidgetClipping GetClipping () const
 
FName GetCreatedInLocation () const
 
FORCEINLINE FMargin GetCullingBoundsExtension () const
 
const TOptional< FSlateClippingState > & GetCurrentClippingState () const
 Returns the clipping state to clip this widget against its parent
 
FVector2D GetDesiredSize () const
 
EFlowDirectionPreference GetFlowDirectionPreference () const
 Gets the desired flow direction for the layout.
 
virtual FSlateColor GetForegroundColor () const
 
template<typename MetaDataType >
TSharedPtr< MetaDataType > GetMetaData () const
 Get the metadata of the type provided. 更多...
 
const FGeometry & GetPaintSpaceGeometry () const
 Gets the last geometry used to Tick the widget. 更多...
 
virtual FString GetReadableLocation () const
 
virtual float GetRelativeLayoutScale (const int32 ChildIndex, float LayoutScaleMultiplier) const
 What is the Child's scale relative to this widget.
 
FORCEINLINE float GetRenderOpacity () const
 
FORCEINLINE const TOptional< FSlateRenderTransform > & GetRenderTransform () const
 
FORCEINLINE FVector2D GetRenderTransformPivot () const
 
virtual FName GetTag () const
 
const FGeometry & GetTickSpaceGeometry () const
 Gets the last geometry used to Tick the widget. 更多...
 
virtual TSharedPtr< IToolTip > GetToolTip ()
 
FName GetType () const
 
FString GetTypeAsString () const
 
FORCEINLINE EVisibility GetVisibility () const
 
virtual EWindowZone::Type GetWindowZoneOverride () const
 Called when the mouse is moved over the widget's window, to determine if we should report whether OS-specific features should be active at this location (such as a title bar grip, system menu, etc.) Usually you should not need to override this function. 更多...
 
bool HasActiveTimers () const
 Does this widget have any active timers?
 
TOptional< EFocusCause > HasAnyUserFocus () const
 Gets whether or not any users have this widget focused, and if so the type of focus (first one found). 更多...
 
bool HasAnyUserFocusOrFocusedDescendants () const
 
bool HasFocusedDescendants () const
 
virtual bool HasKeyboardFocus () const
 Checks to see if this widget currently has the keyboard focus 更多...
 
bool HasMouseCapture () const
 Checks to see if this widget is the current mouse captor 更多...
 
bool HasMouseCaptureByUser (int32 UserIndex, TOptional< int32 > PointerIndex=TOptional< int32 >()) const
 Checks to see if this widget has mouse capture from the provided user. 更多...
 
bool HasToolTipForceField () const
 
TOptional< EFocusCause > HasUserFocus (int32 UserIndex) const
 Gets whether or not the specified users has this widget focused, and if so the type of focus. 更多...
 
bool HasUserFocusedDescendants (int32 UserIndex) const
 Gets whether or not the specified users has this widget or any descendant focused. 更多...
 
void Invalidate (EInvalidateWidgetReason InvalidateReason)
 Invalidates the widget from the view of a layout caching widget that may own this widget. 更多...
 
virtual bool IsDirectlyHovered () const
 
FORCEINLINE bool IsEnabled () const
 
virtual bool IsHovered () const
 
virtual bool IsInteractable () const
 
FORCEINLINE bool IsVolatile () const
 Whether or not a widget is volatile and will update every frame without being invalidated
 
FORCEINLINE bool IsVolatileIndirectly () const
 This widget is volatile because its parent or some ancestor is volatile
 
virtual FReply OnAnalogValueChanged (const FGeometry &MyGeometry, const FAnalogInputEvent &InAnalogInputEvent)
 Called when an analog value changes on a button that supports analog 更多...
 
virtual FCursorReply OnCursorQuery (const FGeometry &MyGeometry, const FPointerEvent &CursorEvent) const
 The system asks each widget under the mouse to provide a cursor. 更多...
 
virtual FReply OnDragDetected (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
 Called when Slate detects that a widget started to be dragged. 更多...
 
virtual void OnDragEnter (const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent)
 Called during drag and drop when the drag enters a widget. 更多...
 
virtual void OnDragLeave (const FDragDropEvent &DragDropEvent)
 Called during drag and drop when the drag leaves a widget. 更多...
 
virtual FReply OnDragOver (const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent)
 Called during drag and drop when the the mouse is being dragged over a widget. 更多...
 
virtual FReply OnDrop (const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent)
 Called when the user is dropping something onto a widget; terminates drag and drop. 更多...
 
virtual void OnFinishedKeyInput ()
 All the key (keyboard, gamepay, joystick, etc.) input from this frame has been routed. 更多...
 
virtual void OnFinishedPointerInput ()
 All the pointer (mouse, touch, stylus, etc.) events from this frame have been routed. 更多...
 
virtual void OnFocusChanging (const FWeakWidgetPath &PreviousFocusPath, const FWidgetPath &NewWidgetPath)
 Called whenever a focus path is changing on all the widgets within the old and new focus paths
 
virtual void OnFocusChanging (const FWeakWidgetPath &PreviousFocusPath, const FWidgetPath &NewWidgetPath, const FFocusEvent &InFocusEvent)
 Called whenever a focus path is changing on all the widgets within the old and new focus paths
 
virtual void OnFocusLost (const FFocusEvent &InFocusEvent)
 Called when this widget loses focus. 更多...
 
virtual FReply OnFocusReceived (const FGeometry &MyGeometry, const FFocusEvent &InFocusEvent)
 Called when focus is given to this widget. 更多...
 
virtual FReply OnKeyChar (const FGeometry &MyGeometry, const FCharacterEvent &InCharacterEvent)
 Called after a character is entered while this widget has keyboard focus 更多...
 
virtual FReply OnKeyDown (const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent)
 Called after a key is pressed when this widget has focus (this event bubbles if not handled) 更多...
 
virtual FReply OnKeyUp (const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent)
 Called after a key is released when this widget has focus 更多...
 
virtual TOptional< TSharedRef< SWidget > > OnMapCursor (const FCursorReply &CursorReply) const
 After OnCursorQuery has specified a cursor type the system asks each widget under the mouse to map that cursor to a widget. 更多...
 
virtual FReply OnMotionDetected (const FGeometry &MyGeometry, const FMotionEvent &InMotionEvent)
 Called when motion is detected (controller or device) e.g. 更多...
 
virtual FReply OnMouseButtonDoubleClick (const FGeometry &InMyGeometry, const FPointerEvent &InMouseEvent)
 Called when a mouse button is double clicked. 更多...
 
virtual FReply OnMouseButtonDown (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
 The system calls this method to notify the widget that a mouse button was pressed within it. 更多...
 
virtual FReply OnMouseButtonUp (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
 The system calls this method to notify the widget that a mouse button was release within it. 更多...
 
virtual void OnMouseCaptureLost (const FCaptureLostEvent &CaptureLostEvent)
 Called when this widget had captured the mouse, but that capture has been revoked for some reason.
 
virtual void OnMouseEnter (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
 The system will use this event to notify a widget that the cursor has entered it. 更多...
 
virtual void OnMouseLeave (const FPointerEvent &MouseEvent)
 The system will use this event to notify a widget that the cursor has left it. 更多...
 
virtual FReply OnMouseMove (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
 The system calls this method to notify the widget that a mouse moved within it. 更多...
 
virtual FReply OnMouseWheel (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
 Called when the mouse wheel is spun. 更多...
 
virtual FNavigationReply OnNavigation (const FGeometry &MyGeometry, const FNavigationEvent &InNavigationEvent)
 Called when navigation is requested e.g. 更多...
 
virtual FReply OnPreviewKeyDown (const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent)
 Called after a key is pressed when this widget or a child of this widget has focus If a widget handles this event, OnKeyDown will not be passed to the focused widget. 更多...
 
virtual FReply OnPreviewMouseButtonDown (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
 Just like OnMouseButtonDown, but tunnels instead of bubbling. 更多...
 
virtual FPopupMethodReply OnQueryPopupMethod () const
 Popups can manifest in a NEW OS WINDOW or via an OVERLAY in an existing window. 更多...
 
virtual TOptional< bool > OnQueryShowFocus (const EFocusCause InFocusCause) const
 Called to determine if we should render the focus brush. 更多...
 
virtual void OnToolTipClosing ()
 Called when a tooltip displayed from this widget is being closed
 
virtual FReply OnTouchEnded (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent)
 Called when a touchpad touch is ended (finger lifted) 更多...
 
virtual FReply OnTouchFirstMove (const FGeometry &MyGeometry, const FPointerEvent &TouchEvent)
 Called when a touchpad touch first moves after TouchStarted 更多...
 
virtual FReply OnTouchForceChanged (const FGeometry &MyGeometry, const FPointerEvent &TouchEvent)
 Called when a touchpad touch force changes 更多...
 
virtual FReply OnTouchGesture (const FGeometry &MyGeometry, const FPointerEvent &GestureEvent)
 Called when the user performs a gesture on trackpad. 更多...
 
virtual FReply OnTouchMoved (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent)
 Called when a touchpad touch is moved (finger moved) 更多...
 
virtual FReply OnTouchStarted (const FGeometry &MyGeometry, const FPointerEvent &InTouchEvent)
 Called when a touchpad touch is started (finger down) 更多...
 
virtual TSharedPtr< FPopupLayer > OnVisualizePopup (const TSharedRef< SWidget > &PopupContent)
 Visualize a new pop-up if possible. 更多...
 
virtual bool OnVisualizeTooltip (const TSharedPtr< SWidget > &TooltipContent)
 Called when Slate wants to visualize tooltip. 更多...
 
int32 Paint (const FPaintArgs &Args, const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled) const
 Called to tell a widget to paint itself (and it's children). 更多...
 
TSharedRef< FActiveTimerHandle > RegisterActiveTimer (float TickPeriod, FWidgetActiveTimerDelegate TickFunction)
 Registers an "active timer" delegate that will execute at some regular interval. 更多...
 
FORCEINLINE void SetClipping (EWidgetClipping InClipping)
 Sets the clipping to bounds rules for this widget.
 
FORCEINLINE void SetCullingBoundsExtension (const FMargin &InCullingBoundsExtension)
 Sets an additional culling padding that is added to a widget to give more leeway when culling widgets. 更多...
 
void SetCursor (const TAttribute< TOptional< EMouseCursor::Type > > &InCursor)
 Set the cursor that should appear when this widget is hovered
 
void SetDebugInfo (const ANSICHAR *InType, const ANSICHAR *InFile, int32 OnLine, size_t InAllocSize)
 Used by Slate to set the runtime debug info about this widget.
 
void SetEnabled (const TAttribute< bool > &InEnabledState)
 Sets the enabled state of this widget 更多...
 
void SetFlowDirectionPreference (EFlowDirectionPreference InFlowDirectionPreference)
 Sets how content should flow in this panel, based on the current culture. 更多...
 
void SetOnMouseButtonDown (FPointerEventHandler EventHandler)
 See OnMouseButtonDown event
 
void SetOnMouseButtonUp (FPointerEventHandler EventHandler)
 See OnMouseButtonUp event
 
void SetOnMouseDoubleClick (FPointerEventHandler EventHandler)
 See OnMouseDoubleClick event
 
void SetOnMouseEnter (FNoReplyPointerEventHandler EventHandler)
 See OnMouseEnter event
 
void SetOnMouseLeave (FSimpleNoReplyPointerEventHandler EventHandler)
 See OnMouseLeave event
 
void SetOnMouseMove (FPointerEventHandler EventHandler)
 See OnMouseMove event
 
FORCEINLINE void SetRenderOpacity (float InRenderOpacity)
 
FORCEINLINE void SetRenderTransform (TAttribute< TOptional< FSlateRenderTransform > > InTransform)
 
FORCEINLINE void SetRenderTransformPivot (TAttribute< FVector2D > InTransformPivot)
 
void SetToolTip (const TSharedPtr< IToolTip > &InToolTip)
 Set the tool tip that should appear when this widget is hovered. 更多...
 
void SetToolTipText (const TAttribute< FText > &ToolTipText)
 Set the tool tip that should appear when this widget is hovered. 更多...
 
virtual void SetVisibility (TAttribute< EVisibility > InVisibility)
 
void SlatePrepass ()
 DEPRECATED version of SlatePrepass that assumes no scaling beyond AppScale
 
void SlatePrepass (float InLayoutScaleMultiplier)
 Descends to leaf-most widgets in the hierarchy and gathers desired sizes on the way up. 更多...
 
virtual bool SupportsKeyboardFocus () const
 Checks to see if this widget supports keyboard focus. 更多...
 
virtual void Tick (const FGeometry &AllottedGeometry, const double InCurrentTime, const float InDeltaTime)
 Ticks this widget with Geometry. 更多...
 
virtual FString ToString () const
 
void UnRegisterActiveTimer (const TSharedRef< FActiveTimerHandle > &ActiveTimerHandle)
 Unregisters an active timer handle. 更多...
 
- Public 成员函数 继承自 TSharedFromThis< SWidget >
TSharedRef< SWidget, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< SWidget const, Mode > AsShared () const
 Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多...
 
FORCEINLINE bool DoesSharedInstanceExist () const
 Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 

Protected 成员函数

void ConstructInternal (FArguments const &InArgs, TSharedRef< STableViewBase > const &InOwnerTableView)
 An internal method to construct and setup this row widget (purposely avoids child construction). 更多...
 
virtual ESelectionMode::Type GetSelectionMode () const override
 Called to query the selection mode for the row
 
virtual ESelectionMode::Type GetSelectionMode () const =0
 Called to query the selection mode for the row
 
- Protected 成员函数 继承自 SBorder
virtual FVector2D ComputeDesiredSize (float) const override
 Compute the ideal size necessary to display this widget. 更多...
 
- Protected 成员函数 继承自 SCompoundWidget
virtual FVector2D ComputeDesiredSize (float) const override
 Compute the ideal size necessary to display this widget. 更多...
 
 SCompoundWidget ()
 Disallow public construction
 
- Protected 成员函数 继承自 SWidget
FORCEINLINE bool Advanced_InvalidateVolatility ()
 Recalculates and caches volatility and returns 'true' if the volatility changed.
 
virtual void CacheDesiredSize (float InLayoutScaleMultiplier)
 The system calls this method. 更多...
 
virtual FVector2D ComputeDesiredSize (float LayoutScaleMultiplier) const =0
 Compute the ideal size necessary to display this widget. 更多...
 
EFlowDirection ComputeFlowDirection () const
 Establishes a new flow direction potentially, if this widget has a particular preference for it and all its children.
 
virtual bool ComputeVolatility () const
 Recomputes the volatility of the widget. 更多...
 
bool FindChildGeometries (const FGeometry &MyGeometry, const TSet< TSharedRef< SWidget > > &WidgetsToFind, TMap< TSharedRef< SWidget >, FArrangedWidget > &OutResult) const
 Find the geometry of a descendant widget. 更多...
 
void FindChildGeometries_Helper (const FGeometry &MyGeometry, const TSet< TSharedRef< SWidget > > &WidgetsToFind, TMap< TSharedRef< SWidget >, FArrangedWidget > &OutResult) const
 Actual implementation of FindChildGeometries. 更多...
 
FGeometry FindChildGeometry (const FGeometry &MyGeometry, TSharedRef< SWidget > WidgetToFind) const
 Find the geometry of a descendant widget. 更多...
 
virtual const FSlateBrush * GetFocusBrush () const
 
void InvalidateChildRemovedFromTree (SWidget &Child)
 Called when a child is removed from the tree parent's widget tree either by removing it from a slot. 更多...
 
virtual void OnClippingChanged ()
 Called when clipping is changed. 更多...
 
void OnMouseCaptureLost ()
 Called when this widget had captured the mouse, but that capture has been revoked for some reason.
 
template<typename TargetValueType , typename SourceValueType >
bool SetAttribute (TAttribute< TargetValueType > &TargetValue, const TAttribute< SourceValueType > &SourceValue, EInvalidateWidgetReason BaseInvalidationReason)
 Performs the attribute assignment and invalidates the widget minimally based on what actually changed. 更多...
 
bool ShouldBeEnabled (bool InParentEnabled) const
 Determines if this widget should be enabled. 更多...
 
 SWidget ()
 Hidden default constructor. 更多...
 
virtual ~SWidget ()
 Dtor ensures that active timer handles are UnRegistered with the SlateApplication.
 
- Protected 成员函数 继承自 TSharedFromThis< SWidget >
FORCEINLINE TSharedFromThis & operator= (TSharedFromThis const &)
 Hidden stub assignment operator
 
 TSharedFromThis ()
 Hidden stub constructor
 
 TSharedFromThis (TSharedFromThis const &)
 Hidden stub copy constructor
 
 ~TSharedFromThis ()
 Hidden destructor
 

Protected 属性

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
 
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
 
ETableRowSignalSelectionMode SignalSelectionMode
 When should we signal that selection changed for a left click
 
const FTableRowStyle * Style
 Style used to draw this table row
 
- Protected 属性 继承自 SBorder
bool bFlipForRightToLeftFlowDirection
 Flips the image if the localization's flow direction is RightToLeft
 
TAttribute< bool > ShowDisabledEffect
 Whether or not to show the disabled effect when this border is disabled
 
- Protected 属性 继承自 SCompoundWidget
FSimpleSlot ChildSlot
 The slot that contains this widget's descendants.
 
TAttribute< FLinearColor > ColorAndOpacity
 The color and opacity to apply to this widget and all its descendants.
 
TAttribute< FVector2D > ContentScale
 The layout scale to apply to this widget's contents; useful for animation.
 
TAttribute< FSlateColor > ForegroundColor
 Optional foreground color that will be inherited by all of this widget's contents
 
- Protected 属性 继承自 SWidget
uint8 bCanHaveChildren: 1
 Can the widget ever support children? This will be false on SLeafWidgets, rather than setting this directly, you should probably inherit from SLeafWidget.
 
uint8 bCanSupportFocus: 1
 Can the widget ever support keyboard focus
 
uint8 bClippingProxy: 1
 Some widgets might be a complex hierarchy of child widgets you never see. 更多...
 
uint8 bIsHovered: 1
 Is this widget hovered?
 
uint8 bVolatilityAlwaysInvalidatesPrepass: 1
 if this widget should always invalidate the prepass step when volatile
 
EWidgetClipping Clipping
 Set to true if all content of the widget should clip to the bounds of this widget.
 
FName CreatedInLocation
 Full file path (and line) in which this widget was created
 
FMargin CullingBoundsExtension
 Can be used to enlarge the culling bounds of this widget (pre-intersection), this can be useful if you've got children that you know are using rendering transforms to render outside their standard bounds, if that happens it's possible the parent might be culled before the descendant widget is entirely off screen. 更多...
 
TAttribute< TOptional< EMouseCursor::Type > > Cursor
 The cursor to show when the mouse is hovering over this widget.
 
TAttribute< bool > EnabledState
 Whether or not this widget is enabled
 
TArray< TSharedRef< ISlateMetaData > > MetaData
 Metadata associated with this widget
 
float RenderOpacity
 The opacity of the widget. 更多...
 
TAttribute< TOptional< FSlateRenderTransform > > RenderTransform
 Render transform of this widget. 更多...
 
TAttribute< FVector2D > RenderTransformPivot
 Render transform pivot of this widget (in normalized local space)
 
FName Tag
 Tag for this widget
 
FName TypeOfWidget
 Debugging information on the type of widget we're creating for the Widget Reflector.
 
TAttribute< EVisibility > Visibility
 Is this widget visible, hidden or collapsed
 

额外继承的成员函数

- 静态 Protected 成员函数 继承自 SWidget
static const TAttribute< EVisibility > & AccessWidgetVisibilityAttribute (const TSharedRef< SWidget > &Widget)
 Protected static helper to allow widgets to access the visibility attribute of other widgets directly 更多...
 
static int32 FindChildUnderMouse (const FArrangedChildren &Children, const FPointerEvent &MouseEvent)
 
static int32 FindChildUnderPosition (const FArrangedChildren &Children, const FVector2D &ArrangedSpacePosition)
 
- 静态 Protected 成员函数 继承自 TSharedFromThis< SWidget >
static FORCEINLINE TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
static FORCEINLINE TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 

详细描述

template<typename ItemType>
class STableRow< ItemType >

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.

成员函数说明

◆ AsWidget()

template<typename ItemType >
virtual TSharedRef< SWidget > STableRow< ItemType >::AsWidget ( )
inlineoverridevirtual
返回
this table row as a widget

实现了 ITableRow.

◆ Construct()

template<typename ItemType >
void STableRow< ItemType >::Construct ( const typename STableRow< ItemType >::FArguments &  InArgs,
const TSharedRef< STableViewBase > &  InOwnerTableView 
)
inline

Handle this event to determine whether a drag and drop operation can be executed on top of the target row widget.

Most commonly, this is used for previewing re-ordering and re-organization operations in lists or trees. e.g. A user is dragging one item into a different spot in the list or tree. This delegate will be called to figure out if we should give visual feedback on whether an item will successfully drop into the list. Perform a drop operation onto the target row widget Most commonly used for executing a re-ordering and re-organization operations in lists or trees. e.g. A user was dragging one item into a different spot in the list; they just dropped it. This is our chance to handle the drop by reordering items and calling for a list refresh. The Signal Selection mode affect when the owner table gets notified that the selection has changed. This only affect the selection with the left mouse button! When Deferred, the owner table will get notified when the button is released or when a drag started. When Instantaneous, the owner table is notified as soon as the selection changed. Construct this widget

参数
InArgsThe declaration data for this widget

Note: Please initialize any state in ConstructInternal, not here. This is because STableRow derivatives call ConstructInternal directly to avoid constructing children.

◆ ConstructInternal()

template<typename ItemType >
void STableRow< ItemType >::ConstructInternal ( FArguments const &  InArgs,
TSharedRef< STableViewBase > const &  InOwnerTableView 
)
inlineprotected

An internal method to construct and setup this row widget (purposely avoids child construction).

Split out from Construct() so that sub-classes can invoke super construction without invoking ConstructChildren() (sub-classes may want to constuct their own children in their own special way).

参数
InArgsDeclaration data for this widget.
InOwnerTableViewThe table that this row belongs to.

◆ DoesItemHaveChildren()

template<typename ItemType >
virtual int32 STableRow< ItemType >::DoesItemHaveChildren ( ) const
inlineoverridevirtual
返回
Does this item have children?

实现了 ITableRow.

◆ GetBorder()

template<typename ItemType >
virtual const FSlateBrush * STableRow< ItemType >::GetBorder ( ) const
inlinevirtual
返回
The border to be drawn around this list item

◆ GetIndentLevel()

template<typename ItemType >
virtual int32 STableRow< ItemType >::GetIndentLevel ( ) const
inlineoverridevirtual
返回
how nested the item associated with this row when it is in a TreeView

实现了 ITableRow.

◆ GetWiresNeededByDepth()

template<typename ItemType >
virtual TBitArray STableRow< ItemType >::GetWiresNeededByDepth ( ) const
inlineoverridevirtual
返回
BitArray where each entry corresponds to whether this item needs a vertical wire draw for that depth.

实现了 ITableRow.

◆ InitializeRow()

template<typename ItemType >
virtual void STableRow< ItemType >::InitializeRow ( )
inlineoverridevirtual

Called when the row has been generated and associated with an item in the owning table.

Any attempts to access the item associated with the row prior to this (i.e. in Construct()) will fail, as the association is not yet established in the owning table.

实现了 ITableRow.

◆ IsItemExpanded()

template<typename ItemType >
virtual bool STableRow< ItemType >::IsItemExpanded ( ) const
inlineoverridevirtual
返回
true if the corresponding item is expanded; false otherwise

实现了 ITableRow.

◆ IsItemSelected()

template<typename ItemType >
virtual bool STableRow< ItemType >::IsItemSelected ( ) const
inlineoverridevirtual
返回
True if the corresponding item is selected; false otherwise

实现了 ITableRow.

◆ IsLastChild()

template<typename ItemType >
virtual bool STableRow< ItemType >::IsLastChild ( ) const
inlineoverridevirtual
返回
true if this item is the last direct descendant of its parent.

实现了 ITableRow.

◆ IsSelected()

template<typename ItemType >
bool STableRow< ItemType >::IsSelected ( ) const
inline

Callback to determine if the row is selected or not

返回
true if selected by owning widget.

◆ IsSelectedExclusively()

template<typename ItemType >
bool STableRow< ItemType >::IsSelectedExclusively ( ) const
inline

Callback to determine if the row is selected singularly and has keyboard focus or not

返回
true if selected by owning widget.

◆ OnDragDetected()

template<typename ItemType >
virtual FReply STableRow< ItemType >::OnDragDetected ( const FGeometry &  MyGeometry,
const FPointerEvent &  MouseEvent 
)
inlineoverridevirtual

Called when Slate detects that a widget started to be dragged.

Usage: A widget can ask Slate to detect a drag. OnMouseDown() reply with FReply::Handled().DetectDrag( SharedThis(this) ). Slate will either send an OnDragDetected() event or do nothing. If the user releases a mouse button or leaves the widget before a drag is triggered (maybe user started at the very edge) then no event will be sent.

参数
InMyGeometryWidget geometry
InMouseEventMouseMove that triggered the drag

重载 SWidget .

◆ OnDragEnter()

template<typename ItemType >
virtual void STableRow< ItemType >::OnDragEnter ( FGeometry const &  MyGeometry,
FDragDropEvent const &  DragDropEvent 
)
inlineoverridevirtual

Called during drag and drop when the drag enters a widget.

Enter/Leave events in slate are meant as lightweight notifications. So we do not want to capture mouse or set focus in response to these. However, OnDragEnter must also support external APIs (e.g. OLE Drag/Drop) Those require that we let them know whether we can handle the content being dragged OnDragEnter.

The concession is to return a can_handled/cannot_handle boolean rather than a full FReply.

参数
MyGeometryThe geometry of the widget receiving the event.
DragDropEventThe drag and drop event.
返回
A reply that indicated whether the contents of the DragDropEvent can potentially be processed by this widget.

重载 SWidget .

◆ OnDragLeave()

template<typename ItemType >
virtual void STableRow< ItemType >::OnDragLeave ( FDragDropEvent const &  DragDropEvent)
inlineoverridevirtual

Called during drag and drop when the drag leaves a widget.

参数
DragDropEventThe drag and drop event.

重载 SWidget .

◆ OnDragOver()

template<typename ItemType >
virtual FReply STableRow< ItemType >::OnDragOver ( const FGeometry &  MyGeometry,
const FDragDropEvent &  DragDropEvent 
)
inlineoverridevirtual

Called during drag and drop when the the mouse is being dragged over a widget.

参数
MyGeometryThe geometry of the widget receiving the event.
DragDropEventThe drag and drop event.
返回
A reply that indicated whether this event was handled.

重载 SWidget .

◆ OnDrop()

template<typename ItemType >
virtual FReply STableRow< ItemType >::OnDrop ( const FGeometry &  MyGeometry,
const FDragDropEvent &  DragDropEvent 
)
inlineoverridevirtual

Called when the user is dropping something onto a widget; terminates drag and drop.

参数
MyGeometryThe geometry of the widget receiving the event.
DragDropEventThe drag and drop event.
返回
A reply that indicated whether this event was handled.

重载 SWidget .

◆ OnMouseButtonDoubleClick()

template<typename ItemType >
virtual FReply STableRow< ItemType >::OnMouseButtonDoubleClick ( const FGeometry &  InMyGeometry,
const FPointerEvent &  InMouseEvent 
)
inlineoverridevirtual

Called when a mouse button is double clicked.

Override this in derived classes.

参数
InMyGeometryWidget geometry.
InMouseEventMouse button event.
返回
Returns whether the event was handled, along with other possible actions.

重载 SWidget .

◆ OnMouseButtonDown()

template<typename ItemType >
virtual FReply STableRow< ItemType >::OnMouseButtonDown ( const FGeometry &  MyGeometry,
const FPointerEvent &  MouseEvent 
)
inlineoverridevirtual

See SWidget::OnMouseButtonDown

参数
MyGeometryThe Geometry of the widget receiving the event.
MouseEventInformation about the input event.
返回
Whether the event was handled along with possible requests for the system to take action.

重载 SWidget .

◆ OnMouseButtonUp()

template<typename ItemType >
virtual FReply STableRow< ItemType >::OnMouseButtonUp ( const FGeometry &  MyGeometry,
const FPointerEvent &  MouseEvent 
)
inlineoverridevirtual

See SWidget::OnMouseButtonUp

参数
MyGeometryThe Geometry of the widget receiving the event.
MouseEventInformation about the input event.
返回
Whether the event was handled along with possible requests for the system to take action.

重载 SWidget .

◆ OnPaint()

template<typename ItemType >
virtual int32 STableRow< ItemType >::OnPaint ( const FPaintArgs &  Args,
const FGeometry &  AllottedGeometry,
const FSlateRect &  MyCullingRect,
FSlateWindowElementList &  OutDrawElements,
int32  LayerId,
const FWidgetStyle &  InWidgetStyle,
bool  bParentEnabled 
) const
inlineoverridevirtual

The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children.

Called by the non-virtual OnPaint to enforce pre/post conditions during OnPaint.

参数
ArgsAll the arguments necessary to paint this widget (
待办事项:
umg: move all params into this struct)
参数
AllottedGeometryThe FGeometry that describes an area in which the widget should appear.
MyCullingRectThe rectangle representing the bounds currently being used to completely cull widgets. Unless IsChildWidgetCulled(...) returns true, you should paint the widget.
OutDrawElementsA list of FDrawElements to populate with the output.
LayerIdThe Layer onto which this widget should be rendered.
InColorAndOpacityColor and Opacity to be applied to all the descendants of the widget being painted
bParentEnabledTrue if the parent of this widget is enabled.
返回
The maximum layer ID attained by this widget or any of its children.

重载 SBorder .

◆ OnTouchEnded()

template<typename ItemType >
virtual FReply STableRow< ItemType >::OnTouchEnded ( const FGeometry &  MyGeometry,
const FPointerEvent &  InTouchEvent 
)
inlineoverridevirtual

Called when a touchpad touch is ended (finger lifted)

参数
InTouchEventThe touch event generated

重载 SWidget .

◆ OnTouchStarted()

template<typename ItemType >
virtual FReply STableRow< ItemType >::OnTouchStarted ( const FGeometry &  MyGeometry,
const FPointerEvent &  InTouchEvent 
)
inlineoverridevirtual

Called when a touchpad touch is started (finger down)

参数
InTouchEventThe touch event generated

重载 SWidget .

◆ ResetRow()

template<typename ItemType >
virtual void STableRow< ItemType >::ResetRow ( )
inlineoverridevirtual

Called when the row has been released from the owning table and is no longer associated with any items therein.

Only relevant if the row widgets are pooled or otherwise referenced/kept alive outside the owning table. Otherwise, the row is destroyed.

实现了 ITableRow.

◆ SetIndexInList()

template<typename ItemType >
virtual void STableRow< ItemType >::SetIndexInList ( int32  InIndexInList)
inlineoverridevirtual
参数
InIndexInListThe index of the item for which this widget was generated

实现了 ITableRow.

◆ ZoneFromPointerPosition()

template<typename ItemType >
EItemDropZone STableRow< ItemType >::ZoneFromPointerPosition ( FVector2D  LocalPointerPos,
FVector2D  LocalSize,
EOrientation  Orientation 
)
inline
返回
the zone (above, onto, below) based on where the user is hovering over within the row

类成员变量说明

◆ InnerContentSlot

template<typename ItemType >
FSlotBase* STableRow< ItemType >::InnerContentSlot
protected

The slot that contains the inner content for this row.

If this is set, SetContent populates this slot with the new content rather than replace the content wholesale

◆ OnAcceptDrop

template<typename ItemType >
FOnAcceptDrop STableRow< ItemType >::OnAcceptDrop
protected
参见
STableRow's OnAcceptDrop event

◆ OnCanAcceptDrop

template<typename ItemType >
FOnCanAcceptDrop STableRow< ItemType >::OnCanAcceptDrop
protected
参见
STableRow's OnCanAcceptDrop event

该类的文档由以下文件生成: