SThemeColorBlocksBar

SThemeColorBlocksBars are panels for dragging and dropping SColorThemeBlocks onto and off of.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

AppFramework

Header

/Engine/Source/Runtime/AppFramework/Public/Widgets/Colors/SColorThemes.h

Include

#include "Widgets/Colors/SColorThemes.h"

Syntax

class SThemeColorBlocksBar : public SPanel

Remarks

SThemeColorBlocksBars are panels for dragging and dropping SColorThemeBlocks onto and off of.

Constructors

Name Description

Public function

SThemeColorBlocksBar()

Functions

Name Description

Public function

void

 

AddNewColorBlock

(
    FLinearColor Color,
    int32 InsertPosition
)

Adds a new color block to the Bar

Public function

void

 

AddRefreshCallback()

Adds a callback to the Color Theme that this bar has a pointer to.

Public function

void

 

Construct

(
    const FArguments& InArgs
)

Most panels do not create widgets as part of their implementation, so they do not need to implement a Construct()Most panels do not create widgets as part of their implementation, so they do not need to implement a Construct()

Public function

void

 

Refresh()

Rebuilds the entire bar, regenerating all the constituent color blocks

Public function

int32

 

RemoveColorBlock

(
    TSharedPtr< FLinearColor > ColorToR...
)

Public function

void

 

RemoveRefreshCallback()

Refresh Callbacks are used by Color Themes to notify widgets to refresh This removes a callback from the Color Theme that this bar has a pointer to

Public function

void

 

SetPlaceholderGrabOffset

(
    FVector2D GrabOffset
)

Overridden from SWidget

Name Description

Public function Virtual Const

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.

Public function Virtual

FChildren &#...

 

GetChildren()

All widgets must provide a way to access their children in a layout-agnostic way.

Public function Virtual Const

void

 

OnArrangeChildren

(
    const FGeometry& AllottedGeometry,
    FArrangedChildren& ArrangedChildre...
)

Panels arrange their children in a space described by the AllottedGeometry parameter.

Public function Virtual

void

 

OnDragEnter

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

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

 

OnDragOver

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

Called during drag and drop when the the mouse is being dragged over 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.

Classes

Name

Description

Public struct

FArguments