Navigation
API > API/Developer > API/Developer/ToolWidgets > API/Developer/ToolWidgets/Dialog > API/Developer/ToolWidgets/Dialog/SCustomDialog
Inheritance Hierarchy
- FSlateBaseNamedArgs
- TSlateBaseNamedArgs
- SCustomDialog::FArguments
References
| Module | ToolWidgets |
| Header | /Engine/Source/Developer/ToolWidgets/Public/Dialog/SCustomDialog.h |
| Include | #include "Dialog/SCustomDialog.h" |
Syntax
struct FArguments : public TSlateBaseNamedArgs< SCustomDialog >
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SWidget > | _DialogContent | Content for the dialog (deprecated - use Content instead) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FArguments () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| WidgetArgsType & | AutoCloseOnButtonPress
(
bool InArg |
Whether to automatically close this window when any button is pressed (default: true) | |
| NamedSlotProperty< FArguments > | Custom widget placed before the buttons | ||
| WidgetArgsType & | ButtonAreaPadding
(
const TAttribute< FMargin >& InAttribute |
Padding to apply around the layout holding the buttons (default: {20,0,0,0}) | |
| WidgetArgsType & | The buttons that this dialog should have. One or more buttons must be added. | ||
| NamedSlotProperty< FArguments > | Content () |
The content to display above the button; icon is optionally created to the left of it. | |
| WidgetArgsType & | ContentAreaPadding
(
const TAttribute< FMargin >& InAttribute |
Padding to apply to DialogContent - you can use it to move away from the icon (default: {0,0,0,0}) | |
| WidgetArgsType & | DialogContent
(
TSharedPtr< SWidget > InArg |
||
| WidgetArgsType & | HAlignButtonBox
(
EHorizontalAlignment InArg |
HAlign to use for Button Box slot (default: HAlign_Left) | |
| WidgetArgsType & | HAlignContent
(
EHorizontalAlignment InArg |
HAlign to use for Content slot (default: HAlign_Left) | |
| WidgetArgsType & | HAlignIcon
(
EHorizontalAlignment InArg |
Alignment of icon (default: HAlign_Left) | |
| WidgetArgsType & | Icon
(
const TAttribute< const FSlateBrush* >& InAttribute |
Optional icon to display (default: empty, translucent) | |
| WidgetArgsType & | IconDesiredSizeOverride
(
const TAttribute< TOptional< FVector2D > >& InAttribute |
When specified, ignore the brushes size and report the DesiredSizeOverride as the desired image size (default: use icon size) | |
| WidgetArgsType & | OnClosed
(
const FSimpleDelegate& InDelegate |
Event triggered when the dialog is closed, either because one of the buttons is pressed, or the windows is closed. | |
| WidgetArgsType & | RootPadding
(
const TAttribute< FMargin >& InAttribute |
Padding to apply to the widget embedded in the window, i.e. to all widgets contained in the window (default: {4,4,4,4} ) | |
| WidgetArgsType & | ScrollBoxMaxHeight
(
int32 InArg |
Max height for the scroll box (default: 300) | |
| WidgetArgsType & | Title to display for the dialog. | ||
| WidgetArgsType & | UseScrollBox
(
bool InArg |
Should this dialog use a scroll box for over-sized content? (default: true) | |
| WidgetArgsType & | VAlignButtonBox
(
EVerticalAlignment InArg |
VAlign to use for Button Box slot (default: VAlign_Center) | |
| WidgetArgsType & | VAlignContent
(
EVerticalAlignment InArg |
VAlign to use for Content slot (default: VAlign_Center) | |
| WidgetArgsType & | VAlignIcon
(
EVerticalAlignment InArg |
Alignment of icon (default: VAlign_Center) | |
| WidgetArgsType & | WindowArguments
(
SWindow::FArguments InArg |
Provides default values for SWindow::FArguments not overriden by SCustomDialog. |
Typedefs
| Name | Description |
|---|---|
| WidgetArgsType |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| FArguments & | Use Icon() instead |