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

An external drag and drop operation that originates outside of slate. 更多...

#include <DragAndDrop.h>

+ 类 FExternalDragOperation 继承关系图:

Public 成员函数

const TArray< FString > & GetFiles () const
 
const FString & GetText () const
 
bool HasFiles () const
 
bool HasText () const
 
- 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 成员函数

static TSharedRef< FExternalDragOperation > NewFiles (TArray< FString > InFileNames)
 Creates a new external file drag operation
 
static TSharedRef< FExternalDragOperation > NewOperation (FString InText, TArray< FString > InFileNames)
 Creates a new external combined drag operation
 
static TSharedRef< FExternalDragOperation > NewText (FString InText)
 Creates a new external text drag operation
 

额外继承的成员函数

- 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
 

详细描述

An external drag and drop operation that originates outside of slate.

E.g. an OLE drag and drop.

成员函数说明

◆ GetFiles()

const TArray< FString > & FExternalDragOperation::GetFiles ( ) const
inline
返回
the filenames from this drag operation

◆ GetText()

const FString & FExternalDragOperation::GetText ( ) const
inline
返回
the text from this drag operation

◆ HasFiles()

bool FExternalDragOperation::HasFiles ( ) const
inline
返回
true if this is a file drag operation

◆ HasText()

bool FExternalDragOperation::HasText ( ) const
inline
返回
true if this is a text drag operation

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