SGraphNodeComment

Unreal Engine C++ API Reference > Editor > GraphEditor

Inheritance Hierarchy

References

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

Syntax

class SGraphNodeComment : public [SGraphNodeResizable](API\Editor\GraphEditor\SGraphNodeResizable)  

Variables

Type Name Description
bool bCachedBubbleVisibility Was the bubble desired to be visible last frame?
FString CachedCommentTitle Cached comment title
int32 CachedFontSize Cached font size

Functions

Type Name Description
void Construct ( const FArguments& InArgs, UEdGraphNode_Comment* InNode )  
FSlateColor GetCommentBodyColor ()  
FSlateColor GetCommentBubbleColor ()  
FSlateColor GetCommentTitleBarColor ()  
void HandleSelection ( bool bIsSelected, bool bUpdateNodesUnderComment ) Helper method to update selection state of comment and any nodes 'contained' within it
bool IsNodeUnderComment ( UEdGraphNode_Comment* InCommen..., const TSharedRef< SGraphNode > InNo... ) Helper function to determine if a node is under this comment widget or not

Overridden from SGraphNodeResizable

Type Name Description
FSlateRect GetHitTestingBorder ()  
FVector2D GetNodeMaximumSize () Return largest desired node size
float GetTitleBarHeight () Get the current titlebar size

Overridden from SGraphNode

Type Name Description
FSlateColor GetCommentColor () Return the desired comment bubble color
FSlateRect GetTitleRect () Return rect of the title bar
bool IsNameReadOnly () Helper function to check if node can be renamed
void PopulateMetaTag ( FGraphNodeMetaData* TagMeta ) Populate a meta data tag with information about this graph node
void UpdateGraphNode () Update this GraphNode to match the data that it is observing

Overridden from SNode

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 () Return size of the title bar
FString GetNodeComment ()  
void GetOverlayBrushes ( bool bSelected, const FVector2D WidgetSize, TArray< FOverlayBrushInfo >& Brush... ) Populate the brushes array with any overlay brushes to render
const FSlate... GetShadowBrush ( bool bSelected )  
int32 GetSortDepth () Returns node sort depth, defaults to and is generally 0 for most nodes.
void MoveTo ( const FVector2D& NewPosition, FNodeSet& NodeFilter, bool bMarkDirty ) Called when user is moving the comment node
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.
void OnDragEnter ( const FGeometry& MyGeometry, const FDragDropEvent& DragDropEven... ) DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget.
FReply OnDrop ( const FGeometry& MyGeometry, const FDragDropEvent& DragDropEven... ) Called when the user is dropping something onto a widget; terminates drag and drop.
FReply OnMouseButtonDoubleClick ( const FGeometry& InMyGeometry, const FPointerEvent& InMouseEvent ) Called when a mouse button is double clicked. Override this in derived classes.
FReply OnMouseButtonUp ( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent ) The system calls this method to notify the widget that a mouse button was release within it.
void Tick ( const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime ) Ticks this widget with Geometry.

Classes

Type Name Description
Public struct FArguments  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library