Navigation
API > API/Editor > API/Editor/GraphEditor > API/Editor/GraphEditor/SNodePanel
| Name | SNode |
| Type | class |
| Header File | /Engine/Source/Editor/GraphEditor/Public/SNodePanel.h |
| Include Path | #include "SNodePanel.h" |
Syntax
class SNode : public SPanel
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SPanel → SNodePanel::SNode
- FSlateControlledConstruction → SWidget → SPanel → SNodePanel::SNode
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SNode() |
SNodePanel.h |
Classes
| Name | Remarks |
|---|---|
| FNodeSlot | A slot that support alignment of content and padding and z-order |
Structs
| Name | Remarks |
|---|---|
| DiffHighlightInfo |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FNodeSet | TSet< TWeakPtr< SNodePanel::SNode > > | SNodePanel.h | |
| FScopedWidgetSlotArguments | TPanelChildren< FNodeSlot >::FScopedWidgetSlotArguments | SNodePanel.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Children | TPanelChildren< FNodeSlot > | SNodePanel.h | ||
| ParentPanelPtr | TWeakPtr< SNodePanel > | SNodePanel.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanBeSelected
(
const FVector2D& MousePositionInNode |
Return if the node can be selected, by pointing given location | SNodePanel.h | |
virtual bool CanBeSelected
(
const FVector2f& MousePositionInNode |
SNodePanel.h | ||
virtual FVector2D ComputeDesiredSize
(
float |
SNodePanel.h | ||
virtual void EndUserInteraction() |
Called when user interaction has completed | SNodePanel.h | |
virtual FChildren * GetChildren() |
SNodePanel.h | ||
virtual 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 | SNodePanel.h | |
virtual FVector2f GetDesiredSizeForMarquee2f() |
SNodePanel.h | ||
virtual void GetDiffHighlightBrushes
(
const FSlateBrush*& BackgroundOut, |
Used by GetDiffHighlights to generate outlines for diffed nodes | SNodePanel.h | |
TArray< SNodePanel::SNode::DiffHighlightInfo > GetDiffHighlights
(
const FDiffSingleResult& DiffResult |
SNodePanel.h | ||
virtual FString GetNodeComment() |
SNodePanel.h | ||
virtual void GetNodeInfoPopups
(
FNodeInfoContext* Context, |
Populate the popups array with any popups to render | SNodePanel.h | |
virtual UObject * GetObjectBeingDisplayed() |
SNodePanel.h | ||
FScopedWidgetSlotArguments GetOrAddSlot
(
const ENodeZone::Type SlotId |
SNodePanel.h | ||
virtual void GetOverlayBrushes
(
bool bSelected, |
Populate the brushes array with any overlay brushes to render | SNodePanel.h | |
virtual void GetOverlayBrushes
(
bool bSelected, |
SNodePanel.h | ||
virtual TArray< FOverlayWidgetInfo > GetOverlayWidgets
(
bool bSelected, |
Populate the widgets array with any overlay widgets to render | SNodePanel.h | |
virtual TArray< FOverlayWidgetInfo > GetOverlayWidgets
(
bool bSelected, |
SNodePanel.h | ||
virtual FVector2D GetPosition() |
SNodePanel.h | ||
virtual FVector2f GetPosition2f() |
SNodePanel.h | ||
virtual float GetRelativeLayoutScale
(
int32 ChildIndex, |
SNodePanel.h | ||
virtual const FSlateBrush * GetShadowBrush
(
bool bSelected |
SNodePanel.h | ||
FNodeSlot * GetSlot
(
const ENodeZone::Type SlotId |
SNodePanel.h | ||
virtual int32 GetSortDepth() |
Returns node sort depth, defaults to and is generally 0 for most nodes. | SNodePanel.h | |
virtual void MoveTo
(
const FVector2D& NewPosition, |
SNodePanel.h | ||
virtual void MoveTo
(
const FVector2f& NewPosition, |
SNodePanel.h | ||
virtual void OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
SNodePanel.h | ||
virtual void OnMouseEnter
(
const FGeometry& InGeometry, |
SNodePanel.h | ||
virtual void OnMouseLeave
(
const FPointerEvent& InMouseEvent |
SNodePanel.h | ||
virtual int32 OnPaint
(
const FPaintArgs& Args, |
SNodePanel.h | ||
virtual void PerformSecondPassLayout
(
const TMap< UObject*, TSharedRef< SNode > >& InNodeToWidgetLookup |
Performs second pass layout; only called if RequiresSecondPassLayout returned true | SNodePanel.h | |
void RemoveSlot
(
const ENodeZone::Type SlotId |
SNodePanel.h | ||
virtual 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) | SNodePanel.h | |
void SetParentPanel
(
const TSharedPtr< SNodePanel >& InParent |
SNodePanel.h | ||
virtual bool ShouldAllowCulling () |
Return false if this node should not be culled. | SNodePanel.h |