Choose your operating system:
Windows
macOS
Linux
| SCompoundWidget | ||||||
| FGCObject
|
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Slate/SObjectWidget.h |
Include |
#include "Slate/SObjectWidget.h" |
class SObjectWidget :
public SCompoundWidget,
public FGCObject
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.
Name | Description | ||
---|---|---|---|
|
UUserWidget ... |
WidgetObject |
The UWidget that created this SObjectWidget who needs to be kept alive. |
Name | Description | |
---|---|---|
|
~SObjectWidget() |
Name | Description | ||
---|---|---|---|
|
Construct ( |
||
|
UUserWidget ... |
GetWidgetObject() |
|
|
OnDragCancelled ( |
||
|
ResetWidget() |
||
|
SetPadding ( |
Name | Description | ||
---|---|---|---|
|
ComputeDesiredSize ( |
Compute the ideal size necessary to display this widget. |
|
|
IsInteractable() |
||
|
OnAnalogValueChanged ( |
Called when an analog value changes on a button that supports analog |
|
|
OnCursorQuery ( |
The system asks each widget under the mouse to provide a cursor. This event is bubbled. |
|
|
OnDragDetected ( |
Called when Slate detects that a widget started to be dragged. |
|
|
OnDragEnter ( |
DRAG AND DROP (DragDrop) Called during drag and drop when the drag enters a widget. |
|
|
OnDragLeave ( |
Called during drag and drop when the drag leaves a widget. |
|
|
OnDragOver ( |
Called during drag and drop when the the mouse is being dragged over a widget. |
|
|
OnDrop ( |
Called when the user is dropping something onto a widget; terminates drag and drop. |
|
|
OnFocusChanging ( |
Called whenever a focus path is changing on all the widgets within the old and new focus paths |
|
|
OnFocusLost ( |
Called when this widget loses focus. This event does not bubble. |
|
|
OnFocusReceived ( |
KEY INPUT Called when focus is given to this widget. This event does not bubble. |
|
|
OnKeyChar ( |
Called after a character is entered while this widget has keyboard focus |
|
|
OnKeyDown |
Called after a key is pressed when this widget has focus (this event bubbles if not handled) |
|
|
OnKeyUp |
Called after a key is released when this widget has focus |
|
|
OnMotionDetected ( |
Called when motion is detected (controller or device) e.g. Someone tilts or shakes their controller. |
|
|
OnMouseButtonDoubleClick ( |
Called when a mouse button is double clicked. Override this in derived classes. |
|
|
OnMouseButtonDown ( |
MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. |
|
|
OnMouseButtonUp ( |
The system calls this method to notify the widget that a mouse button was release within it. |
|
|
OnMouseCaptureLost ( |
Called when this widget had captured the mouse, but that capture has been revoked for some reason. |
|
|
OnMouseEnter ( |
The system will use this event to notify a widget that the cursor has entered it. |
|
|
OnMouseLeave ( |
The system will use this event to notify a widget that the cursor has left it. |
|
|
OnMouseMove ( |
The system calls this method to notify the widget that a mouse moved within it. |
|
|
OnMouseWheel ( |
Called when the mouse wheel is spun. This event is bubbled. |
|
|
FNavigationR... |
OnNavigation ( |
Called when navigation is requested e.g. Left Joystick, Direction Pad, Arrow Keys can generate navigation events. |
|
OnPaint ( |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
|
|
OnPreviewKeyDown |
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. |
|
|
OnPreviewMouseButtonDown ( |
Just like OnMouseButtonDown, but tunnels instead of bubbling. |
|
|
OnTouchEnded ( |
Called when a touchpad touch is ended (finger lifted) |
|
|
OnTouchForceChanged ( |
Called when a touchpad touch force changes |
|
|
OnTouchGesture ( |
TOUCH and GESTURES Called when the user performs a gesture on trackpad. This event is bubbled. |
|
|
OnTouchMoved ( |
Called when a touchpad touch is moved (finger moved) |
|
|
OnTouchStarted ( |
Called when a touchpad touch is started (finger down) |
|
|
SupportsKeyboardFocus() |
Checks to see if this widget supports keyboard focus. Override this in derived classes. |
|
|
Tick ( |
SWidget Tick override. |
Name | Description | ||
---|---|---|---|
|
AddReferencedObjects ( |
Pure virtual that must be overloaded by the inheriting class. |
|
|
GetReferencerName() |
Use this method to report a name for your referencer. |
Name |
Description |
|
---|---|---|
|
FArguments |