Navigation
API > API/Runtime > API/Runtime/Slate
Slate tool tip widget
| Name | SToolTip |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/SToolTip.h |
| Include Path | #include "Widgets/SToolTip.h" |
Syntax
class SToolTip :
public SCompoundWidget ,
public IToolTip
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SCompoundWidget → SToolTip
- FSlateControlledConstruction → SWidget → SCompoundWidget → SToolTip
Implements Interfaces
Derived Classes
Structs
| Name | Remarks |
|---|---|
| FArguments |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnSetInteractiveWindowLocation | TBaseDelegate_OneParam< void, FVector2D & > | Widgets/SToolTip.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsInteractive | TAttribute< bool > | Whether the tooltip should be considered interactive. | Widgets/SToolTip.h | |
| BorderImage | TAttribute< const FSlateBrush * > | The background/border image to display. | Widgets/SToolTip.h | |
| Font | TAttribute< FSlateFontInfo > | Font used for the text displayed (where applicable) | Widgets/SToolTip.h | |
| OnSetInteractiveWindowLocationDelegate | FOnSetInteractiveWindowLocation | Optional delegate to modify or override the desired location for an interactive tooltip. | Widgets/SToolTip.h | |
| TextContent | TAttribute< FText > | Text block widget. | Widgets/SToolTip.h | |
| TextMargin | TAttribute< FMargin > | Margin between the tool tip border and the text content. | Widgets/SToolTip.h | |
| ToolTipContent | TSharedPtr< SWidget > | Wrapped content within the widget;. | Widgets/SToolTip.h | |
| WidgetContent | TWeakPtr< SWidget > | Content widget. | Widgets/SToolTip.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs |
Construct this widget | Widgets/SToolTip.h | |
virtual const FText & GetTextTooltip() |
Widgets/SToolTip.h |
Overridden from IToolTip
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< class SWidget > AsWidget() |
Widgets/SToolTip.h | ||
virtual TSharedRef< SWidget > GetContentWidget() |
Widgets/SToolTip.h | ||
virtual bool IsEmpty() |
Widgets/SToolTip.h | ||
virtual bool IsInteractive() |
Widgets/SToolTip.h | ||
virtual void OnClosed() |
Widgets/SToolTip.h | ||
virtual void OnOpening() |
Widgets/SToolTip.h | ||
virtual void OnSetInteractiveWindowLocation
(
FVector2D& InOutDesiredLocation |
Widgets/SToolTip.h | ||
virtual void ResetContentWidget() |
Widgets/SToolTip.h | ||
virtual void SetContentWidget
(
const TSharedRef< SWidget >& InContentWidget |
Widgets/SToolTip.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static float GetToolTipWrapWidth() |
Widgets/SToolTip.h |