SNode

Unreal Engine C++ API Reference > Editor > GraphEditor > SNodePanel

Inheritance Hierarchy

References

   
Module GraphEditor
Header /Engine/Source/Editor/GraphEditor/Public/SNodePanel.h
Include #include "SNodePanel.h"

Syntax

class SNode : public [SPanel](API\Runtime\SlateCore\Widgets\SPanel)  

Variables

Type Name Description
TAttribute< FSl... BorderBackgroundColor  
TAttribute< con... BorderImage SBorder Begin.
TAttribute< FLi... ColorAndOpacity The color and opacity to apply to this widget and all its descendants.
TAttribute< FVe... ContentScale SPanel Begin.
TAttribute< FVe... DesiredSizeScale  
TAttribute< FSl... ForegroundColor Optional foreground color that will be inherited by all of this widget's contents
FPointerEventHa... MouseButtonDownHandler Mouse event handlers
FPointerEventHa... MouseButtonUpHandler  
FPointerEventHa... MouseDoubleClickHandler  
FPointerEventHa... MouseMoveHandler  
TAttribute< boo... ShowDisabledEffect Whether or not to show the disabled effect when this border is disabled

Constructors

Type Name Description
  SNode ()  

Functions

Type Name Description
bool CanBeSelected ( const FVector2D& MousePositionInNo... ) Return if the node can be selected, by pointing given location
void EndUserInteraction () Called when user interaction has completed
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
void GetDiffHighlightBrushes ( const FSlateBrush*& Background..., const FSlateBrush*& Foreground... ) Used by GetDiffHighlights to generate outlines for diffed nodes
TArray< SNod... GetDiffHighlights ( const FDiffSingleResult& DiffResul... )  
FString GetNodeComment ()  
void GetNodeInfoPopups ( FNodeInfoContext* Context, TArray< FGraphInformationPopupInfo ... ) Populate the popups array with any popups to render
UObject *... GetObjectBeingDisplayed ()  
FScopedWidge... GetOrAddSlot ( const ENodeZone::Type SlotId )  
void GetOverlayBrushes ( bool bSelected, const FVector2D WidgetSize, TArray< FOverlayBrushInfo >& Brush... ) Populate the brushes array with any overlay brushes to render
TArray< FOve... GetOverlayWidgets ( bool bSelected, const FVector2D& WidgetSize ) Populate the widgets array with any overlay widgets to render
FVector2D GetPosition ()  
const FSlate... GetShadowBrush ( bool bSelected )  
FNodeSlot &#... GetSlot ( const ENodeZone::Type SlotId )  
int32 GetSortDepth () Returns node sort depth, defaults to and is generally 0 for most nodes.
void MoveTo ( const FVector2D& NewPosition, FNodeSet& NodeFilter, bool bMarkDirty )  
void PerformSecondPassLayout ( const TMap< UObject*, TSharedR... ) Performs second pass layout; only called if RequiresSecondPassLayout returned true
void RemoveSlot ( const ENodeZone::Type SlotId )  
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)
void SetParentPanel ( const TSharedPtr< SNodePanel >& In... )  
bool ShouldAllowCulling () Return false if this node should not be culled.

Overridden from SWidget

Type Name Description
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.
FChildren &#... GetChildren () All widgets must provide a way to access their children in a layout-agnostic way.
float GetRelativeLayoutScale ( int32 ChildIndex, float LayoutScaleMultiplier ) What is the Child's scale relative to this widget.
void OnArrangeChildren ( const FGeometry& AllottedGeometry, FArrangedChildren& ArrangedChildre... ) Panels arrange their children in a space described by the AllottedGeometry parameter.
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

Type Name Description
bool operator< ( const SNodePanel::SNode& NodeIn ) Node Sort Operator.

Classes

Type Name Description
Public struct DiffHighlightInfo  
Public class FNodeSlot A slot that support alignment of content and padding and z-order

Typedefs

Name Description
FNodeSet  
FScopedWidgetSlotArguments  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library