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

This operation is a color which can be dragged and dropped between widgets. 更多...

#include <SColorThemes.h>

+ 类 FColorDragDrop 继承关系图:

Public 成员函数

virtual TSharedPtr< SWidget > GetDefaultDecorator () const override
 Gets the widget that will serve as the decorator unless overridden. 更多...
 
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 成员函数 继承自 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< FColorDragDrop > New (FLinearColor InColor, bool bSRGB, bool bUseAlpha, FSimpleDelegate TrashShowCallback=FSimpleDelegate(), FSimpleDelegate TrashHideCallback=FSimpleDelegate(), TSharedPtr< SThemeColorBlocksBar > Origin=TSharedPtr< SThemeColorBlocksBar >(), int32 OriginPosition=0)
 Makes a new FColorDragDrop to hold on to 更多...
 

Public 属性

FVector2D BlockSize
 The size of the drag and drop color block
 
bool bSetForDeletion
 Flag which ensures that OnDrop will not replace this block in it's origin
 
bool bUseAlpha
 Whether or not the color uses Alpha or not
 
bool bUseSRGB
 Whether or not the color uses SRGB or not
 
FLinearColor Color
 The color currently held onto by this drag drop operation
 
FSimpleDelegate HideTrash
 Callback to hide the trash when this widget is dropped
 
TWeakPtr< SThemeColorBlocksBar > OriginBar
 The origin is the SThemeColorBlockBar where this operation is from. 更多...
 
int32 OriginBarPosition
 The origin position
 
FSimpleDelegate ShowTrash
 Callback to show the trash when this widget is created
 

额外继承的成员函数

- 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
 

详细描述

This operation is a color which can be dragged and dropped between widgets.

Represents a SThemeColorBlock that is dragged around, and can be dropped into a color trash.

成员函数说明

◆ GetDefaultDecorator()

virtual TSharedPtr< SWidget > FColorDragDrop::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 .

◆ New()

static TSharedRef< FColorDragDrop > FColorDragDrop::New ( FLinearColor  InColor,
bool  bSRGB,
bool  bUseAlpha,
FSimpleDelegate  TrashShowCallback = FSimpleDelegate(),
FSimpleDelegate  TrashHideCallback = FSimpleDelegate(),
TSharedPtr< SThemeColorBlocksBar >  Origin = TSharedPtr< SThemeColorBlocksBar >(),
int32  OriginPosition = 0 
)
static

Makes a new FColorDragDrop to hold on to

参数
InColorThe color to be dragged and dropped
bSRGBWhether the color is sRGB
bUseAlphaWhether the colors alpha is important
TrashShowCallbackCalled when this operation is created
TrashHideCallbackCalled when this operation is dropped
OriginThe SThemeColorBlockBar that this operation is from
OriginPositionThe position in it's origin that it is from

◆ OnDragged()

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

类成员变量说明

◆ OriginBar

TWeakPtr<SThemeColorBlocksBar> FColorDragDrop::OriginBar

The origin is the SThemeColorBlockBar where this operation is from.

Upon dropping, this operation jumps back to it's origin if possible


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