SNode

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GraphEditor

Header

/Engine/Source/Editor/GraphEditor/Public/SNodePanel.h

Include

#include "SNodePanel.h"

Syntax

class SNode : public SPanel

Variables

Name Description

Protected variable

TAttribute< FSl...

 

BorderBackgroundColor

Protected variable

TAttribute< con...

 

BorderImage

SBorder Begin.

Protected variable

TAttribute< FLi...

 

ColorAndOpacity

The color and opacity to apply to this widget and all its descendants.

Protected variable

TAttribute< FVe...

 

ContentScale

SPanel Begin.

Protected variable

TAttribute< FVe...

 

DesiredSizeScale

Protected variable

TAttribute< FSl...

 

ForegroundColor

Optional foreground color that will be inherited by all of this widget's contents

Protected variable

FPointerEventHa...

 

MouseButtonDownHandler

Mouse event handlers

Protected variable

FPointerEventHa...

 

MouseButtonUpHandler

Protected variable

FPointerEventHa...

 

MouseDoubleClickHandler

Protected variable

FPointerEventHa...

 

MouseMoveHandler

Protected variable

TAttribute< boo...

 

ShowDisabledEffect

Whether or not to show the disabled effect when this border is disabled

Constructors

Name Description

Protected function

SNode()

Functions

Name Description

Public function Virtual Const

bool

 

CanBeSelected

(
    const FVector2D& MousePositionInNo...
)

Return if the node can be selected, by pointing given location

Public function Virtual Const

void

 

EndUserInteraction()

Called when user interaction has completed

Public function Virtual Const

FVector2D

 

GetDesiredSizeForMarquee()

Override, when area used to select node, should be different, than it's size e.g. comment node - only title bar is selectable return size of node used for Marquee selecting

Public function Virtual Const

FString

 

GetNodeComment()

Public function Virtual Const

void

 

GetNodeInfoPopups

(
    FNodeInfoContext* Context,
    TArray< FGraphInformationPopupInfo ...
)

Populate the popups array with any popups to render

Public function Virtual Const

UObject *...

 

GetObjectBeingDisplayed()

Public function

FNodeSlot &

 

GetOrAddSlot

(
    const ENodeZone::Type SlotId
)

Public function Virtual Const

void

 

GetOverlayBrushes

(
    bool bSelected,
    const FVector2D WidgetSize,
    TArray< FOverlayBrushInfo >& Brush...
)

Populate the brushes array with any overlay brushes to render

Public function Virtual Const

TArray< FOve...

 

GetOverlayWidgets

(
    bool bSelected,
    const FVector2D& WidgetSize
)

Populate the widgets array with any overlay widgets to render

Public function Virtual Const

FVector2D

 

GetPosition()

Public function Virtual Const

const FSlate...

 

GetShadowBrush

(
    bool bSelected
)

Public function

FNodeSlot &#...

 

GetSlot

(
    const ENodeZone::Type SlotId
)

Public function Virtual Const

int32

 

GetSortDepth()

Returns node sort depth, defaults to and is generally 0 for most nodes.

Public function Virtual

void

 

MoveTo

(
    const FVector2D& NewPosition,
    FNodeSet& NodeFilter,
    bool bMarkDirty
)

Public function Virtual Const

void

 

PerformSecondPassLayout

(
    const TMap< UObject*, TSharedR...
)

Performs second pass layout; only called if RequiresSecondPassLayout returned true

Public function

void

 

RemoveSlot

(
    const ENodeZone::Type SlotId
)

Public function Virtual Const

bool

 

RequiresSecondPassLayout()

Returns true if this node is dependent on the location of other nodes (it can only depend on the location of first-pass only nodes)

Public function

void

 

SetParentPanel

(
    const TSharedPtr< SNodePanel >& In...
)

Public function Virtual Const

bool

 

ShouldAllowCulling()

Return false if this node should not be culled.

Overridden from SWidget

Name Description

Public function Virtual Const

FVector2D

 

ComputeDesiredSize

(
    float
)

A Panel's desired size in the space required to arrange of its children on the screen while respecting all of the children's desired sizes and any layout-related options specified by the user.

Public function Virtual

FChildren &#...

 

GetChildren()

All widgets must provide a way to access their children in a layout-agnostic way.

Public function Virtual Const

float

 

GetRelativeLayoutScale

(
    int32 ChildIndex,
    float LayoutScaleMultiplier
)

What is the Child's scale relative to this widget.

Public function Virtual Const

void

 

OnArrangeChildren

(
    const FGeometry& AllottedGeometry,
    FArrangedChildren& ArrangedChildre...
)

Panels arrange their children in a space described by the AllottedGeometry parameter.

Public function Virtual Const

int32

 

OnPaint

(
    const FPaintArgs& Args,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle,
    bool bParentEnabled
)

The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children.

Operators

Name Description

Public function Const

bool

 

operator<

(
    const SNodePanel::SNode& NodeIn
)

Node Sort Operator.

Classes

Name

Description

Public class

FNodeSlot

A slot that support alignment of content and padding and z-order

Typedefs

Name

Description

FNodeSet

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss