Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Framework/Application/MenuStack.h |
Include |
#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
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.
A bool indicating whether a solution was found. If false, the resulting OutSlateRect will be [0,0,0,0] and should not be used.
Parameter |
Description |
---|---|
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) |