Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Input
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SSubMenuHandler
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Input/SSubMenuHandler.h |
| Include | #include "Widgets/Input/SSubMenuHandler.h" |
Syntax
class SSubMenuHandler : public SCompoundWidget
Remarks
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
Variables
| Type | Name | Description | |
|---|---|---|---|
| TWeakPtr< FActiveTimerHandle > | ActiveTimerHandle | The handle to the active timer to update the sub-menu state | |
| TWeakPtr< SMenuAnchor > | MenuAnchor | For pull-down or sub-menu entries, this stores a weak reference to the menu anchor widget that we'll use to summon the menu | |
| TWeakPtr< class SMenuOwner > | MenuOwnerWidget | Weak reference back to the MenuOwner widget that owns us |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Cancels any open requests to toggle a sub-menu | ||
| void | Construct
(
const FArguments& InArgs, |
||
| bool | HasSubMenu () |
Returns TRUE if there is a sub-menu available for this item | |
| bool | Returns TRUE if the sub-menu is open | ||
| void | RequestSubMenuToggle
(
bool bOpenMenu, |
Requests that the sub-menu associated with this widget be toggled on or off. | |
| bool | Returns whether or the sub-menu entry should appear hovered. | ||
| EActiveTimerReturnType | UpdateSubMenuState
(
double InCurrentTime, |
One-off delayed active timer to update the open/closed state of the sub menu. |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| void | OnMouseEnter
(
const FGeometry& MyGeometry, |
The system will use this event to notify a widget that the cursor has entered it. | |
| void | OnMouseLeave
(
const FPointerEvent& MouseEvent |
The system will use this event to notify a widget that the cursor has left it. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |