UWidgetToolsContext

[UWidgetToolsContext](API\Editor\EditorInteractiveToolsFramework\ToolContexts\UWidgetToolsContext) extends [UModeManagerInteractiveToolsContext](API\Editor\EditorInteractiveToolsFramework\UModeManagerInteractiveToolsCont-) with methods needed for tools operating on general widgets that do not have a viewport.

Unreal Engine C++ API Reference > Editor > EditorInteractiveToolsFramework > ToolContexts

Inheritance Hierarchy

References

   
Module EditorInteractiveToolsFramework
Header /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/ToolContexts/WidgetToolsContext.h
Include #include "ToolContexts/WidgetToolsContext.h"

Syntax

class UWidgetToolsContext : public [UModeManagerInteractiveToolsContext](API\Editor\EditorInteractiveToolsFramework\UModeManagerInteractiveToolsCont-)  

Remarks

UWidgetToolsContext extends UModeManagerInteractiveToolsContext with methods needed for tools operating on general widgets that do not have a viewport.

Functions

Type Name Description
bool OnDragDetected ( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )  
bool OnKeyChar ( const FGeometry& MyGeometry, const FCharacterEvent& InCharacter... )  
bool OnKeyDown ( const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent )  
bool OnKeyUp ( const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent )  
bool OnMouseButtonDoubleClick ( const FGeometry& InMyGeometry, const FPointerEvent& InMouseEvent )  
bool OnMouseButtonDown ( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )  
bool OnMouseButtonUp ( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )  
void OnMouseCaptureLost ( const FCaptureLostEvent& CaptureLo... )  
bool OnMouseMove ( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )  
bool OnMouseWheel ( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent )  
int32 OnPaint ( const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawEl..., int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled )  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library