#include <HittestGrid.h>
|
| SLATECORE_API | FHittestGrid () |
| |
| SLATECORE_API TArray< FWidgetAndPointer > | GetBubblePath (UE::Slate::FDeprecateVector2DParameter DesktopSpaceCoordinate, float CursorRadius, bool bIgnoreEnabledStatus, int32 UserIndex=INDEX_NONE) |
| |
| SLATECORE_API bool | SetHittestArea (const UE::Slate::FDeprecateVector2DParameter &HittestPositionInDesktop, const UE::Slate::FDeprecateVector2DParameter &HittestDimensions, const UE::Slate::FDeprecateVector2DParameter &HitestOffsetInWindow=FVector2f::ZeroVector) |
| |
| SLATECORE_API void | InsertCustomHitTestPath (const SWidget *InWidget, const TSharedRef< ICustomHitTestPath > &CustomHitTestPath) |
| |
| void | SetUserIndex (int32 UserIndex) |
| |
| void | SetCullingRect (const FSlateRect &InCullingRect) |
| |
| void | SetOwner (const SWidget *InOwner) |
| |
| int32 | GetUserIndex () const |
| |
| SLATECORE_API TSharedPtr< SWidget > | FindNextFocusableWidget (const FArrangedWidget &StartingWidget, const EUINavigation Direction, const FNavigationReply &NavigationReply, const FArrangedWidget &RuleWidget, int32 UserIndex) |
| |
| UE::Slate::FDeprecateVector2DResult | GetGridSize () const |
| |
| UE::Slate::FDeprecateVector2DResult | GetGridOrigin () const |
| |
| UE::Slate::FDeprecateVector2DResult | GetGridWindowOrigin () const |
| |
| SLATECORE_API FSlateRect | GetWidgetRenderBoundingRect (const TSharedPtr< SWidget > &Widget) const |
| |
| SLATECORE_API bool | IsValidCellCoord (const FIntPoint &CellCoord) const |
| |
| SLATECORE_API bool | IsValidCellCoord (const int32 XCoord, const int32 YCoord) const |
| |
| const FVector2f & | GetCellSize () const |
| |
| SLATECORE_API void | Clear () |
| |
| SLATECORE_API void | AddWidget (const SWidget *InWidget, int32 InBatchPriorityGroup, int32 InLayerId, FSlateInvalidationWidgetSortOrder InSecondarySort) |
| |
| SLATECORE_API void | RemoveWidget (const SWidget *InWidget) |
| |
| SLATECORE_API void | UpdateWidget (const SWidget *InWidget, FSlateInvalidationWidgetSortOrder InSecondarySort) |
| |
| SLATECORE_API bool | ContainsWidget (const SWidget *InWidget) const |
| |
| SLATECORE_API void | AddGrid (const TSharedRef< const FHittestGrid > &OtherGrid) |
| |
| SLATECORE_API void | RemoveGrid (const TSharedRef< const FHittestGrid > &OtherGrid) |
| |
| SLATECORE_API void | RemoveGrid (const SWidget *OtherGridOwner) |
| |
◆ FHittestGrid()
| FHittestGrid::FHittestGrid |
( |
| ) |
|
◆ AddGrid()
Add an already existing grid that occupy the same space. The grid needs to have an owner, not be this grid and occupy the same space as this grid.
◆ AddWidget()
◆ Clear()
| void FHittestGrid::Clear |
( |
| ) |
|
◆ ContainsWidget()
| bool FHittestGrid::ContainsWidget |
( |
const SWidget * |
InWidget | ) |
const |
Check if SWidget is contained within the HitTest Grid
◆ FindNextFocusableWidget()
Finds the next focusable widget by searching through the hit test grid
- Parameters
-
| StartingWidget | This is the widget we are starting at, and navigating from. |
| Direction | The direction we should search in. |
| NavigationReply | The Navigation Reply to specify a boundary rule for the search. |
| RuleWidget | The Widget that is applying the boundary rule, used to get the bounds of the Rule. |
◆ GetBubblePath()
Given a Slate Units coordinate in virtual desktop space, perform a hittest and return the path along which the corresponding event would be bubbled.
◆ GetCellSize()
| const FVector2f & FHittestGrid::GetCellSize |
( |
| ) |
const |
|
inline |
◆ GetGridOrigin()
◆ GetGridSize()
◆ GetGridWindowOrigin()
◆ GetUserIndex()
| int32 FHittestGrid::GetUserIndex |
( |
| ) |
const |
|
inline |
Gets current slate user index that should be associated with any added widgets
◆ GetWidgetRenderBoundingRect()
Get the screen space rectangle that corresponds to the painted area of the widget
◆ InsertCustomHitTestPath()
Insert custom hit test data for a widget already in the grid
◆ IsValidCellCoord() [1/2]
| bool FHittestGrid::IsValidCellCoord |
( |
const FIntPoint & |
CellCoord | ) |
const |
Returns true if the CellCoordinates are within the grid
◆ IsValidCellCoord() [2/2]
| bool FHittestGrid::IsValidCellCoord |
( |
const int32 |
XCoord, |
|
|
const int32 |
YCoord |
|
) |
| const |
◆ RemoveGrid() [1/2]
| void FHittestGrid::RemoveGrid |
( |
const SWidget * |
OtherGridOwner | ) |
|
Remove a grid that was appended.
◆ RemoveGrid() [2/2]
Remove a grid that was appended.
◆ RemoveWidget()
| void FHittestGrid::RemoveWidget |
( |
const SWidget * |
InWidget | ) |
|
Remove SWidget from the HitTest Grid
◆ SetCullingRect()
Set the culling rect to be used by the parent grid (in case we are appended to another grid).
◆ SetHittestArea()
Set the position and size of the hittest area in desktop coordinates
- Parameters
-
| HittestPositionInDesktop | The position of this hit testing area in desktop coordinates. |
| HittestDimensions | The dimensions of this hit testing area. |
- Returns
- Returns true if a clear of the hittest grid was required.
◆ SetOwner()
Set the owner SWidget to be used by the parent grid (in case we are appended to another grid).
◆ SetUserIndex()
| void FHittestGrid::SetUserIndex |
( |
int32 |
UserIndex | ) |
|
|
inline |
Sets the current slate user index that should be associated with any added widgets
◆ UpdateWidget()
Update the widget SecondarySort without removing it and readding it again.
◆ FNavigationMethod
◆ FNavigationMethodOrthogonal
◆ FNavigationRouting
The documentation for this class was generated from the following files: