SCommentBubble

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GraphEditor

Header

/Engine/Source/Editor/GraphEditor/Public/SCommentBubble.h

Include

#include "SCommentBubble.h"

Syntax

class SCommentBubble : public SCompoundWidget

Variables

Name Description

Protected variable

bool

 

bAllowPinning

Allow pin behaviour

Protected variable

bool

 

bEnableBubbleCtrls

Allow in bubble controls

Protected variable

bool

 

bEnableTitleBarBubble

Enable the title bar bubble toggle

Protected variable

bool

 

bInvertLODCulling

Invert the LOD culling behavior, used by comment nodes

Protected variable

FString

 

CachedComment

Cached comment

Protected variable

FText

 

CachedCommentText

Cached FText comment

Protected variable

TAttribute< FSl...

 

ColorAndOpacity

The Comment Bubble color and opacity value

Protected variable

TAttribute< FSt...

 

CommentAttribute

Attribute to query node comment

Protected variable

FLinearColor

 

ForegroundColor

Current Foreground Color

Protected variable

TAttribute< EGr...

 

GraphLOD

Attribute to query current LOD

Protected variable

UEdGraphNode &#...

 

GraphNode

The GraphNode this widget interacts with

Protected variable

TAttribute< FTe...

 

HintText

Hint Text

Protected variable

FIsGraphNodeHov...

 

IsGraphNodeHovered

Delegate to determine if the graph node is currently hovered

Protected variable

FOnTextCommitte...

 

OnTextCommittedDelegate

Optional delegate to call when the comment text is committed

Protected variable

FOnCommentBubbl...

 

OnToggledDelegate

Optional delegate to call when the comment bubble is toggled

Protected variable

float

 

OpacityValue

Used to Control hover fade up/down for widgets

Protected variable

TSharedPtr< SMu...

 

TextBlock

Cached inline editable text box

Protected variable

TAttribute< ECh...

 

ToggleButtonCheck

Toggle button checked state

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Construct this widget. Called by the SNew()Slate macro.

Public function Const

float

 

GetArrowCenterOffset()

Returns the offset to the arrow center accounting for zoom on either the comment bubble or the title bar button based on current state

Protected function Const

FSlateColor

 

GetBubbleColor()

Returns the color of the main bubble

Protected function Const

EVisibility

 

GetBubbleVisibility()

Called to determine if the comment bubble's current visibility

Public function Const

FVector2D

 

GetOffset()

Returns the offset from the SNode center slot

Protected function Const

ECheckBoxSta...

 

GetPinnedButtonCheck()

Returns pinned check state

Protected function Const

FText

 

GetScaleButtonTooltip()

Returns the current scale button tooltip

Public function Const

FVector2D

 

GetSize()

Returns the bubble size

Protected function Const

FSlateColor

 

GetTextBackgroundColor()

Returns the current background color for the textbox

Protected function Const

FSlateColor

 

GetTextForegroundColor()

Returns the current foreground color for the textbox

Protected function Const

ECheckBoxSta...

 

GetToggleButtonCheck()

Returns bubble toggle check state

Protected function Const

FSlateColor

 

GetToggleButtonColor()

Returns the color for the toggle bubble including the opacity value

Protected function Const

EVisibility

 

GetToggleButtonVisibility()

Called to determine if the toggle button's current visibility

Public function Const

bool

 

IsBubbleVisible()

Returns if comment bubble is visible

Protected function Const

bool

 

IsReadOnly()

Called to determine if the comment bubble is readonly

Public function Const

bool

 

IsScalingAllowed()

Returns if graph scaling can be applied to this bubble

Public function

void

 

OnCommentBubbleToggle

(
    ECheckBoxState State
)

Called to display/hide the comment bubble

Protected function

void

 

OnCommentTextCommitted

(
    const FText& NewText,
    ETextCommit::Type CommitInfo
)

Called when the comment text is committed

Public function Const

void

 

OnPinStateToggle

(
    ECheckBoxState State
)

Called when a node's comment bubble pinned state is changed

Public function

void

 

SetCommentBubbleVisibility

(
    bool bVisible
)

Directly sets the bubble's visibility, without assuming it was from a user action (no undo transaction, or OnToggled callback)

Public function Const

bool

 

TextBlockHasKeyboardFocus()

Returns if the text block currently has keyboard focus

Public function

void

 

TickVisibility

(
    const double InCurrentTime,
    const float InDeltaTime
)

Updates the comment Visibility

Public function

void

 

UpdateBubble()

Called to update the bubble widget layout

Overridden from SWidget

Name Description

Protected function Virtual Const

FSlateColor

 

GetForegroundColor()

Returns the foreground color for the text and buttons, taking into account the bubble color

Public function Virtual Const

FCursorReply

 

OnCursorQuery

(
    const FGeometry& MyGeometry,
    const FPointerEvent& CursorEvent
)

The system asks each widget under the mouse to provide a cursor. This event is bubbled.

Public function Virtual

void

 

Tick

(
    const FGeometry& AllottedGeometry,
    const double InCurrentTime,
    const float InDeltaTime
)

Ticks this widget with Geometry.

Classes

Name

Description

Public struct

FArguments

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss