Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/FMenuStack
Description
Called by the application when showing tooltips. It prevents tooltips from drawing over menu items. If the resulting bool is false, the resulting OutSlateRect will be [0,0,0,0] and should not be used.
| Name | GetToolTipForceFieldRect |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Framework/Application/MenuStack.h |
| Include Path | #include "Framework/Application/MenuStack.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Framework/Application/MenuStack.cpp |
bool GetToolTipForceFieldRect
(
const TSharedRef < IMenu > & InMenu,
const FWidgetPath & InPathContainingMenu,
FSlateRect & OutSlateRect
) const
A bool indicating whether a solution was found. If false, the resulting OutSlateRect will be [0,0,0,0] and should not be used.
Parameters
| Name | Remarks |
|---|---|
| InMenu | A menu in the stack, used to generate the force field rect |
| InPathContainingMenu | A widget path containing InMenu. This could be generated but the application has the path so it helps performance to pass it in here. |
| OutSlateRect | The output rectangle enclosing the menu's children (created from the clipping rects in the geometry in PathContainingMenu) |