SGraphPaletteItem

Widget for displaying a single item

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GraphEditor

Header

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

Include

#include "SGraphPalette.h"

Syntax

class SGraphPaletteItem : public SCompoundWidget

Remarks

Widget for displaying a single item

Variables

Name Description

Public variable

TWeakPtr< FEdGr...

 

ActionPtr

The item that we want to display with this widget

Public variable

TSharedPtr< SIn...

 

InlineRenameWidget

Holds the inline renaming widget if one was created

Public variable

FCreateWidgetMo...

 

MouseButtonDownDelegate

Delegate executed when mouse button goes down

Functions

Name Description

Public function

void

 

Construct

(
    const FArguments& InArgs,
    FCreateWidgetForActionData*con...
)

Protected function

TSharedRef< ...

 

CreateIconWidget

(
    const FText& IconToolTip,
    const FSlateBrush* IconBrush,
    const FSlateColor& IconColor
)

Create an icon type widget

Protected function

TSharedRef< ...

 

CreateIconWidget

(
    const FText& IconToolTip,
    const FSlateBrush* IconBrush,
    const FSlateColor& IconColor,
    const FString& DocLink,
    const FString& DocExcerpt,
    const FSlateBrush* SecondaryIc...,
    const FSlateColor& SecondaryColor
)

Creates an icon type widget, including big tooltip link

Protected function Virtual

TSharedRef< ...

 

CreateTextSlotWidget

(
    const FSlateFontInfo& NameFont,
    FCreateWidgetForActionData*con...,
    TAttribute< bool > bIsReadOnly
)

Create the text widget

Protected function Virtual Const

FText

 

GetDisplayText()

Callback to get the display text

Protected function Virtual Const

FText

 

GetItemTooltip()

Callback to get the tooltip

Protected function Virtual

void

 

OnNameTextCommitted

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

Callback when rename text is committed

Protected function Virtual

bool

 

OnNameTextVerifyChanged

(
    const FText& InNewText,
    FText& OutErrorMessage
)

Callback when rename text is being verified on text changed

Overridden from SWidget

Name Description

Public function Virtual

void

 

OnDragEnter

(
    const FGeometry& MyGeometry,
    const FDragDropEvent& DragDropEven...
)

DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget.

Public function Virtual

void

 

OnDragLeave

(
    const FDragDropEvent& DragDropEven...
)

Called during drag and drop when the drag leaves a widget.

Public function Virtual

FReply

 

OnDrop

(
    const FGeometry& MyGeometry,
    const FDragDropEvent& DragDropEven...
)

Called when the user is dropping something onto a widget; terminates drag and drop.

Public function Virtual

FReply

 

OnMouseButtonDown

(
    const FGeometry& MyGeometry,
    const FPointerEvent& MouseEvent
)

MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it.

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