Navigation
API > API/Editor > API/Editor/GraphEditor
| Name | SGraphNodeComment |
| Type | class |
| Header File | /Engine/Source/Editor/GraphEditor/Public/SGraphNodeComment.h |
| Include Path | #include "SGraphNodeComment.h" |
Syntax
class SGraphNodeComment : public SGraphNodeResizable
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → SWidget → SPanel → SNodePanel::SNode → SGraphNode → SGraphNodeResizable → SGraphNodeComment
- FSlateControlledConstruction → SWidget → SPanel → SNodePanel::SNode → SGraphNode → SGraphNodeResizable → SGraphNodeComment
Derived Classes
Structs
| Name | Remarks |
|---|---|
| FArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsSelected | bool | The current selection state of the comment | SGraphNodeComment.h | |
| CachedWidth | int32 | Cached comment title | SGraphNodeComment.h | |
| CommentBubble | TSharedPtr< SCommentBubble > | The comment bubble widget (used when zoomed out) | SGraphNodeComment.h | |
| CommentStyle | FInlineEditableTextBlockStyle | Local copy of the comment style | SGraphNodeComment.h | |
| TitleBar | TSharedPtr< SBorder > | The title bar, needed to obtain it's height | SGraphNodeComment.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Construct
(
const FArguments& InArgs, |
SGraphNodeComment.h |
Overridden from SGraphNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FSlateColor GetCommentColor() |
Return the desired comment bubble color | SGraphNodeComment.h | |
virtual FSlateRect GetTitleRect() |
Return rect of the title bar | SGraphNodeComment.h | |
virtual bool IsNameReadOnly() |
Helper function to check if node can be renamed | SGraphNodeComment.h | |
virtual void OnDragEnter
(
const FGeometry& MyGeometry, |
SGraphNodeComment.h | ||
virtual FReply OnDrop
(
const FGeometry& MyGeometry, |
SGraphNodeComment.h | ||
virtual FReply OnMouseButtonDoubleClick
(
const FGeometry& InMyGeometry, |
SGraphNodeComment.h | ||
virtual FReply OnMouseButtonUp
(
const FGeometry& MyGeometry, |
SGraphNodeComment.h | ||
virtual void RequestRenameOnSpawn() |
Requests a rename when the node was initially spawned | SGraphNodeComment.h | |
virtual void Tick
(
const FGeometry& AllottedGeometry, |
SGraphNodeComment.h |
Overridden from SNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanBeSelected
(
const FVector2f& MousePositionInNode |
Return if the node can be selected, by pointing given location | SGraphNodeComment.h | |
virtual FVector2D ComputeDesiredSize
(
float |
SGraphNodeComment.h | ||
virtual void EndUserInteraction() |
Called when user interaction has completed | SGraphNodeComment.h | |
virtual FVector2f GetDesiredSizeForMarquee2f() |
Return size of the title bar | SGraphNodeComment.h | |
virtual FString GetNodeComment() |
SGraphNodeComment.h | ||
virtual void GetOverlayBrushes
(
bool bSelected, |
SGraphNodeComment.h | ||
virtual const FSlateBrush * GetShadowBrush
(
bool bSelected |
SGraphNodeComment.h | ||
virtual int32 GetSortDepth() |
Returns node sort depth, defaults to and is generally 0 for most nodes. | SGraphNodeComment.h | |
virtual bool ShouldAllowCulling () |
Return false if this node should not be culled. | SGraphNodeComment.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSlateColor GetCommentBodyColor() |
SGraphNodeComment.h | ||
FSlateColor GetCommentBubbleColor() |
SGraphNodeComment.h | ||
FSlateColor GetCommentTitleBarColor() |
SGraphNodeComment.h | ||
void HandleSelection
(
bool bIsSelected, |
Helper method to update selection state of comment and any nodes 'contained' within it | SGraphNodeComment.h | |
virtual bool IsNodeUnderComment
(
UEdGraphNode_Comment* InCommentNode, |
Helper function to determine if a node is under this comment widget or not | SGraphNodeComment.h |
Overridden from SGraphNodeResizable
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FSlateRect GetHitTestingBorder() |
SGraphNodeComment.h | ||
virtual FVector2f GetNodeMaximumSize2f() |
SGraphNodeComment.h | ||
virtual float GetTitleBarHeight() |
Get the current titlebar size | SGraphNodeComment.h |
Overridden from SGraphNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PopulateMetaTag
(
FGraphNodeMetaData* TagMeta |
Populate a meta data tag with information about this graph node | SGraphNodeComment.h | |
virtual void UpdateGraphNode() |
Update this GraphNode to match the data that it is observing | SGraphNodeComment.h |
Overridden from SNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void MoveTo
(
const FVector2f& NewPosition, |
Called when user is moving the comment node | SGraphNodeComment.h |