![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Reply.h>
Inheritance diagram for FReply:Static Public Member Functions | |
| static FReply | Handled () |
| static FReply | Unhandled () |
Friends | |
| class | FSlateApplication |
Additional Inherited Members | |
Protected Member Functions inherited from TReplyBase< FReply > | |
| FReply & | SetHandler (const TSharedRef< SWidget > &InHandler) |
| FReply & | Me () |
Protected Member Functions inherited from FReplyBase | |
| FReplyBase (bool InIsHandled) | |
Protected Attributes inherited from FReplyBase | |
| bool | bIsHandled |
| TSharedPtr< SWidget > | EventHandler |
A Reply is something that a Slate event returns to the system to notify it about certain aspect of how an event was handled. For example, a widget may handle an OnMouseDown event by asking the system to give mouse capture to a specific Widget. To do this, return FReply::CaptureMouse( NewMouseCapture ).
|
default |
Default copy constructor.
|
inline |
If the event replied with a request to change the user focus whether it should do it for all users or just the current UserIndex
|
inline |
An event should return FReply::Handled().BeginDragDrop( Content ) to initiate a drag and drop operation.
| InDragDropContent | The content that is being dragged. This could be a widget, or some arbitrary data |
| FReply & FReply::CancelFocusRequest | ( | ) |
An event should rarely invoke FReply::CancelFocusRequest. This will change the reply so that it no longer contains a request for the system to set or clear focus. This is most useful when a reply has been cached for use in async operations.
|
inline |
An event should return a FReply::Handled().CaptureMouse( SomeWidget ) as a means of asking the system to forward all mouse events to SomeWidget
An event should return a FReply::Handled().ClearUserFocus() to ask the system to clear user focus
| FReply & FReply::ClearUserFocus | ( | EFocusCause | ReasonFocusIsChanging, |
| bool | bInAllUsers = false |
||
| ) |
An event should return a FReply::Handled().ClearUserFocus() to ask the system to clear user focus
|
inline |
|
inline |
An event should return FReply::Handled().EndDragDrop() to request that the current drag/drop operation be terminated.
|
inline |
|
inline |
|
inline |
|
inline |
Get the reason that a focus change is being requested.
|
inline |
If the event replied with a request to capture the mouse, this returns the desired mouse captor. Otherwise returns an invalid pointer.
|
inline |
Returns the widget that the mouse should be locked to (if any)
|
inline |
Get the widget that is the navigation destination.
|
inline |
Get the genesis of the navigation.
|
inline |
Get the source of the navigation.
|
inline |
Get the navigation type (Invalid if no navigation is requested).
|
inline |
When not nullptr, user focus has been requested to be set on the FocusRecipient.
An event should return a FReply::Handled() to let the system know that an event was handled.
|
inline |
An event should return FReply::Handled().LockMouseToWidget( SomeWidget ) as a means of asking the system to Lock the mouse so it cannot move out of the bounds of the widget.
|
inline |
|
inline |
An event should return a FReply::Handled().ReleaseMouse() to ask the system to release mouse capture NOTE: Deactivates high precision mouse movement if activated.
|
inline |
An event should return a FReply::Handled().ReleaseMouseLock() to ask the system to release mouse lock on a widget
An event should return FReply::Handled().SetMousePos to ask Slate to move the mouse cursor to a different location
|
inline |
An event should return FReply::Handled().SetNavigation( NavigationType ) as a means of asking the system to attempt a navigation
|
inline |
An event should return FReply::Handled().SetNavigation( NavigationDestination ) as a means of asking the system to attempt a navigation to the specified destination
| FReply & FReply::SetUserFocus | ( | TSharedRef< SWidget > | GiveMeFocus, |
| EFocusCause | ReasonFocusIsChanging = EFocusCause::SetDirectly, |
||
| bool | bInAllUsers = false |
||
| ) |
An event should return FReply::Handled().SetUserFocus( SomeWidget ) as a means of asking the system to set users focus to the provided widget
|
inline |
|
inline |
True if this reply indicated that we should release mouse capture as a result of the event being handled
|
inline |
True if the reply indicated that we should release mouse lock
|
inline |
true if this reply indicated that we should release focus as a result of the event being handled
|
inline |
true if this reply indicated that we should set focus as a result of the event being handled
|
inline |
Whether or not we should throttle on mouse down
|
inline |
True if this reply indicated that we should use high precision mouse movement
| FString FReply::ToString | ( | ) |
Converts the reply into an string representation.
An event should return a FReply::Unhandled() to let the system know that an event was unhandled.
|
inline |
Enables the use of high precision (raw input) mouse movement, for more accurate mouse movement without mouse ballistics NOTE: This implies mouse capture and hidden mouse movement. Releasing mouse capture deactivates this mode.
|
friend |