Navigation
API > API/Editor > API/Editor/UMGEditor > API/Editor/UMGEditor/Designer
Inheritance Hierarchy
- SDesignSurface
- FGCObject
- IUMGDesigner
- SDesignerView
References
| Module | UMGEditor |
| Header | /Engine/Source/Editor/UMGEditor/Public/Designer/SDesignerView.h |
| Include | #include "Designer/SDesignerView.h" |
Syntax
class SDesignerView :
public SDesignSurface,
public FGCObject,
public IUMGDesigner
Remarks
The designer for widgets. Allows for laying out widgets in a drag and drop environment.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | Construct
(
const FArguments& InArgs, |
||
| TSharedRef< SWidget > | |||
| void | DrawResolution
(
const FDebugResolution& Resolution, |
||
| void | |||
| EActiveTimerReturnType | EnsureTick
(
double InCurrentTime, |
||
| FOptionalSize | The height of the preview screen for the UI | ||
| FOptionalSize | The width of the preview screen for the UI | ||
| float | Gets the DPI scale that would be applied given the current preview width and height | ||
| FOptionalSize | The height of the preview widget for the UI | ||
| FOptionalSize | The width of the preview widget for the UI | ||
| const UWidgetEditingProjectSettings * | |||
| FVector2D | |||
| void | Register
(
TSharedRef< FDesignerExtension > Extension |
||
| void | SetPreviewAreaSize
(
int32 Width, |
Set the size of the preview screen for the UI | |
| void | Unregister
(
TSharedRef< FDesignerExtension > Extension |
Overridden from SDesignSurface
| Type | Name | Description | |
|---|---|---|---|
| FSlateRect | |||
| int32 | |||
| float | |||
| int32 | |||
| void | OnPaintBackground
(
const FGeometry& AllottedGeometry, |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FReply | OnDragDetected
(
const FGeometry& MyGeometry, |
Called when Slate detects that a widget started to be dragged. | |
| void | OnDragEnter
(
const FGeometry& MyGeometry, |
DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget. | |
| void | OnDragLeave
(
const FDragDropEvent& DragDropEvent |
Called during drag and drop when the drag leaves a widget. | |
| FReply | OnDragOver
(
const FGeometry& MyGeometry, |
Called during drag and drop when the the mouse is being dragged over a widget. | |
| FReply | OnDrop
(
const FGeometry& MyGeometry, |
Called when the user is dropping something onto a widget; terminates drag and drop. | |
| FReply | Called after a key is pressed when this widget has focus (this event bubbles if not handled) | ||
| FReply | Called after a key is released when this widget has focus | ||
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. | |
| FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was release within it. | |
| void | OnMouseEnter
(
const FGeometry& MyGeometry, |
The system will use this event to notify a widget that the cursor has entered it. | |
| void | OnMouseLeave
(
const FPointerEvent& MouseEvent |
The system will use this event to notify a widget that the cursor has left it. | |
| FReply | OnMouseMove
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse moved within it. | |
| void | Ticks this widget with Geometry. |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| void | AddReferencedObjects
(
FReferenceCollector& Collector |
Pure virtual that must be overloaded by the inheriting class. | |
| FString | Overload this method to report a name for your referencer |
Overridden from IUMGDesigner
| Type | Name | Description | |
|---|---|---|---|
| FGeometry | |||
| float | |||
| FWidgetReference | |||
| const TSet< FWidgetReference > & | |||
| ETransformMode::Type | |||
| bool | GetWidgetGeometry
(
const UWidget* PreviewWidget, |
Gets the previous frames widget geometry. | |
| bool | GetWidgetGeometry
(
const FWidgetReference& Widget, |
Gets the previous frames widget geometry. | |
| bool | GetWidgetParentGeometry
(
const FWidgetReference& Widget, |
Gets the previous frames widget geometry of the parent of the provided widget. | |
| FGeometry | MakeGeometryWindowLocal
(
const FGeometry& WidgetGeometry |
Takes geometry and adds the inverse of the window transform to get the geometry in the space of the window. | |
| void | MarkDesignModifed
(
bool bRequiresRecompile |
Marks the designer content as being modified. | |
| void | Removes the last message from the message stack. | ||
| void | PushDesignerMessage
(
const FText& Message |
Push a new designer message to show at the bottom of the screen. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Constants
| Name | Description |
|---|---|
| ConfigSectionName | |
| DefaultPreviewOverrideName |