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

This is the drag/drop class used for UMG, all UMG drag drop operations utilize this operation. 更多...

#include <UMGDragDropOp.h>

+ 类 FUMGDragDropOp 继承关系图:

Public 成员函数

virtual void AddReferencedObjects (FReferenceCollector &Collector) override
 Pure virtual that must be overloaded by the inheriting class. 更多...
 
virtual bool AffectedByPointerEvent (const FPointerEvent &PointerEvent) override
 Checks if this drag and drop operation is affected by a given PointerEvent. 更多...
 
virtual TSharedPtr< SWidget > GetDefaultDecorator () const override
 Gets the widget that will serve as the decorator unless overridden. 更多...
 
virtual FString GetReferencerName () const override
 Use this method to report a name for your referencer.
 
virtual FCursorReply OnCursorQuery () override
 Allows drag/drop operations to override the current cursor
 
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. 更多...
 
- Public 成员函数 继承自 FGCObject
virtual void AddReferencedObjects (FReferenceCollector &Collector)=0
 Pure virtual that must be overloaded by the inheriting class. 更多...
 
 FGCObject (FGCObject &&)
 Move constructor
 
 FGCObject (FGCObject const &)
 Copy constructor
 
 FGCObject (void)
 Tells the global object that forwards AddReferencedObjects calls on to objects that a new object is requiring AddReferencedObjects call.
 
virtual FString GetReferencerName () const
 Use this method to report a name for your referencer.
 
virtual bool GetReferencerPropertyName (UObject *Object, FString &OutPropertyName) const
 Use this method to report how the specified object is referenced, if necessary
 
virtual ~FGCObject (void)
 Removes this instance from the global referencer's list
 

Protected 成员函数

virtual void Construct () override
 Constructs the window and widget if applicable.
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 FGCObject
static void StaticInit (void)
 Initializes the global object referencer and adds it to the root set.
 
- 静态 Public 属性 继承自 FGCObject
static UGCObjectReferencer * GGCObjectReferencer
 The static object referencer object that is shared across all garbage collectible non-UObject objects.
 

详细描述

This is the drag/drop class used for UMG, all UMG drag drop operations utilize this operation.

It supports moving a UObject payload and using a UWidget decorator.

成员函数说明

◆ AddReferencedObjects()

virtual void FUMGDragDropOp::AddReferencedObjects ( FReferenceCollector &  Collector)
overridevirtual

Pure virtual that must be overloaded by the inheriting class.

Use this method to serialize any UObjects contained that you wish to keep around.

参数
CollectorThe collector of referenced objects.

实现了 FGCObject.

◆ AffectedByPointerEvent()

virtual bool FUMGDragDropOp::AffectedByPointerEvent ( const FPointerEvent &  PointerEvent)
overridevirtual

Checks if this drag and drop operation is affected by a given PointerEvent.

参数
PointerEventThe mouse event we are checking against
返回
true if the the pointer event affects this drag and drop operation (default true).

重载 FDragDropOperation .

◆ GetDefaultDecorator()

virtual TSharedPtr< SWidget > FUMGDragDropOp::GetDefaultDecorator ( ) const
overridevirtual

Gets the widget that will serve as the decorator unless overridden.

If you do not override, you will have no decorator

重载 FDragDropOperation .

◆ OnDragged()

virtual void FUMGDragDropOp::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 FUMGDragDropOp::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 .


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