engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FReply类 参考

A Reply is something that a Slate event returns to the system to notify it about certain aspect of how an event was handled. 更多...

#include <Reply.h>

继承自 TReplyBase< ReplyType > .

Public 成员函数

bool AffectsAllUsers () const
 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
 
FReply & BeginDragDrop (TSharedRef< FDragDropOperation > InDragDropContent)
 An event should return FReply::Handled().BeginDragDrop( Content ) to initiate a drag and drop operation. 更多...
 
FReply & CancelFocusRequest ()
 An event should rarely invoke FReply::CancelFocusRequest. 更多...
 
FReply & CaptureMouse (TSharedRef< SWidget > InMouseCaptor)
 An event should return a FReply::Handled().CaptureMouse( SomeWidget ) as a means of asking the system to forward all mouse events to SomeWidget
 
FReply & ClearUserFocus (bool bInAllUsers=false)
 An event should return a FReply::Handled().ClearUserFocus() to ask the system to clear user focus
 
FReply & ClearUserFocus (EFocusCause ReasonFocusIsChanging, bool bInAllUsers=false)
 An event should return a FReply::Handled().ClearUserFocus() to ask the system to clear user focus
 
FReply & DetectDrag (const TSharedRef< SWidget > &DetectDragInMe, FKey MouseButton)
 Ask Slate to detect if a user started dragging in this widget. 更多...
 
FReply & EndDragDrop ()
 An event should return FReply::Handled().EndDragDrop() to request that the current drag/drop operation be terminated.
 
TSharedPtr< SWidget > GetDetectDragRequest () const
 
FKey GetDetectDragRequestButton () const
 
const TSharedPtr< FDragDropOperation > & GetDragDropContent () const
 
EFocusCause GetFocusCause () const
 Get the reason that a focus change is being requested.
 
TSharedPtr< SWidget > GetMouseCaptor () const
 If the event replied with a request to capture the mouse, this returns the desired mouse captor. 更多...
 
TSharedPtr< SWidget > GetMouseLockWidget () const
 Returns the widget that the mouse should be locked to (if any)
 
TSharedPtr< SWidget > GetNavigationDestination () const
 Get the widget that is the navigation destination.
 
ENavigationGenesis GetNavigationGenesis () const
 Get the genesis of the navigation.
 
ENavigationSource GetNavigationSource () const
 Get the source of the navigation.
 
EUINavigation GetNavigationType () const
 Get the navigation type (Invalid if no navigation is requested).
 
const TOptional< FIntPoint > & GetRequestedMousePos () const
 
TSharedPtr< SWidget > GetUserFocusRecepient () const
 When not nullptr, user focus has been requested to be set on the FocusRecipient.
 
FReply & LockMouseToWidget (TSharedRef< SWidget > InWidget)
 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.
 
FReply & PreventThrottling ()
 Ensures throttling for Slate UI responsiveness is not done on mouse down
 
FReply & ReleaseMouseCapture ()
 An event should return a FReply::Handled().ReleaseMouse() to ask the system to release mouse capture NOTE: Deactivates high precision mouse movement if activated.
 
FReply & ReleaseMouseLock ()
 An event should return a FReply::Handled().ReleaseMouseLock() to ask the system to release mouse lock on a widget
 
FReply & SetMousePos (const FIntPoint &NewMousePos)
 An event should return FReply::Handled().SetMousePos to ask Slate to move the mouse cursor to a different location
 
FReply & SetNavigation (EUINavigation InNavigationType, const ENavigationGenesis InNavigationGenesis, const ENavigationSource InNavigationSource=ENavigationSource::FocusedWidget)
 An event should return FReply::Handled().SetNavigation( NavigationType ) as a means of asking the system to attempt a navigation
 
FReply & SetNavigation (TSharedRef< SWidget > InNavigationDestination, const ENavigationGenesis InNavigationGenesis, const ENavigationSource InNavigationSource=ENavigationSource::FocusedWidget)
 An event should return FReply::Handled().SetNavigation( NavigationDestination ) as a means of asking the system to attempt a navigation to the specified destination
 
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
 
bool ShouldEndDragDrop () const
 
bool ShouldReleaseMouse () const
 True if this reply indicated that we should release mouse capture as a result of the event being handled
 
bool ShouldReleaseMouseLock () const
 True if the reply indicated that we should release mouse lock
 
bool ShouldReleaseUserFocus () const
 true if this reply indicated that we should release focus as a result of the event being handled
 
bool ShouldSetUserFocus () const
 true if this reply indicated that we should set focus as a result of the event being handled
 
bool ShouldThrottle () const
 Whether or not we should throttle on mouse down
 
bool ShouldUseHighPrecisionMouse () const
 True if this reply indicated that we should use high precision mouse movement
 
FString ToString ()
 Converts the reply into an string representation.
 
FReply & UseHighPrecisionMouseMovement (TSharedRef< SWidget > InMouseCaptor)
 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. 更多...
 

静态 Public 成员函数

static FReply Handled ()
 An event should return a FReply::Handled() to let the system know that an event was handled.
 
static FReply Unhandled ()
 An event should return a FReply::Unhandled() to let the system know that an event was unhandled.
 

详细描述

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 ).

成员函数说明

◆ BeginDragDrop()

FReply & FReply::BeginDragDrop ( TSharedRef< FDragDropOperation >  InDragDropContent)
inline

An event should return FReply::Handled().BeginDragDrop( Content ) to initiate a drag and drop operation.

参数
InDragDropContentThe content that is being dragged. This could be a widget, or some arbitrary data
返回
reference back to the FReply so that this call can be chained.

◆ CancelFocusRequest()

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.

◆ DetectDrag()

FReply & FReply::DetectDrag ( const TSharedRef< SWidget > &  DetectDragInMe,
FKey  MouseButton 
)
inline

Ask Slate to detect if a user started dragging in this widget.

If a drag is detected, Slate will send an OnDragDetected event.

参数
DetectDragInMeDetect dragging in this widget
MouseButtonThis button should be pressed to detect the drag

◆ GetDetectDragRequest()

TSharedPtr< SWidget > FReply::GetDetectDragRequest ( ) const
inline
返回
a widget for which to detect a drag; Invalid SharedPtr if no drag detection requested

◆ GetDetectDragRequestButton()

FKey FReply::GetDetectDragRequestButton ( ) const
inline
返回
the mouse button for which we are detecting a drag

◆ GetDragDropContent()

const TSharedPtr< FDragDropOperation > & FReply::GetDragDropContent ( ) const
inline
返回
the Content that we should use for the Drag and Drop operation; Invalid SharedPtr if a drag and drop operation is not requested

◆ GetMouseCaptor()

TSharedPtr< SWidget > FReply::GetMouseCaptor ( ) const
inline

If the event replied with a request to capture the mouse, this returns the desired mouse captor.

Otherwise returns an invalid pointer.

◆ GetRequestedMousePos()

const TOptional< FIntPoint > & FReply::GetRequestedMousePos ( ) const
inline
返回
The coordinates of the requested mouse position

◆ ShouldEndDragDrop()

bool FReply::ShouldEndDragDrop ( ) const
inline
返回
true if the user has asked us to terminate the ongoing drag/drop operation

◆ UseHighPrecisionMouseMovement()

FReply & FReply::UseHighPrecisionMouseMovement ( TSharedRef< SWidget >  InMouseCaptor)
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.


该类的文档由以下文件生成: