Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Tools
Inheritance Hierarchy
- ToolCompatibleWidget
- TToolCompatibleMixin
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Tools/ToolCompatible.h |
| Include | #include "Tools/ToolCompatible.h" |
Syntax
template<typename ToolCompatibleWidget>
class TToolCompatibleMixin : public ToolCompatibleWidget
Remarks
Mixin that handles complexity of tool support for you. Calling base widget methods only when a tool does not handle them if appropriate.
Note: Widget must have overriden SWidget::OnPaint to be protected at a minimum to use. Also currently does not support touch or gamepad navigation.
@TODO: Does not currently allow for ArrangeChildren support this might be useful for rendering widgets on top of the tool supporting widget? A general overlay that accepts addtional widgets to render on top of the tool supporting widget might be interesting. For instance, an editable preview graph / editor of the selected widget might work this way (Such as for graph nodes).
Variables
| Type | Name | Description | |
|---|---|---|---|
| TWeakPtr< IToolkit > | ParentToolkit | Toolkit containing this tool compatible widget. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TToolCompatibleMixin
(
Args&&... args |
Forwarding constructor to ensure mixin members always initialized (Currently none) |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TOptional< EMouseCursor::Type > | GetCursor () |
||
| TSharedPtr< IToolkit > | Use this if your widget is created after your editor's mode manager | ||
| FWidgetModeManager * | Helper method for accessing our toolkit's widget mode tool manager | ||
| FReply | OnDragDetected
(
const FGeometry& MyGeometry, |
||
| void | OnFocusLost
(
const FFocusEvent& InFocusEvent |
||
| FReply | OnFocusReceived
(
const FGeometry& MyGeometry, |
||
| FReply | OnKeyChar
(
const FGeometry& MyGeometry, |
||
| FReply | |||
| FReply | |||
| FReply | OnMouseButtonDoubleClick
(
const FGeometry& InMyGeometry, |
||
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
||
| FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
||
| void | OnMouseCaptureLost
(
const FCaptureLostEvent& CaptureLostEvent |
||
| void | OnMouseEnter
(
const FGeometry& MyGeometry, |
||
| void | OnMouseLeave
(
const FPointerEvent& MouseEvent |
||
| FReply | OnMouseMove
(
const FGeometry& MyGeometry, |
||
| FReply | OnMouseWheel
(
const FGeometry& MyGeometry, |
||
| int32 | OnPaint
(
const FPaintArgs& Args, |
||
| void | SetParentToolkit
(
TSharedPtr< IToolkit > InParentToolkit |
Use this if your widget is created after your editor's mode manager | |
| void |