Navigation
API > API/Editor > API/Editor/GraphEditor
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SCommentBubble
References
| Module | GraphEditor |
| Header | /Engine/Source/Editor/GraphEditor/Public/SCommentBubble.h |
| Include | #include "SCommentBubble.h" |
Syntax
class SCommentBubble : public SCompoundWidget
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowPinning | Allow pin behaviour | |
| bool | bEnableBubbleCtrls | Allow in bubble controls | |
| bool | bEnableTitleBarBubble | Enable the title bar bubble toggle | |
| bool | bInvertLODCulling | Invert the LOD culling behavior, used by comment nodes | |
| float | BubbleLuminance | The luminance (R + G + B) of the bubble's color, used to control text foreground color | |
| FString | CachedComment | Cached comment | |
| FText | CachedCommentText | Cached FText comment | |
| FSlateColor | CalculatedForegroundColor | Current Foreground Color | |
| TAttribute< FSlateColor > | ColorAndOpacity | The Comment Bubble color and opacity value | |
| TAttribute< FString > | CommentAttribute | Attribute to query node comment | |
| TAttribute< EGraphRenderingLOD::Type > | GraphLOD | Attribute to query current LOD | |
| UEdGraphNode * | GraphNode | The GraphNode this widget interacts with | |
| TAttribute< FText > | HintText | Hint Text | |
| FIsGraphNodeHovered | IsGraphNodeHovered | Delegate to determine if the graph node is currently hovered | |
| FOnTextCommitted | OnTextCommittedDelegate | Optional delegate to call when the comment text is committed | |
| FOnCommentBubbleToggled | OnToggledDelegate | Optional delegate to call when the comment bubble is toggled | |
| float | OpacityValue | Used to Control hover fade up/down for widgets | |
| TSharedPtr< SMultiLineEditableTextBox > | TextBlock | Cached inline editable text box | |
| TAttribute< ECheckBoxState > | ToggleButtonCheck | Toggle button checked state |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs |
Construct this widget. Called by the SNew()Slate macro. | |
| float | Returns the offset to the arrow center accounting for zoom on either the comment bubble or the title bar button based on current state | ||
| FSlateColor | Returns the color of the main bubble | ||
| EVisibility | Called to determine if the comment bubble's current visibility | ||
| FVector2D | GetOffset () |
Returns the offset from the SNode center slot | |
| ECheckBoxState | Returns pinned check state | ||
| FSlateColor | |||
| FText | Returns the current scale button tooltip | ||
| FVector2D | GetSize () |
Returns the bubble size | |
| FSlateColor | |||
| FSlateColor | |||
| ECheckBoxState | Returns bubble toggle check state | ||
| FSlateColor | Returns the color for the toggle bubble including the opacity value | ||
| EVisibility | Called to determine if the toggle button's current visibility | ||
| bool | Returns if comment bubble is visible | ||
| bool | IsReadOnly () |
Called to determine if the comment bubble is readonly | |
| bool | Returns if graph scaling can be applied to this bubble | ||
| void | OnCommentBubbleToggle
(
ECheckBoxState State |
Called to display/hide the comment bubble | |
| void | OnCommentTextCommitted
(
const FText& NewText, |
Called when the comment text is committed | |
| void | OnPinStateToggle
(
ECheckBoxState State |
Called when a node's comment bubble pinned state is changed | |
| void | SetCommentBubbleVisibility
(
bool bVisible |
Directly sets the bubble's visibility, without assuming it was from a user action (no undo transaction, or OnToggled callback) | |
| bool | Returns if the text block currently has keyboard focus | ||
| void | TickVisibility
(
const double InCurrentTime, |
Updates the comment Visibility | |
| void | UpdateBubble () |
Called to update the bubble widget layout |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FSlateColor | Returns the foreground color for the text and buttons, taking into account the bubble color | ||
| FCursorReply | OnCursorQuery
(
const FGeometry& MyGeometry, |
The system asks each widget under the mouse to provide a cursor. This event is bubbled. | |
| void | Ticks this widget with Geometry. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |