UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateDelegates.h File Reference
#include "CoreMinimal.h"
#include "Input/Reply.h"
#include "Widgets/SWidget.h"

Go to the source code of this file.

Classes

class  TSlateDelegates< ArgumentType >
 

Functions

 DECLARE_DELEGATE_RetVal (FReply, FOnClicked) DECLARE_DELEGATE_RetVal_TwoParams(FReply
 
const FGeometry const FPointerEventDECLARE_DELEGATE_TwoParams (FOnDragEnter, const FGeometry &, const FDragDropEvent &) DECLARE_DELEGATE_OneParam(FOnDragLeave
 
const FGeometry const FPointerEvent const FDragDropEventDECLARE_DELEGATE_RetVal_TwoParams (FReply, FOnDragOver, const FGeometry &, const FDragDropEvent &) DECLARE_DELEGATE_RetVal_TwoParams(FReply
 
const FGeometry const FPointerEvent const FDragDropEvent const FGeometry const FDragDropEventDECLARE_DELEGATE_RetVal_TwoParams (FReply, FDropEventHandler, const FGeometry &, const FDragDropEvent &) DECLARE_DELEGATE_TwoParams(FDragEventHandler
 
const FGeometry const FPointerEvent const FDragDropEvent const FGeometry const FDragDropEvent const FGeometry const FDragDropEventDECLARE_DELEGATE_RetVal (TSharedRef< SWidget >, FOnGetContent) DECLARE_DELEGATE_RetVal(TSharedPtr< SWidget >
 
const FGeometry const FPointerEvent const FDragDropEvent const FGeometry const FDragDropEvent const FGeometry const FDragDropEvent FOnContextMenuOpening DECLARE_DELEGATE_RetVal (bool, FIsSelected)
 
 DECLARE_DELEGATE_OneParam (FOnBeginTextEdit, const FText &) DECLARE_DELEGATE_OneParam(FOnTextChanged
 
const FTextDECLARE_DELEGATE_RetVal_OneParam (bool, FOnIsTypedCharValid, const TCHAR)
 
 DECLARE_DELEGATE_TwoParams (FOnTextCommitted, const FText &, ETextCommit::Type)
 
 DECLARE_DELEGATE_OneParam (FOnFloatValueChanged, float)
 
 DECLARE_DELEGATE_OneParam (FOnInt32ValueChanged, int32)
 
 DECLARE_DELEGATE_OneParam (FOnBooleanValueChanged, bool)
 
 DECLARE_DELEGATE_TwoParams (FOnFloatValueCommitted, float, ETextCommit::Type)
 
 DECLARE_DELEGATE_TwoParams (FOnInt32ValueCommitted, int32, ETextCommit::Type)
 
 DECLARE_DELEGATE_OneParam (FOnLinearColorValueChanged, FLinearColor) DECLARE_DELEGATE_OneParam(FOnVector4ValueChanged
 
FVector4DECLARE_DELEGATE (FOnFinishedScrolling)
 
 DECLARE_DELEGATE (FOnTableViewBadState)
 
 DECLARE_DELEGATE_RetVal_OneParam (FReply, FOnKeyEvent, const FKeyEvent &) DECLARE_DELEGATE_RetVal_ThreeParams(bool
 
 DECLARE_DELEGATE_RetVal_OneParam (bool, FAccessAsset, UObject *)
 
 DECLARE_DELEGATE_RetVal_TwoParams (FReply, FOnKeyDown, const FGeometry &, const FKeyEvent &)
 
 DECLARE_DELEGATE_RetVal_TwoParams (FReply, FOnKeyChar, const FGeometry &, const FCharacterEvent &)
 

Variables

 FOnDragDetected
 
const FGeometry const FPointerEvent const FDragDropEvent FOnDrop
 
 FAccessSourceCode
 
const FString int32
 

Function Documentation

◆ DECLARE_DELEGATE() [1/2]

FVector4 & DECLARE_DELEGATE ( FOnFinishedScrolling  )

Invoked when a list view has reached its target offset.

◆ DECLARE_DELEGATE() [2/2]

DECLARE_DELEGATE ( FOnTableViewBadState  )

◆ DECLARE_DELEGATE_OneParam() [1/5]

DECLARE_DELEGATE_OneParam ( FOnBeginTextEdit  ,
const FText  
)

Delegate for hooking up to an editable text box's 'OnBeginTextEdit' Delegate for hooking up to an editable text box's 'OnTextChanged'

◆ DECLARE_DELEGATE_OneParam() [2/5]

DECLARE_DELEGATE_OneParam ( FOnBooleanValueChanged  ,
bool   
)

Notification for bool value change

◆ DECLARE_DELEGATE_OneParam() [3/5]

DECLARE_DELEGATE_OneParam ( FOnFloatValueChanged  ,
float   
)

Notification for float value change

◆ DECLARE_DELEGATE_OneParam() [4/5]

DECLARE_DELEGATE_OneParam ( FOnInt32ValueChanged  ,
int32   
)

Notification for int32 value change

◆ DECLARE_DELEGATE_OneParam() [5/5]

DECLARE_DELEGATE_OneParam ( FOnLinearColorValueChanged  ,
FLinearColor   
)

Notification for FLinearColor value change Notification for FVector4 value change

◆ DECLARE_DELEGATE_RetVal() [1/3]

const FGeometry const FPointerEvent const FDragDropEvent const FGeometry const FDragDropEvent const FGeometry const FDragDropEvent FOnContextMenuOpening DECLARE_DELEGATE_RetVal ( bool  ,
FIsSelected   
)

Delegate for hooking up to an inline editable text block 'IsSelected' check.

◆ DECLARE_DELEGATE_RetVal() [2/3]

DECLARE_DELEGATE_RetVal ( FReply  ,
FOnClicked   
)

Notification when user clicks outside a specified region. A delegate that is invoked when widgets want to notify a user that they have been clicked. Intended for use by buttons and other button-like widgets. Allows for loose coupling for OnDragDetect event handling.

◆ DECLARE_DELEGATE_RetVal() [3/3]

const FGeometry const FPointerEvent const FDragDropEvent const FGeometry const FDragDropEvent const FGeometry const FDragDropEvent & DECLARE_DELEGATE_RetVal ( TSharedRef< SWidget ,
FOnGetContent   
)

The Mouse Event that we are processing Sometimes widgets ask for content to display; at those times they rely on this delegate. For example, the content of a popup is usually driven by code, so it is usually not known until the popup is opening. At that time, OnGetContent is invoked. Delegate to call before a context menu is opened. The user returns the menu content to display or null if a context menu should not be opened return a widget

◆ DECLARE_DELEGATE_RetVal_OneParam() [1/3]

DECLARE_DELEGATE_RetVal_OneParam ( bool  ,
FAccessAsset  ,
UObject  
)

A Delegate for an asset object to access

◆ DECLARE_DELEGATE_RetVal_OneParam() [2/3]

const FText & DECLARE_DELEGATE_RetVal_OneParam ( bool  ,
FOnIsTypedCharValid  ,
const TCHAR   
)

Delegate for validating typed-in characters in SEditableText. Only invoked for typed characters

◆ DECLARE_DELEGATE_RetVal_OneParam() [3/3]

DECLARE_DELEGATE_RetVal_OneParam ( FReply  ,
FOnKeyEvent  ,
const FKeyEvent  
)

Notification for when a key event occurs A Delegate for passing along a string of a source code location to access

◆ DECLARE_DELEGATE_RetVal_TwoParams() [1/4]

const FGeometry const FPointerEvent const FDragDropEvent const FGeometry const FDragDropEvent & DECLARE_DELEGATE_RetVal_TwoParams ( FReply  ,
FDropEventHandler  ,
const FGeometry ,
const FDragDropEvent  
)

Delegate type for handling OnDrop events Delegate type for handling OnDrop events

◆ DECLARE_DELEGATE_RetVal_TwoParams() [2/4]

const FGeometry const FPointerEvent const FDragDropEvent & DECLARE_DELEGATE_RetVal_TwoParams ( FReply  ,
FOnDragOver  ,
const FGeometry ,
const FDragDropEvent  
)

Allows for loose coupling for OnDragOver event handling. Allows for loose coupling for OnDrop event handling.

◆ DECLARE_DELEGATE_RetVal_TwoParams() [3/4]

DECLARE_DELEGATE_RetVal_TwoParams ( FReply  ,
FOnKeyChar  ,
const FGeometry ,
const FCharacterEvent  
)

A delegate for a callback during OnKeyChar from an SWidget

◆ DECLARE_DELEGATE_RetVal_TwoParams() [4/4]

DECLARE_DELEGATE_RetVal_TwoParams ( FReply  ,
FOnKeyDown  ,
const FGeometry ,
const FKeyEvent  
)

A delegate for a callback during OnKeyDown from an SWidget

◆ DECLARE_DELEGATE_TwoParams() [1/4]

const FGeometry const FPointerEvent & DECLARE_DELEGATE_TwoParams ( FOnDragEnter  ,
const FGeometry ,
const FDragDropEvent  
)

Allows for loose coupling for OnDragEnter event handling. Allows for loose coupling for OnDragLeave event handling.

◆ DECLARE_DELEGATE_TwoParams() [2/4]

DECLARE_DELEGATE_TwoParams ( FOnFloatValueCommitted  ,
float  ,
ETextCommit::Type   
)

Notification for float value committed

◆ DECLARE_DELEGATE_TwoParams() [3/4]

DECLARE_DELEGATE_TwoParams ( FOnInt32ValueCommitted  ,
int32  ,
ETextCommit::Type   
)

Notification for int32 value committed

◆ DECLARE_DELEGATE_TwoParams() [4/4]

DECLARE_DELEGATE_TwoParams ( FOnTextCommitted  ,
const FText ,
ETextCommit::Type   
)

Delegate for hooking up to an editable text box's 'OnTextCommitted'

The first parameter (NewText) is the new text string.

The second parameter contains information about how the text was committed.

Variable Documentation

◆ FAccessSourceCode

FAccessSourceCode

◆ FOnDragDetected

FOnDragDetected

◆ FOnDrop

const FGeometry const FPointerEvent const FDragDropEvent FOnDrop

◆ int32

const FString int32