This is the drag/drop class used for UMG, all UMG drag drop operations utilize this operation.
更多...
#include <UMGDragDropOp.h>
|
| 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. 更多...
|
| |
| 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
|
| |
|
|
virtual void | Construct () override |
| | Constructs the window and widget if applicable.
|
| |
|
|
static void | StaticInit (void) |
| | Initializes the global object referencer and adds it to the root set.
|
| |
|
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()
Pure virtual that must be overloaded by the inheriting class.
Use this method to serialize any UObjects contained that you wish to keep around.
- 参数
-
| Collector | The 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.
- 参数
-
| PointerEvent | The mouse event we are checking against |
- 返回
- true if the the pointer event affects this drag and drop operation (default true).
重载 FDragDropOperation .
◆ GetDefaultDecorator()
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
- 参数
-
| DragDropEvent | The 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.
- 参数
-
| bDropWasHandled | true when the drop was handled by some widget; false otherwise |
| MouseEvent | The mouse event which caused the on drop to be called. |
重载 FDragDropOperation .
该类的文档由以下文件生成: