Navigation
API > API/Editor > API/Editor/GraphEditor
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SBorder
- SGraphPin
- SGraphPinAI
- SGraphPinBool
- SGraphPinColor
- SGraphPinEnum
- SGraphPinExec
- SGraphPinKnot
- SGraphPinMaterialInput
- SGraphPinNameList
- SGraphPinDataTableRowName
- SGraphPinNum
- SGraphPinInteger
- SGraphPinObject
- SGraphPinClass
- SGraphPinString
- SGraphPinStructInstance
- SGraphPinVector
- SGraphPinVector2D
- SGraphPinVector4
- SRigVMGraphPinCurveFloat
- SRigVMGraphPinNameList
- SRigVMGraphPinUserDataNameSpace
- SRigVMGraphPinUserDataPath
- SRigVMGraphPinVariableBinding
- SRigVMGraphPinVariableName
References
| Module | GraphEditor |
| Header | /Engine/Source/Editor/GraphEditor/Public/SGraphPin.h |
| Include | #include "SGraphPin.h" |
Syntax
class SGraphPin : public SBorder
Remarks
Represents a pin on a node in the GraphEditor
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDragAndDropEnabled | TRUE if the pin should allow any drag and drop | |
| bool | bFadeConnections | TRUE if the connections from this pin should be drawn at a lower opacity | |
| bool | bGraphDataInvalid | Flag indicating that graph data has been deleted by the user | |
| bool | bIsDiffHighlighted | True if this pin is being diffed and it's currently selected in the diff view. Highlights this pin | |
| bool | bIsMovingLinks | True when we're moving links between pins. | |
| bool | bOnlyShowDefaultValue | If we should draw the label on this pin | |
| bool | bShowLabel | If we should draw the label on this pin | |
| bool | bUsePinColorForText | TRUE if the pin should use the Pin's color for the text | |
| const FSlateBrush * | CachedImg_ArrayPin_Connected | ||
| const FSlateBrush * | CachedImg_ArrayPin_Disconnected | ||
| const FSlateBrush * | CachedImg_DelegatePin_Connected | ||
| const FSlateBrush * | CachedImg_DelegatePin_Disconnected | ||
| const FSlateBrush * | CachedImg_MapPinKey | ||
| const FSlateBrush * | CachedImg_MapPinValue | ||
| const FSlateBrush * | CachedImg_Pin_Background | ||
| const FSlateBrush * | CachedImg_Pin_BackgroundHovered | ||
| const FSlateBrush * | CachedImg_Pin_Connected | ||
| const FSlateBrush * | CachedImg_Pin_DiffOutline | ||
| const FSlateBrush * | CachedImg_Pin_Disconnected | ||
| const FSlateBrush * | CachedImg_PosePin_Connected | ||
| const FSlateBrush * | CachedImg_PosePin_Disconnected | ||
| const FSlateBrush * | CachedImg_RefPin_Connected | ||
| const FSlateBrush * | CachedImg_RefPin_Disconnected | ||
| const FSlateBrush * | CachedImg_SetPin | ||
| FVector2D | CachedNodeOffset | Cached offset from owning node to approximate position of culled pins | |
| const FSlateBrush * | Custom_Brush_Connected | ||
| const FSlateBrush * | Custom_Brush_Disconnected | ||
| TWeakPtr< SHorizontalBox > | FullPinHorizontalRowWidget | Horizontal box that holds the full detail pin widget, useful for outsiders to inject widgets into the pin | |
| UEdGraphPin * | GraphPinObj | The GraphPin that this widget represents. | |
| TSet< FEdGraphPinReference > | HoverPinSet | Set of pins that are currently being hovered | |
| TAttribute< bool > | IsEditable | Is this pin editable | |
| TSharedPtr< SWrapBox > | LabelAndValue | Label and value | |
| TWeakPtr< SGraphNode > | OwnerNodePtr | The GraphNode that owns this pin | |
| FLinearColor | PinColorModifier | Color modifier for use by the connection drawing policy | |
| TOptional< FLinearColor > | PinDiffColor | If set, this will change the color of the pin's background highlight | |
| TSharedPtr< SWidget > | PinImage | Image of pin | |
| TWeakPtr< FPinValueInspectorTooltip > | ValueInspectorTooltip | Value inspector tooltip while debugging | |
| TSharedPtr< SWidget > | ValueWidget | Value widget for the pin, created with GetDefaultValueWidget() |
Constructors
| Type | Name | Description | |
|---|---|---|---|
SGraphPin () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~SGraphPin () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| FReply | Toggle the watch pinning | ||
| void | Construct
(
const FArguments& InArgs, |
Construct this widget | |
| bool | If true the graph pin subclass is responsible for setting the IsEnabled delegates for the aspects it cares about. | ||
| void | EnableDragAndDrop
(
bool bEnable |
Enables or disables drag and drop on the pin | |
| bool | True if the pin's default value can be edited, false if it is read only | ||
| EVisibility | |||
| TSharedRef< SWidget > | Build the widget we should put into the 'default value' space, shown when nothing connected | ||
| EEdGraphPinDirection | GetDirection () |
||
| TWeakPtr< SHorizontalBox > | Retrieves the full horizontal box that contains the pin's row content | ||
| FSlateColor | |||
| void | GetInteractiveTooltipLocation
(
FVector2D& InOutDesiredLocation |
Gets the window location (in screen coords) for an interactive tooltip (e.g. pin value inspector) | |
| bool | Returns whether or not this pin is currently connectable | ||
| TSharedRef< SWrapBox > | Get the label/value part of the pin widget | ||
| TSharedRef< SWidget > | GetLabelWidget
(
const FName& InPinLabelStyle |
Get the widget we should put in the label space, which displays the name of the pin. | |
| FVector2D | Gets Node Offset | ||
| const FSlateBrush * | GetPinBorder () |
||
| FSlateColor | GetPinColor () |
||
| TOptional< EMouseCursor::Type > | GetPinCursor () |
||
| FSlateColor | |||
| const FSlateBrush * | GetPinIcon () |
||
| TSharedPtr< SWidget > | Returns the current pin image widget that is being used | ||
| FText | GetPinLabel () |
||
| EVisibility | If we should show the label on this pin | ||
| UEdGraphPin * | GetPinObj () |
||
| const FSlateBrush * | |||
| EVisibility | |||
| FSlateColor | |||
| EVisibility | Determines the pin's visibility based on the LOD factor, when it is low LOD, no hit test will occur | ||
| FSlateColor | |||
| const FSlateBrush * | |||
| FText | |||
| TSharedRef< SWidget > | Get the widget created by GetDefaultValueWidget() | ||
| bool | |||
| void | Called when ed graph data is cleared, indicating this widget can no longer safely access GraphPinObj Typically an SGraphPin is destroyed before the ed graph data is actually deleted but because SWidget is reference counted we have had problems in the past with the SGraphPin (or Node) living unexpectedly long. | ||
| bool | IsArray () |
||
| bool | |||
| bool | IsConnected () |
||
| bool | IsDelegate () |
||
| bool | True if pin can be edited | ||
| bool | IsMap () |
||
| EVisibility | If pin in node is visible at all | ||
| bool | IsSet () |
||
| FReply | OnPinMouseDown
(
const FGeometry& SenderGeometry, |
Handle clicking on the pin | |
| FReply | OnPinNameMouseDown
(
const FGeometry& SenderGeometry, |
Handle clicking on the pin name | |
| void | SetCustomPinIcon
(
const FSlateBrush* InConnectedBrush, |
Override the visual look of the pin by providing two custom brushes | |
| void | SetDiffHighlighted
(
bool bHighlighted |
||
| void | SetFadeConnections
(
bool bInFadeConnections |
Makes Pin Connection Wires transparent | |
| void | SetIsEditable
(
TAttribute< bool > InIsEditable |
Set attribute for determining if pin is editable | |
| void | SetOnlyShowDefaultValue
(
bool bNewOnlyShowDefaultValue |
Set this pin to only be used to display default value | |
| void | SetOwner
(
const TSharedRef< SGraphNode > OwnerNode |
||
| void | SetPinColorModifier
(
FLinearColor InColor |
Allows the connection drawing policy to control the pin color | |
| void | SetPinDiffColor
(
TOptional< FLinearColor > InColor |
Allows Diff to highlight pins | |
| void | SetPinImageWidget
(
TSharedRef< SWidget > NewWidget |
Sets the pin widget for this pin | |
| void | SetPinObj
(
UEdGraphPin* PinObj |
||
| void | SetShowLabel
(
bool bNewDrawLabel |
Control whether we draw the label on this pin | |
| TSharedRef< FDragDropOperation > | SpawnPinDragEvent
(
const TSharedRef< class SGraphPanel >& InGraphPanel, |
Spawns a FDragConnection or similar class for the pin drag event | |
| bool | TryHandlePinConnection
(
SGraphPin& OtherSPin |
Tries to handle making a connection to another pin, depending on the schema and the pins it may do: | |
| bool | Should we use low-detail pin names? |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< IToolTip > | GetToolTip () |
||
| void | OnDragEnter
(
const FGeometry& MyGeometry, |
DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget. | |
| void | OnDragLeave
(
const FDragDropEvent& DragDropEvent |
Called during drag and drop when the drag leaves a widget. | |
| FReply | OnDragOver
(
const FGeometry& MyGeometry, |
Called during drag and drop when the the mouse is being dragged over a widget. | |
| FReply | OnDrop
(
const FGeometry& MyGeometry, |
Called when the user is dropping something onto a widget; terminates drag and drop. | |
| FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was release within it. | |
| void | OnMouseEnter
(
const FGeometry& MyGeometry, |
The system will use this event to notify a widget that the cursor has entered it. | |
| void | OnMouseLeave
(
const FPointerEvent& MouseEvent |
The system will use this event to notify a widget that the cursor has left it. | |
| FReply | OnMouseMove
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse moved within it. | |
| void | Ticks this widget with Geometry. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |