A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
SDialogueGraphPin Class Reference

#include <SDialogueGraphPin.h>

Inheritance diagram for SDialogueGraphPin:
[legend]

Public Member Functions

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)
 

Protected Member Functions

UEdGraphPin * GetBestLinkedToPinFromSplineMousePosition (const FVector2D &MousePosition) const
 
TSharedRef< SWidget > GetDefaultValueWidget () override
 
const FSlateBrush * GetPinBorder () const
 
FSlateColor GetPinColor () const override
 
FText GetTooltipText () const
 
FReply OnAltAndLeftMouseButtonDown (const FGeometry &SenderGeometry, const FPointerEvent &MouseEvent)
 
FReply OnCtrlAndLeftMouseButtonDown (const FGeometry &SenderGeometry, const FPointerEvent &MouseEvent)
 

Private Types

typedef SDialogueGraphPin Self
 
typedef SGraphPin Super
 

Detailed Description

Own SGraphPin custom class, allows us to customize the pins as we like.

Definition at line 12 of file SDialogueGraphPin.h.

Member Typedef Documentation

◆ Self

Definition at line 15 of file SDialogueGraphPin.h.

◆ Super

Definition at line 14 of file SDialogueGraphPin.h.

Member Function Documentation

◆ Construct()

void SDialogueGraphPin::Construct ( const FArguments & InArgs,
UEdGraphPin * InPin )

Definition at line 16 of file SDialogueGraphPin.cpp.

Here is the call graph for this function:

◆ 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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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

Gets the pin border

Definition at line 141 of file SDialogueGraphPin.h.

Here is the caller graph for this function:

◆ GetPinColor()

FSlateColor SDialogueGraphPin::GetPinColor ( ) const
inlineoverrideprotected
Returns
The color that we should use to draw this pin

Definition at line 121 of file SDialogueGraphPin.h.

Here is the caller graph for this function:

◆ GetTooltipText()

FText SDialogueGraphPin::GetTooltipText ( ) const
protected
Returns
The tooltip to display for this pin

Definition at line 229 of file SDialogueGraphPin.cpp.

Here is the caller graph for this function:

◆ OnAltAndLeftMouseButtonDown()

FReply SDialogueGraphPin::OnAltAndLeftMouseButtonDown ( const FGeometry & SenderGeometry,
const FPointerEvent & MouseEvent )
protected

Handles when the alt button and left mouse is on the pin.

Definition at line 163 of file SDialogueGraphPin.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnCtrlAndLeftMouseButtonDown()

FReply SDialogueGraphPin::OnCtrlAndLeftMouseButtonDown ( const FGeometry & SenderGeometry,
const FPointerEvent & MouseEvent )
protected

Handles when the ctrl button and left mouse is on the pin.

Definition at line 192 of file SDialogueGraphPin.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
MyGeometryThe geometry of the widget receiving the event.
DragDropEventThe 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
DragDropEventThe 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
MyGeometryThe geometry of the widget receiving the event.
DragDropEventThe 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
MyGeometryThe geometry of the widget receiving the event.
DragDropEventThe 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
MyGeometryThe Geometry of the widget receiving the event
MouseEventInformation 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
MyGeometryThe Geometry of the widget receiving the event
MouseEventInformation 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
MouseEventInformation 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
MyGeometryThe Geometry of the widget receiving the event
MouseEventInformation 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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SLATE_BEGIN_ARGS()

SDialogueGraphPin::SLATE_BEGIN_ARGS ( Self )
inline

Definition at line 18 of file SDialogueGraphPin.h.


The documentation for this class was generated from the following files: