Navigation
API > API/Plugins > API/Plugins/ModelingEditorUI > API/Plugins/ModelingEditorUI/ModelingWidgets
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SDraggableBox
References
| Module | ModelingEditorUI |
| Header | /Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/ModelingEditorUI/Public/ModelingWidgets/SDraggableBox.h |
| Include | #include "ModelingWidgets/SDraggableBox.h" |
Syntax
class SDraggableBox : public SCompoundWidget
Remarks
A widget for the draggable box itself, which requires its parent to handle its positioning in response to the drag.
Users probably shouldn't use this class directly; rather, they should use SDraggableBoxOverlay, which will put its contents into a draggable box and properly handle the dragging without the user having to set it up.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SWidget > | InnerWidget | ||
| FOnDragComplete | OnDragComplete | ||
| FVector2D | ScreenSpaceOffsetOfGrab | Remembers the point in the box that we grabbed (on click, rather than when the drag was confirmed) |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Construct
(
const FArguments& InArgs |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FReply | OnDragDetected
(
const FGeometry& MyGeometry, |
Called when Slate detects that a widget started to be dragged. | |
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
SWidget overrides necessary for box to be draggable. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Typedefs
| Name | Description |
|---|---|
| FOnDragComplete |