Navigation
API > API/Runtime > API/Runtime/SlateCore
Interface for tool tips.
| Name | IToolTip |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Widgets/IToolTip.h |
| Include Path | #include "Widgets/IToolTip.h" |
Syntax
class IToolTip
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IToolTip() |
Virtual destructor. | Widgets/IToolTip.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< class SWidget > AsWidget() |
Gets the widget that this tool tip represents. | Widgets/IToolTip.h | |
TSharedRef< SWidget > GetContentWidget() |
Gets the tool tip's content widget. | Widgets/IToolTip.h | |
bool IsEmpty() |
Checks whether this tool tip has no content to display right now. | Widgets/IToolTip.h | |
bool IsInteractive() |
Checks whether this tool tip can be made interactive by the user (by holding Ctrl). | Widgets/IToolTip.h | |
void OnClosed() |
Called when the tooltip widget is closed and the tooltip is no longer needed. | Widgets/IToolTip.h | |
void OnOpening() |
Called when the tooltip widget is about to be requested for opening. | Widgets/IToolTip.h | |
virtual void OnSetInteractiveWindowLocation
(
FVector2D& InOutDesiredLocation |
Allows an interactive tooltip to adjust and/or change its window location on open, as interactive tooltips don't update the tooltip window to follow the cursor position. | Widgets/IToolTip.h | |
virtual void ResetContentWidget() |
Resets the tooltip to its default without a content widget. | Widgets/IToolTip.h | |
void SetContentWidget
(
const TSharedRef< SWidget >& InContentWidget |
Sets the tool tip's content widget. | Widgets/IToolTip.h |