Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Slate
Inheritance Hierarchy
- SCompoundWidget
- FGCObject
- SObjectWidget
- SObjectTableRow
- SCommonButtonTableRow
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Slate/SObjectWidget.h |
Include | #include "Slate/SObjectWidget.h" |
Syntax
class SObjectWidget :
public SCompoundWidget,
public FGCObject
Remarks
The SObjectWidget allows UMG to insert an SWidget into the hierarchy that manages the lifetime of the UMG UWidget that created it. Once the SObjectWidget is destroyed it frees the reference it holds to The UWidget allowing it to be garbage collected. It also forwards the slate events to the UUserWidget so that it can forward them to listeners.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TObjectPtr< UUserWidget > | WidgetObject | The UWidget that created this SObjectWidget who needs to be kept alive. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Construct
(
const FArguments& InArgs, |
|
![]() ![]() |
UUserWidget * | ||
![]() |
void | OnDragCancelled
(
const FDragDropEvent& DragDropEvent, |
|
![]() |
void | ResetWidget () |
|
![]() |
void | SetPadding
(
const TAttribute< FMargin >& InMargin |
Overridden from SWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
FVector2D | ComputeDesiredSize
(
float LayoutScaleMultiplier |
Compute the ideal size necessary to display this widget. |
![]() ![]() ![]() |
bool | ||
![]() ![]() |
FReply | OnAnalogValueChanged
(
const FGeometry& MyGeometry, |
Called when an analog value changes on a button that supports analog |
![]() ![]() ![]() |
FCursorReply | OnCursorQuery
(
const FGeometry& MyGeometry, |
The system asks each widget under the mouse to provide a cursor. This event is bubbled. |
![]() ![]() |
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. |
![]() ![]() |
void | OnFocusChanging
(
const FWeakWidgetPath& PreviousFocusPath, |
Called whenever a focus path is changing on all the widgets within the old and new focus paths |
![]() ![]() |
void | OnFocusLost
(
const FFocusEvent& InFocusEvent |
Called when this widget loses focus. This event does not bubble. |
![]() ![]() |
FReply | OnFocusReceived
(
const FGeometry& MyGeometry, |
KEY INPUT Called when focus is given to this widget. This event does not bubble. |
![]() ![]() |
FReply | OnKeyChar
(
const FGeometry& MyGeometry, |
Called after a character is entered while this widget has keyboard focus |
![]() ![]() |
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 | OnMotionDetected
(
const FGeometry& MyGeometry, |
Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller. |
![]() ![]() |
FReply | OnMouseButtonDoubleClick
(
const FGeometry& InMyGeometry, |
Called when a mouse button is double clicked. Override this in derived classes. |
![]() ![]() |
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 | OnMouseCaptureLost
(
const FCaptureLostEvent& CaptureLostEvent |
Called when this widget had captured the mouse, but that capture has been revoked for some reason. |
![]() ![]() |
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. |
![]() ![]() |
FReply | OnMouseWheel
(
const FGeometry& MyGeometry, |
Called when the mouse wheel is spun. This event is bubbled. |
![]() ![]() |
FNavigationReply | OnNavigation
(
const FGeometry& MyGeometry, |
Called when navigation is requested e.g. Left Joystick, Direction Pad, Arrow Keys can generate navigation events. |
![]() ![]() ![]() |
int32 | OnPaint
(
const FPaintArgs& Args, |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
![]() ![]() |
FReply | OnPreviewKeyDown
(
const FGeometry& MyGeometry, |
Called after a key is pressed when this widget or a child of this widget has focus If a widget handles this event, OnKeyDown will not be passed to the focused widget. |
![]() ![]() |
FReply | OnPreviewMouseButtonDown
(
const FGeometry& MyGeometry, |
Just like OnMouseButtonDown, but tunnels instead of bubbling. |
![]() ![]() |
FReply | OnTouchEnded
(
const FGeometry& MyGeometry, |
Called when a touchpad touch is ended (finger lifted) |
![]() ![]() |
FReply | OnTouchForceChanged
(
const FGeometry& MyGeometry, |
Called when a touchpad touch force changes |
![]() ![]() |
FReply | OnTouchGesture
(
const FGeometry& MyGeometry, |
TOUCH and GESTURES Called when the user performs a gesture on trackpad. This event is bubbled. |
![]() ![]() |
FReply | OnTouchMoved
(
const FGeometry& MyGeometry, |
Called when a touchpad touch is moved (finger moved) |
![]() ![]() |
FReply | OnTouchStarted
(
const FGeometry& MyGeometry, |
Called when a touchpad touch is started (finger down) |
![]() ![]() ![]() |
bool | Checks to see if this widget supports keyboard focus. Override this in derived classes. | |
![]() ![]() |
void | SWidget Tick override. |
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 |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FArguments |