engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FUICommandDragDropOp类 参考

A drag drop operation for UI Commands 更多...

#include <UICommandDragDropOp.h>

+ 类 FUICommandDragDropOp 继承关系图:

Public 成员函数

virtual TSharedPtr< SWidget > GetDefaultDecorator () const override
 FDragDropOperation interface
 
virtual void OnDragged (const class FDragDropEvent &DragDropEvent) override
 Called when the mouse was moved during a drag and drop operation 更多...
 
virtual void OnDrop (bool bDropWasHandled, const FPointerEvent &MouseEvent) override
 Invoked when the drag and drop operation has ended. 更多...
 
void SetOnDropNotification (FSimpleDelegate InOnDropNotification)
 Sets a delegate that will be called when the command is dropped
 
- Public 成员函数 继承自 FDragDropOperation
virtual bool AffectedByPointerEvent (const FPointerEvent &PointerEvent)
 Checks if this drag and drop operation is affected by a given PointerEvent. 更多...
 
 FDragDropOperation ()
 Default constructor.
 
virtual FVector2D GetDecoratorPosition () const
 Gets the desired position of the decorator in absolute space.
 
virtual TSharedPtr< SWidget > GetDefaultDecorator () const
 Gets the widget that will serve as the decorator unless overridden. 更多...
 
virtual bool IsExternalOperation () const
 Is this drag Drop operation going to interact with applications outside of Slate
 
template<class TType >
bool IsOfType () const
 Check if this drag and drop operation can cast safely to the specified template type
 
virtual bool IsWindowlessOperation () const
 
virtual FCursorReply OnCursorQuery ()
 Allows drag/drop operations to override the current cursor
 
virtual void OnDragged (const class FDragDropEvent &DragDropEvent)
 Called when the mouse was moved during a drag and drop operation 更多...
 
virtual void OnDrop (bool bDropWasHandled, const FPointerEvent &MouseEvent)
 Invoked when the drag and drop operation has ended. 更多...
 
void SetCursorOverride (TOptional< EMouseCursor::Type > CursorType)
 Sets the cursor to override the drag drop operations cursor with so that a control can give temporary feedback, for example - a slashed circle telling the user 'this can't be dropped here'.
 
virtual void SetDecoratorVisibility (bool bVisible)
 Alters the visibility of the window
 
virtual ~FDragDropOperation ()
 Destructor.
 
- Public 成员函数 继承自 TSharedFromThis< FDragDropOperation >
TSharedRef< FDragDropOperation, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< FDragDropOperation const, Mode > AsShared () const
 Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多...
 
FORCEINLINE bool DoesSharedInstanceExist () const
 Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 

Public 属性

bool bIsDraggingSection
 UI entry being dragged is a section header or section separator
 
EMultiBlockType BlockType
 UI entry type being dragged
 
TSharedPtr< SWidget > CustomDecorator
 Custom decorator to display
 
FName ItemName
 UI entry being dragged
 
FVector2D Offset
 Offset from the cursor where the decorator should be displayed
 
FSimpleDelegate OnDropNotification
 Delegate called when the command is dropped
 
FName OriginMultiBox
 Multibox the UI command was dragged from if any
 

额外继承的成员函数

- Protected 成员函数 继承自 FDragDropOperation
virtual void Construct ()
 Constructs the window and widget if applicable.
 
void CreateCursorDecoratorWindow ()
 Creates a window for the cursor decorator.
 
void DestroyCursorDecoratorWindow ()
 Destroys the cursor decorator window.
 
virtual bool IsOfTypeImpl (const FString &Type) const
 Checks whether this drag and drop operation can cast safely to the specified type.
 
- Protected 成员函数 继承自 TSharedFromThis< FDragDropOperation >
FORCEINLINE TSharedFromThis & operator= (TSharedFromThis const &)
 Hidden stub assignment operator
 
 TSharedFromThis ()
 Hidden stub constructor
 
 TSharedFromThis (TSharedFromThis const &)
 Hidden stub copy constructor
 
 ~TSharedFromThis ()
 Hidden destructor
 
- 静态 Protected 成员函数 继承自 TSharedFromThis< FDragDropOperation >
static FORCEINLINE TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
static FORCEINLINE TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
- Protected 属性 继承自 FDragDropOperation
bool bCreateNewWindow
 Create a new window for the decorator content. 更多...
 
TSharedPtr< SWindow > CursorDecoratorWindow
 The window that owns the decorator widget
 
TOptional< EMouseCursor::Type > MouseCursor
 Mouse cursor used by the drag drop operation
 
TOptional< EMouseCursor::Type > MouseCursorOverride
 Mouse cursor used to temporarily replace the drag drops cursor
 

详细描述

A drag drop operation for UI Commands

成员函数说明

◆ OnDragged()

virtual void FUICommandDragDropOp::OnDragged ( const class FDragDropEvent &  DragDropEvent)
overridevirtual

Called when the mouse was moved during a drag and drop operation

参数
DragDropEventThe event that describes this drag drop operation.

重载 FDragDropOperation .

◆ OnDrop()

virtual void FUICommandDragDropOp::OnDrop ( bool  bDropWasHandled,
const FPointerEvent &  MouseEvent 
)
overridevirtual

Invoked when the drag and drop operation has ended.

参数
bDropWasHandledtrue when the drop was handled by some widget; false otherwise
MouseEventThe mouse event which caused the on drop to be called.

重载 FDragDropOperation .


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