Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/Widget.h |
Include |
#include "Components/Widget.h" |
class UWidget : public UVisual
This is the base class for all wrapped Slate controls that are exposed to UObjects.
Name | Description | ||
---|---|---|---|
|
AccessibleBehavior |
Whether or not the widget is accessible, and how to describe it. |
|
|
AccessibleSummaryBehavior |
How to describe this widget when it's being presented through a summary of a parent widget. |
|
|
AccessibleSummaryText |
When AccessibleSummaryBehavior is set to Custom, this is the text that will be used to describe the widget. |
|
|
AccessibleSummaryTextDelegate |
An optional delegate that may be assigned in place of AccessibleSummaryText for creating a TAttribute |
|
|
AccessibleText |
When AccessibleBehavior is set to Custom, this is the text that will be used to describe the widget. |
|
|
AccessibleTextDelegate |
An optional delegate that may be assigned in place of AccessibleText for creating a TAttribute |
|
|
uint8: 1 |
bCanChildrenBeAccessible |
Whether or not children of this widget can appear as distinct accessible widgets. |
|
uint8: 1 |
bCreatedByConstructionScript |
Flag if the Widget was created from a blueprint |
|
uint8: 1 |
bExpandedInDesigner |
Stores the design time flag setting if the widget is expanded inside the designer |
|
uint8: 1 |
bHiddenInDesigner |
Stores the design time flag setting if the widget is hidden inside the designer |
|
uint8: 1 |
bIsEnabled |
Sets whether this widget can be modified interactively by the user |
|
bIsEnabledDelegate |
A bindable delegate for bIsEnabled |
|
|
uint8: 1 |
bIsVariable |
Allows controls to be exposed as variables in a blueprint. |
|
uint8: 1 |
bIsVolatile |
If true prevents the widget or its child's geometry or layout information from being cached. |
|
uint8: 1 |
bLockedInDesigner |
Stores the design time flag setting if the widget is locked inside the designer |
|
uint8: 1 |
bOverride_Cursor |
|
|
uint8: 1 |
bOverrideAccessibleDefaults |
These editor-only properties exist for two reasons: |
|
Clipping |
Controls how the clipping behavior of this widget. |
|
|
TEnumAsByte< EM... |
Cursor |
The cursor to show when the mouse is over the widget |
|
FlowDirectionPreference |
Allows you to set a new flow direction |
|
|
MyGCWidget |
The underlying SWidget contained in a SObjectWidget |
|
|
MyWidget |
The underlying SWidget. |
|
|
NativeBindings |
Native property bindings. |
|
|
TObjectPtr< cla... |
Navigation |
The navigation object for this widget is optionally created if the user has configured custom navigation rules for this widget in the widget designer. |
|
float |
RenderOpacity |
The opacity of the widget |
|
RenderTransform |
A bindable delegate for Cursor The render transform of the widget allows for arbitrary 2D transforms to be applied to the widget. |
|
|
RenderTransformPivot |
The render transform pivot controls the location about which transforms are applied. |
|
|
TObjectPtr< UPa... |
Slot |
The parent slot of the UWidget. |
|
ToolTipText |
Tooltip text to show when the user hovers over the widget with the mouse |
|
|
ToolTipTextDelegate |
A bindable delegate for ToolTipText |
|
|
TObjectPtr< UWi... |
ToolTipWidget |
Tooltip widget to show when the user hovers over the widget with the mouse |
|
ToolTipWidgetDelegate |
A bindable delegate for ToolTipWidget |
|
|
Visibility |
The visibility of the widget |
|
|
VisibilityDelegate |
A bindable delegate for Visibility |
|
|
TWeakObjectPtr<... |
WidgetGeneratedBy |
Stores a reference to the asset responsible for this widgets construction. |
|
TWeakObjectPtr<... |
WidgetGeneratedByClass |
Stores a reference to the class responsible for this widgets construction. |
Name | Description | |
---|---|---|
|
UWidget ( |
Name | Description | ||
---|---|---|---|
|
AddBinding ( |
||
|
BuildNavigation() |
Called by the owning user widget after the slate widget has been created. |
|
|
CanSafelyRouteCall() |
||
|
CanSafelyRouteEvent() |
||
|
CanSafelyRoutePaint() |
||
|
ConnectEditorData() |
Allows general fixups and connections only used at editor time. |
|
|
TOptional< f... |
ConvertFloatToOptionalFloat ( |
|
|
ConvertLinearColorToSlateColor ( |
||
|
ESlateVisibi... |
ConvertRuntimeToSerializedVisibility ( |
|
|
ConvertSerializedSizeParamToRuntime ( |
||
|
ConvertSerializedVisibilityToRuntime ( |
End Designer contextual events. |
|
|
ConvertVisibility ( |
TODO UMG Consider moving conversion functions into another class. Conversion functions |
|
|
TSharedRef< ... |
CreateDesignerOutline ( |
|
|
DeselectByDesigner() |
||
|
TSubclassOf<... |
FindBinderClassForDestination ( |
|
|
UWidget *... |
FindChildContainingDescendant |
|
|
ForceLayoutPrepass() |
Forces a pre-pass. |
|
|
ForceVolatile ( |
Sets the forced volatility of the widget. |
|
|
GetAccessibleSummaryText() |
Gets the accessible summary text from the underlying Slate accessible widget. |
|
|
GetAccessibleText() |
Gets the accessible text from the underlying Slate accessible widget |
|
|
TSharedPtr< ... |
GetAccessibleWidget() |
Gets the widget that accessibility properties should synchronize to. |
|
const FGeome... |
GetCachedGeometry() |
Gets the last geometry used to Tick the widget. |
|
TSharedPtr< ... |
GetCachedWidget() |
Gets the last created widget does not recreate the gc container for the widget if one is needed. |
|
const FStrin... |
GetCategoryName() |
Returns the category name of the widget |
|
EWidgetClipp... |
GetClipping() |
Gets the clipping state of this widget. |
|
GetDefaultFontName() |
||
|
EWidgetDesig... |
GetDesignerFlags() |
Gets the designer flags currently set on the widget. |
|
GetDesiredSize() |
Gets the widgets desired size. |
|
|
const FStrin... |
GetDisplayLabel() |
Returns the friendly name of the widget to display in the editor |
|
GetDisplayNameBase() |
Gets the base name used to generate the display label/name of this widget. |
|
|
UGameInstanc... |
GetGameInstance() |
Gets the game instance associated with this UI. |
|
TGameInstanc... |
GetGameInstance() |
Gets the game instance associated with this UI. |
|
GetIsEnabled() |
Gets the current enabled status of the widget |
|
|
GetLabelMetadata() |
Get Label Metadata, which may be as simple as a bit of string data to help identify an anonymous text block. |
|
|
GetLabelText() |
Gets the label to display to the user for this widget. |
|
|
GetLabelTextWithMetadata() |
Gets the label to display to the user for this widget, including any extra metadata like the text string for text. |
|
|
T * |
GetOwningLocalPlayer() |
Gets the local player associated with this UI cast to the template type. |
|
ULocalPlayer... |
GetOwningLocalPlayer() |
Gets the local player associated with this UI. |
|
TPlayerContr... |
GetOwningPlayer() |
Gets the player controller associated with this UI cast to the template type. |
|
APlayerContr... |
GetOwningPlayer() |
Gets the player controller associated with this UI. |
|
const FGeome... |
GetPaintSpaceGeometry() |
|
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
UPanelWidget... |
GetParent() |
Gets the parent widget |
|
float |
GetRenderOpacity() |
Gets the current visibility of the widget. |
|
float |
GetRenderTransformAngle() |
|
|
UObject *... |
GetSourceAssetOrClass() |
|
|
const FGeome... |
GetTickSpaceGeometry() |
|
|
ESlateVisibi... |
GetVisibility() |
Gets the current visibility of the widget. |
|
GetVisibilityInDesigner() |
This is an implementation detail that allows us to show and hide the widget in the designer regardless of the actual visibility state set by the user. |
|
|
UWorld * |
GetWorld() |
Begin UObject. |
|
HasAnyDesignerFlags ( |
Tests if any of the flags exist on this widget. |
|
|
HasAnyUserFocus() |
Returns true if this widget is focused by any user. |
|
|
HasFocusedDescendants() |
Returns true if any descendant widget is focused by any user. |
|
|
HasKeyboardFocus() |
Checks to see if this widget currently has the keyboard focus |
|
|
HasMouseCapture() |
Checks to see if this widget is the current mouse captor |
|
|
HasMouseCaptureByUser |
Checks to see if this widget is the current mouse captor |
|
|
HasUserFocus ( |
Returns true if this widget is focused by a specific user. |
|
|
HasUserFocusedDescendants ( |
Returns true if any descendant widget is focused by a specific user. |
|
|
InvalidateLayoutAndVolatility() |
Invalidates the widget from the view of a layout caching widget that may own this widget. |
|
|
IsChildOf ( |
Recurses up the list of parents and returns true if this widget is a descendant of the PossibleParent |
|
|
IsConstructed() |
Gets the last created widget does not recreate the gc container for the widget if one is needed. |
|
|
IsDesignTime() |
Returns if the widget is currently being displayed in the designer, it may want to display different data. |
|
|
IsEditorWidget() |
||
|
IsGeneratedName() |
Is the label generated or provided by the user? |
|
|
IsHovered() |
Returns true if the widget is currently being hovered by a pointer device |
|
|
IsLockedInDesigner() |
Is this widget locked in the designer UI |
|
|
IsVisible() |
Returns true if the widget is Visible, HitTestInvisible or SelfHitTestInvisible. |
|
|
IsVisibleInDesigner() |
Is the widget visible in the designer? If this widget is 'hidden in the designer' or a parent is, this widget will also return false here. |
|
|
OnBeginEditByDesigner() |
||
|
OnBindingChanged ( |
||
|
OnCreationFromPalette() |
Called by the palette after constructing a new widget, allows the widget to perform interesting default setup that we don't want to be UObject Defaults. |
|
|
OnDescendantDeselectedByDesigner ( |
||
|
OnDescendantSelectedByDesigner ( |
||
|
OnDeselectedByDesigner() |
||
|
OnDesignerChanged ( |
||
|
OnEndEditByDesigner() |
||
|
OnSelectedByDesigner() |
||
|
OnWidgetRebuilt() |
Function called after the underlying SWidget is constructed. |
|
|
TSharedRef< ... |
RebuildDesignWidget ( |
|
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
|
RemoveFromParent() |
Removes the widget from its parent widget. |
|
|
ResetCursor() |
Resets the cursor to use on the widget, removing any customization for it. |
|
|
SelectByDesigner() |
Begin Designer contextual events. |
|
|
SetAllNavigationRules ( |
Sets the widget navigation rules for all directions. |
|
|
SetCategoryName ( |
Sets the category name of the widget |
|
|
SetClipping ( |
Sets the clipping state of this widget. |
|
|
SetCursor ( |
Sets the cursor to show over the widget. |
|
|
SetDesignerFlags ( |
Sets the designer flags on the widget. |
|
|
SetDisplayLabel ( |
Sets the friendly name of the widget to display in the editor |
|
|
SetFocus() |
Sets the focus to this widget for the owning user |
|
|
SetIsEnabled ( |
Sets the current enabled status of the widget |
|
|
SetKeyboardFocus() |
Sets the focus to this widget. |
|
|
SetLockedInDesigner ( |
||
|
SetNavigationRuleBase ( |
Sets the widget navigation rules for a specific direction. |
|
|
SetNavigationRuleCustom ( |
Sets the widget navigation rules for a specific direction. |
|
|
SetNavigationRuleCustomBoundary ( |
Sets the widget navigation rules for a specific direction. |
|
|
SetNavigationRuleExplicit ( |
Sets the widget navigation rules for a specific direction. |
|
|
SetNavigationRuleInternal ( |
||
|
SetRenderOpacity ( |
Sets the visibility of the widget. |
|
|
SetRenderScale ( |
||
|
SetRenderShear ( |
||
|
SetRenderTransform ( |
||
|
SetRenderTransformAngle ( |
||
|
SetRenderTransformPivot ( |
||
|
SetRenderTranslation ( |
||
|
SetToolTip ( |
Sets a custom widget as the tooltip of the widget. |
|
|
SetToolTipText ( |
Sets the tooltip text for the widget. |
|
|
SetUserFocus ( |
Sets the focus to this widget for a specific user (if setting focus for the owning user, prefer SetFocus()) |
|
|
SetVisibility ( |
Sets the visibility of the widget. |
|
|
SynchronizeAccessibleData() |
Copy all accessible properties to the AccessibleWidgetData object |
|
|
SynchronizeProperties() |
Applies all properties to the native widget if possible. |
|
|
TSharedRef< ... |
TakeDerivedWidget ( |
|
|
TSharedRef< ... |
TakeWidget() |
Gets the underlying slate widget or constructs it if it doesn't exist. |
|
UpdateRenderTransform() |
||
|
ValidateCompiledDefaults ( |
Called at the end of Widget Blueprint compilation. |
Name | Description | ||
---|---|---|---|
|
FinishDestroy() |
Called to finish destroying the object. |
|
|
Modify ( |
Mark this object as modified, also mark the slot as modified. |
|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
|
PreSave ( |
Presave function. |
Name |
Description |
|
---|---|---|
|
FGenerateWidgetForObject |
|
|
FGenerateWidgetForString |
Events. |
|
FGetBool |
Common Bindings - If you add any new common binding, you must provide a UPropertyBinding for it. |
|
FGetCheckBoxState |
|
|
FGetFloat |
|
|
FGetInt32 |
|
|
FGetLinearColor |
|
|
FGetMouseCursor |
|
|
FGetSlateBrush |
|
|
FGetSlateColor |
|
|
FGetSlateVisibility |
|
|
FGetText |
|
|
FGetWidget |
|
|
FOnPointerEvent |
|
|
FOnReply |
Events. |
Name |
Description |
---|---|
ConstructMethodType |
Name |
Description |
---|---|
BinderClasses |
Name | Description | ||
---|---|---|---|
|
TSharedRef< ... |
BuildDesignTimeWidget ( |
Don't call this function in RebuildWidget any more. Override RebuildDesignWidget, and build the wrapper there; widgets that derive from Panel already do this. If you need to recreate the dashed outline you can use CreateDesignerOutline inside RebuildDesignWidget. |
|
const FSlate... |
GetEditorIcon() |
GetEditorIcon is deprecated. Please define widget icons in your style set in the form ClassIcon.MyWidget, and register your style through FClassIconFinder::(Un)RegisterIconSource |
|
PreSave ( |
Use version that takes FObjectPreSaveContext instead. |
|
|
SetNavigationRule ( |
SetNavigationRule is deprecated. Please use either SetNavigationRuleBase or SetNavigationRuleExplicit or SetNavigationRuleCustom or SetNavigationRuleCustomBoundary. |