Navigation
API > API/Runtime > API/Runtime/Slate
Wrapper for any widget that is used in a table view that wants to handle sub-menus with the same functionality as a normal multibox menu
| Name | SSubMenuHandler |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SSubMenuHandler.h |
| Include Path | #include "Widgets/Input/SSubMenuHandler.h" |
Syntax
class SSubMenuHandler : public SCompoundWidget
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SSubMenuHandler
- FSlateControlledConstruction → SWidget → SCompoundWidget → SSubMenuHandler
Structs
| Name | Remarks |
|---|---|
| FArguments |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CancelPendingSubMenu() |
Cancels any open requests to toggle a sub-menu | Widgets/Input/SSubMenuHandler.h | |
void Construct
(
const FArguments& InArgs, |
Widgets/Input/SSubMenuHandler.h | ||
bool HasSubMenu() |
Returns TRUE if there is a sub-menu available for this item | Widgets/Input/SSubMenuHandler.h | |
bool IsSubMenuOpen() |
Returns TRUE if the sub-menu is open | Widgets/Input/SSubMenuHandler.h | |
void RequestSubMenuToggle
(
bool bOpenMenu, |
Requests that the sub-menu associated with this widget be toggled on or off. | Widgets/Input/SSubMenuHandler.h | |
bool ShouldSubMenuAppearHovered () |
Returns whether or the sub-menu entry should appear hovered. | Widgets/Input/SSubMenuHandler.h |
Overridden from SWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnMouseEnter
(
const FGeometry& MyGeometry, |
Widgets/Input/SSubMenuHandler.h | ||
virtual void OnMouseLeave
(
const FPointerEvent& MouseEvent |
Widgets/Input/SSubMenuHandler.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EActiveTimerReturnType UpdateSubMenuState
(
double InCurrentTime, |
One-off delayed active timer to update the open/closed state of the sub menu. | Widgets/Input/SSubMenuHandler.h |