![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <FDockingDragOperation.h>
Inheritance diagram for FDockingDragOperation:Classes | |
| struct | FDockTarget |
Public Types | |
| enum | EViaTabwell { DockingViaTabWell , DockingViaTarget } |
Static Public Member Functions | |
| static TSharedRef< FDockingDragOperation > | New (const TSharedRef< SDockTab > &InTabToBeDragged, const FVector2D InTabGrabOffset, TSharedRef< class SDockingArea > InTabOwnerArea, const FVector2D &OwnerAreaSize) |
Protected Member Functions | |
| FDockingDragOperation (const TSharedRef< class SDockTab > &InTabToBeDragged, const FVector2D InTabGrabOffsetFraction, TSharedRef< class SDockingArea > InTabOwnerArea, const FVector2D &OwnerAreaSize) | |
| const FVector2D | GetDecoratorOffsetFromCursor () |
| void | DroppedOntoNothing () |
Protected Member Functions inherited from FDragDropOperation | |
| virtual SLATECORE_API void | Construct () |
| SLATECORE_API void | CreateCursorDecoratorWindow () |
| SLATECORE_API void | DestroyCursorDecoratorWindow () |
| virtual TSharedPtr< FDragDropOperation > | ConvertTo (const FString &TypeId) |
Protected Member Functions inherited from TSharedFromThis< FDragDropOperation > | |
| TSharedFromThis () | |
| TSharedFromThis (TSharedFromThis const &) | |
| UE_FORCEINLINE_HINT TSharedFromThis & | operator= (TSharedFromThis const &) |
| ~TSharedFromThis () | |
Static Protected Member Functions | |
| static FVector2D | DesiredSizeFrom (const FVector2D &InitialTabSize) |
Static Protected Member Functions inherited from TSharedFromThis< FDragDropOperation > | |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
Protected Attributes | |
| TSharedPtr< class SDockTab > | TabBeingDragged |
| FVector2D | TabGrabOffsetFraction |
| TSharedPtr< SDockingArea > | TabOwnerAreaOfOrigin |
| TSharedPtr< SDockingTabStack > | CursorDecoratorStackNode |
| TWeakPtr< class SDockingTabStack > | TabStackOfOrigin |
| TWeakPtr< class SDockingTabWell > | HoveredTabPanelPtr |
| FDockTarget | HoveredDockTarget |
| FVector2D | LastContentSize |
Protected Attributes inherited from FDragDropOperation | |
| bool | bCreateNewWindow |
| TSharedPtr< SWindow > | CursorDecoratorWindow |
| TOptional< EMouseCursor::Type > | MouseCursor |
| TOptional< EMouseCursor::Type > | MouseCursorOverride |
A Sample implementation of IDragDropOperation
|
virtual |
|
protected |
The constructor is protected, so that this class can only be instantiated as a shared pointer.
| bool FDockingDragOperation::CanDockInNode | ( | const TSharedRef< SDockingNode > & | DockNode, |
| EViaTabwell | IsDockingViaTabwell | ||
| ) | const |
Checks to see if this tab can dock in this node. Some tabs can only dock via the tab well.
|
staticprotected |
|
protected |
The tab was dropped onto nothing or someone interrupted the drag drop operation.
|
protected |
| FSlateRect FDockingDragOperation::GetPreviewAreaForDirection | ( | const FSlateRect & | DockableArea, |
| SDockingArea::RelativeDirection | DockingDirection | ||
| ) |
Given a docking direction and the geometry of the dockable area, figure out the area that will be occupied by a new tab if it is docked there.
| DockableArea | The area of a TabStack that you're hovering |
| DockingDirection | Where relative to this TabStack you want to dock: e.g. to the right. |
| TSharedPtr< class SDockTab > FDockingDragOperation::GetTabBeingDragged | ( | ) |
| FVector2D FDockingDragOperation::GetTabGrabOffsetFraction | ( | ) | const |
|
static |
Create this Drag and Drop Content
| InTabToBeDragged | The tab being dragged (dragged within or outside of a tabwell). |
| InTabGrabOffset | Where within the tab we grabbed, so we're not dragging by the upper left of the tab. |
| InTabOwnerArea | The DockArea that owns this tab until it is relocated. |
| OwnerAreaSize | Size of the DockArea at the time when we start dragging. |
|
overridevirtual |
Called when the mouse was moved during a drag and drop operation
| DragDropEvent | The event that describes this drag drop operation. |
|
overridevirtual |
Invoked when the drag and drop operation has ended.
| bDropWasHandled | true when the drop was handled by some widget; false otherwise |
Reimplemented from FDragDropOperation.
| void FDockingDragOperation::OnTabWellEntered | ( | const TSharedRef< class SDockingTabWell > & | ThePanel | ) |
DragTestArea widgets invoke this method when a drag enters them
| ThePanel | That tab well that we just dragged something into. |
| void FDockingDragOperation::OnTabWellLeft | ( | const TSharedRef< class SDockingTabWell > & | ThePanel, |
| const FGeometry & | DockNodeGeometry | ||
| ) |
DragTestArea widgets invoke this method when a drag leaves them
| ThePanel | That tab well that we just dragged something out of. |
| void FDockingDragOperation::SetHoveredTarget | ( | const FDockTarget & | InTarget, |
| const FInputEvent & | InputEvent | ||
| ) |
Update which dock target, if any, is currently hovered as a result of the InputEvent
|
protected |
Decorator widget where we add temp doc tabs to
|
protected |
Some target dock node over which we are currently hovering; it could be a TabStack or a DockAre
|
protected |
The TabWell over which we are currently hovering
|
protected |
What the size of the content was when it was last shown. The user drags splitters to set this size; it is legitimate state.
|
protected |
What is actually being dragged in this operation
|
protected |
Where the user grabbed the tab as a fraction of the tab's size
|
protected |
The area from which we initially started dragging
|
protected |
Tab stack from which we started dragging this tab.