#include <SDialogueGraphPin.h>
|
void | Construct (const FArguments &InArgs, UEdGraphPin *InPin) |
|
void | OnDragEnter (const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent) override |
|
void | OnDragLeave (const FDragDropEvent &DragDropEvent) override |
|
FReply | OnDragOver (const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent) override |
|
FReply | OnDrop (const FGeometry &MyGeometry, const FDragDropEvent &DragDropEvent) override |
|
FReply | OnMouseButtonUp (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override |
|
void | OnMouseEnter (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override |
|
void | OnMouseLeave (const FPointerEvent &MouseEvent) override |
|
FReply | OnMouseMove (const FGeometry &MyGeometry, const FPointerEvent &MouseEvent) override |
|
FReply | OnPinMouseDown (const FGeometry &SenderGeometry, const FPointerEvent &MouseEvent) override |
|
| SLATE_BEGIN_ARGS (Self) |
|
Own SGraphPin custom class, allows us to customize the pins as we like.
Definition at line 12 of file SDialogueGraphPin.h.
◆ Self
◆ Super
◆ Construct()
void SDialogueGraphPin::Construct |
( |
const FArguments & | InArgs, |
|
|
UEdGraphPin * | InPin ) |
◆ GetBestLinkedToPinFromSplineMousePosition()
UEdGraphPin * SDialogueGraphPin::GetBestLinkedToPinFromSplineMousePosition |
( |
const FVector2D & | MousePosition | ) |
const |
|
protected |
Gets the Index in the current pin LinkeTo array that corresponds to the MousePosition on the wire/spline.
Definition at line 248 of file SDialogueGraphPin.cpp.
◆ GetDefaultValueWidget()
TSharedRef< SWidget > SDialogueGraphPin::GetDefaultValueWidget |
( |
| ) |
|
|
inlineoverrideprotected |
Get the widget we should put into the 'default value' space, shown when nothing connected
Definition at line 115 of file SDialogueGraphPin.h.
◆ GetPinBorder()
const FSlateBrush * SDialogueGraphPin::GetPinBorder |
( |
| ) |
const |
|
inlineprotected |
◆ GetPinColor()
FSlateColor SDialogueGraphPin::GetPinColor |
( |
| ) |
const |
|
inlineoverrideprotected |
◆ GetTooltipText()
FText SDialogueGraphPin::GetTooltipText |
( |
| ) |
const |
|
protected |
◆ OnAltAndLeftMouseButtonDown()
FReply SDialogueGraphPin::OnAltAndLeftMouseButtonDown |
( |
const FGeometry & | SenderGeometry, |
|
|
const FPointerEvent & | MouseEvent ) |
|
protected |
◆ OnCtrlAndLeftMouseButtonDown()
FReply SDialogueGraphPin::OnCtrlAndLeftMouseButtonDown |
( |
const FGeometry & | SenderGeometry, |
|
|
const FPointerEvent & | MouseEvent ) |
|
protected |
◆ OnDragEnter()
void SDialogueGraphPin::OnDragEnter |
( |
const FGeometry & | MyGeometry, |
|
|
const FDragDropEvent & | DragDropEvent ) |
|
override |
Called during drag and drop when the drag enters a widget.
Enter/Leave events in slate are meant as lightweight notifications. So we do not want to capture mouse or set focus in response to these. However, OnDragEnter must also support external APIs (e.g. OLE Drag/Drop) Those require that we let them know whether we can handle the content being dragged OnDragEnter.
The concession is to return a can_handled/cannot_handle boolean rather than a full FReply.
- Parameters
-
MyGeometry | The geometry of the widget receiving the event. |
DragDropEvent | The drag and drop event. |
- Returns
- A reply that indicated whether the contents of the DragDropEvent can potentially be processed by this widget.
Definition at line 139 of file SDialogueGraphPin.cpp.
◆ OnDragLeave()
void SDialogueGraphPin::OnDragLeave |
( |
const FDragDropEvent & | DragDropEvent | ) |
|
|
override |
Called during drag and drop when the drag leaves a widget.
- Parameters
-
DragDropEvent | The drag and drop event. |
Definition at line 144 of file SDialogueGraphPin.cpp.
◆ OnDragOver()
FReply SDialogueGraphPin::OnDragOver |
( |
const FGeometry & | MyGeometry, |
|
|
const FDragDropEvent & | DragDropEvent ) |
|
override |
Called during drag and drop when the the mouse is being dragged over a widget.
- Parameters
-
MyGeometry | The geometry of the widget receiving the event. |
DragDropEvent | The drag and drop event. |
- Returns
- A reply that indicated whether this event was handled.
Definition at line 149 of file SDialogueGraphPin.cpp.
◆ OnDrop()
FReply SDialogueGraphPin::OnDrop |
( |
const FGeometry & | MyGeometry, |
|
|
const FDragDropEvent & | DragDropEvent ) |
|
override |
Called when the user is dropping something onto a widget; terminates drag and drop.
- Parameters
-
MyGeometry | The geometry of the widget receiving the event. |
DragDropEvent | The drag and drop event. |
- Returns
- A reply that indicated whether this event was handled.
Definition at line 154 of file SDialogueGraphPin.cpp.
◆ OnMouseButtonUp()
FReply SDialogueGraphPin::OnMouseButtonUp |
( |
const FGeometry & | MyGeometry, |
|
|
const FPointerEvent & | MouseEvent ) |
|
override |
The system calls this method to notify the widget that a mouse button was release within it. This event is bubbled.
- Parameters
-
MyGeometry | The Geometry of the widget receiving the event |
MouseEvent | Information about the input event |
- Returns
- Whether the event was handled along with possible requests for the system to take action.
Definition at line 83 of file SDialogueGraphPin.cpp.
◆ OnMouseEnter()
void SDialogueGraphPin::OnMouseEnter |
( |
const FGeometry & | MyGeometry, |
|
|
const FPointerEvent & | MouseEvent ) |
|
override |
The system will use this event to notify a widget that the cursor has entered it. This event is uses a custom bubble strategy.
- Parameters
-
MyGeometry | The Geometry of the widget receiving the event |
MouseEvent | Information about the input event |
Definition at line 93 of file SDialogueGraphPin.cpp.
◆ OnMouseLeave()
void SDialogueGraphPin::OnMouseLeave |
( |
const FPointerEvent & | MouseEvent | ) |
|
|
override |
The system will use this event to notify a widget that the cursor has left it. This event is uses a custom bubble strategy.
- Parameters
-
MouseEvent | Information about the input event |
Definition at line 130 of file SDialogueGraphPin.cpp.
◆ OnMouseMove()
FReply SDialogueGraphPin::OnMouseMove |
( |
const FGeometry & | MyGeometry, |
|
|
const FPointerEvent & | MouseEvent ) |
|
override |
The system calls this method to notify the widget that a mouse moved within it. This event is bubbled.
- Parameters
-
MyGeometry | The Geometry of the widget receiving the event |
MouseEvent | Information about the input event |
- Returns
- Whether the event was handled along with possible requests for the system to take action.
Definition at line 88 of file SDialogueGraphPin.cpp.
◆ OnPinMouseDown()
FReply SDialogueGraphPin::OnPinMouseDown |
( |
const FGeometry & | SenderGeometry, |
|
|
const FPointerEvent & | MouseEvent ) |
|
override |
Handle clicking on the pin. Note: Used instead of OnMouseButtonDown because this is called by the SGraphPanel, NOT OnMouseButtonDown
Definition at line 40 of file SDialogueGraphPin.cpp.
◆ SLATE_BEGIN_ARGS()
SDialogueGraphPin::SLATE_BEGIN_ARGS |
( |
Self | | ) |
|
|
inline |
The documentation for this class was generated from the following files:
- SDKDemo/Plugins/UnrealEngineSDK/VisualScripter/Source/DlgSystemEditor/Private/DialogueEditor/Nodes/SDialogueGraphPin.h
- SDKDemo/Plugins/UnrealEngineSDK/VisualScripter/Source/DlgSystemEditor/Private/DialogueEditor/Nodes/SDialogueGraphPin.cpp