Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/Widget.h |
Include |
#include "Components/Widget.h" |
class UWidget :
public UVisual,
public INotifyFieldValueChanged
This is the base class for all wrapped Slate controls that are exposed to UObjects.
Name | Description | ||
---|---|---|---|
|
ESlateAccessibl... |
AccessibleBehavior |
Whether or not the widget is accessible, and how to describe it. |
|
ESlateAccessibl... |
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 |
|
bIsEnabledDelegate |
A bindable delegate for bIsEnabled |
|
|
uint8: 1 |
bIsManagedByGameViewportSubsystem |
Cached value that indicate if the widget was added to the GameViewportSubsystem. |
|
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: |
|
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. |
|
TObjectPtr< UPa... |
Slot |
The parent slot of the UWidget. |
|
ToolTipTextDelegate |
A bindable delegate for ToolTipText |
|
|
ToolTipWidgetDelegate |
A bindable delegate for ToolTipWidget |
|
|
friend |
UGameViewportSubsystem |
|
|
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 | ||
---|---|---|---|
|
bool |
AddBinding ( |
|
|
void |
BroadcastFieldValueChanged ( |
|
|
void |
BuildNavigation() |
Called by the owning user widget after the slate widget has been created. |
|
bool |
CanSafelyRouteCall() |
|
|
bool |
CanSafelyRouteEvent() |
|
|
bool |
CanSafelyRoutePaint() |
|
|
void |
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 ( |
|
|
void |
CreatedFromPalette() |
Called by the palette after constructing a new widget. |
|
void |
DeselectByDesigner() |
|
|
TSubclassOf<... |
FindBinderClassForDestination ( |
|
|
UWidget *... |
FindChildContainingDescendant |
|
|
void |
ForceLayoutPrepass() |
Forces a pre-pass. |
|
void |
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. |
|
EMouseCursor... |
GetCursor() |
Sets the cursor to show over the widget. |
|
GetDefaultFontName() |
||
|
EWidgetDesig... |
GetDesignerFlags() |
Gets the designer flags currently set on the widget. |
|
FVector2D |
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. |
|
|
EFlowDirecti... |
GetFlowDirectionPreference() |
Gets the flow direction preference of the widget |
|
UGameInstanc... |
GetGameInstance() |
Gets the game instance associated with this UI. |
|
TGameInstanc... |
GetGameInstance() |
Gets the game instance associated with this UI. |
|
bool |
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. |
|
const FWidge... |
GetRenderTransform() |
|
|
float |
GetRenderTransformAngle() |
|
|
FVector2D |
GetRenderTransformPivot() |
|
|
UObject *... |
GetSourceAssetOrClass() |
|
|
const FGeome... |
GetTickSpaceGeometry() |
|
|
UWidget *... |
GetToolTip() |
|
|
GetToolTipText() |
||
|
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() |
|
|
bool |
HasAnyDesignerFlags ( |
Tests if any of the flags exist on this widget. |
|
bool |
HasAnyUserFocus() |
Returns true if this widget is focused by any user. |
|
bool |
HasFocusedDescendants() |
Returns true if any descendant widget is focused by any user. |
|
bool |
HasKeyboardFocus() |
Checks to see if this widget currently has the keyboard focus |
|
bool |
HasMouseCapture() |
Checks to see if this widget is the current mouse captor |
|
bool |
HasMouseCaptureByUser ( |
Checks to see if this widget is the current mouse captor |
|
bool |
HasUserFocus ( |
Returns true if this widget is focused by a specific user. |
|
bool |
HasUserFocusedDescendants ( |
Returns true if any descendant widget is focused by a specific user. |
|
void |
InvalidateLayoutAndVolatility() |
Invalidates the widget from the view of a layout caching widget that may own this widget. |
|
bool |
IsChildOf ( |
Recurses up the list of parents and returns true if this widget is a descendant of the PossibleParent |
|
bool |
IsConstructed() |
Gets the last created widget does not recreate the gc container for the widget if one is needed. |
|
bool |
IsDesignTime() |
Returns if the widget is currently being displayed in the designer, it may want to display different data. |
|
bool |
IsEditorWidget() |
|
|
bool |
IsGeneratedName() |
Is the label generated or provided by the user? |
|
bool |
IsHovered() |
Returns true if the widget is currently being hovered by a pointer device |
|
bool |
IsInViewport() |
|
|
bool |
IsLockedInDesigner() |
Is this widget locked in the designer UI |
|
bool |
IsPreviewTime() |
|
|
bool |
IsRendered() |
Returns true if the widget is Visible, HitTestInvisible or SelfHitTestInvisible and the Render Opacity is greater than 0. |
|
bool |
IsVisible() |
Returns true if the widget is Visible, HitTestInvisible or SelfHitTestInvisible. |
|
bool |
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. |
|
void |
K2_AddFieldValueChangedDelegate ( |
|
|
void |
K2_BroadcastFieldValueChanged ( |
|
|
void |
K2_RemoveFieldValueChangedDelegate ( |
|
|
void |
OnBeginEditByDesigner() |
|
|
void |
OnBindingChanged ( |
|
|
void |
OnCreationFromPalette() |
Called after constructing a new widget from the palette. |
|
void |
OnDescendantDeselectedByDesigner ( |
|
|
void |
OnDescendantSelectedByDesigner ( |
|
|
void |
OnDeselectedByDesigner() |
|
|
void |
OnDesignerChanged ( |
|
|
void |
OnEndEditByDesigner() |
|
|
void |
OnSelectedByDesigner() |
|
|
void |
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. |
|
void |
RemoveFromParent() |
Removes the widget from its parent widget. |
|
void |
ResetCursor() |
Resets the cursor to use on the widget, removing any customization for it. |
|
void |
SelectByDesigner() |
Begin Designer contextual events. |
|
void |
SetAllNavigationRules ( |
Sets the widget navigation rules for all directions. |
|
void |
SetCategoryName ( |
Sets the category name of the widget |
|
void |
SetClipping ( |
Sets the clipping state of this widget. |
|
void |
SetCursor ( |
Sets the cursor to show over the widget. |
|
void |
SetDesignerFlags ( |
Sets the designer flags on the widget. |
|
void |
SetDisplayLabel ( |
Sets the friendly name of the widget to display in the editor |
|
void |
SetFlowDirectionPreference ( |
Sets the flow direction preference of the widget |
|
void |
SetFocus() |
Sets the focus to this widget for the owning user |
|
void |
SetIsEnabled ( |
Sets the current enabled status of the widget |
|
void |
SetKeyboardFocus() |
Sets the focus to this widget. |
|
void |
SetLockedInDesigner ( |
|
|
void |
SetNavigationRuleBase ( |
Sets the widget navigation rules for a specific direction. |
|
void |
SetNavigationRuleCustom ( |
Sets the widget navigation rules for a specific direction. |
|
void |
SetNavigationRuleCustomBoundary ( |
Sets the widget navigation rules for a specific direction. |
|
void |
SetNavigationRuleExplicit ( |
Sets the widget navigation rules for a specific direction. |
|
void |
SetNavigationRuleInternal ( |
|
|
void |
SetRenderOpacity ( |
Sets the visibility of the widget. |
|
void |
SetRenderScale ( |
|
|
void |
SetRenderShear ( |
|
|
void |
SetRenderTransform ( |
|
|
void |
SetRenderTransformAngle ( |
|
|
void |
SetRenderTransformPivot ( |
|
|
void |
SetRenderTranslation ( |
|
|
void |
SetToolTip ( |
Sets a custom widget as the tooltip of the widget. |
|
void |
SetToolTipText ( |
Sets the tooltip text for the widget. |
|
void |
SetUserFocus ( |
Sets the focus to this widget for a specific user (if setting focus for the owning user, prefer SetFocus()) |
|
void |
SetVisibility ( |
Sets the visibility of the widget. |
|
void |
SetVisibilityInternal ( |
|
|
void |
SynchronizeAccessibleData() |
Copy all accessible properties to the AccessibleWidgetData object |
|
void |
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. |
|
void |
UpdateRenderTransform() |
|
|
void |
ValidateCompiledDefaults ( |
Called at the end of Widget Blueprint compilation. |
Name | Description | ||
---|---|---|---|
|
void |
BeginDestroy() |
Called before destroying the object. |
|
void |
FinishDestroy() |
Called to finish destroying the object. |
|
bool |
Modify ( |
Mark this object as modified, also mark the slot as modified. |
|
void |
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
void |
PreSave ( |
Presave function. |
Name | Description | ||
---|---|---|---|
|
FDelegateHan... |
AddFieldValueChangedDelegate ( |
Add a delegate that will be notified when the FieldId is value changed. |
|
const ::UE::... |
GetFieldNotificationDescriptor() |
|
|
int32 |
RemoveAllFieldValueChangedDelegates ( |
Remove all the delegate that are bound to the specified UserObject. |
|
int32 |
RemoveAllFieldValueChangedDelegates ( |
Remove all the delegate that are bound to the specified Field and UserObject. |
|
bool |
RemoveFieldValueChangedDelegate ( |
Remove a delegate that was added. |
Name |
Description |
|
---|---|---|
|
FFieldNotificationClassDescriptor |
|
|
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 | ||
---|---|---|---|
|
uint8: 1 |
bIsEnabled |
Direct access to bIsEnabled is deprecated. Please use the getter or setter. |
|
EWidgetClipping |
Clipping |
Direct access to Clipping is deprecated. Please use the getter or setter. |
|
TEnumAsByte< EM... |
Cursor |
Direct access to Cursor is deprecated. Please use the getter or setter. |
|
EFlowDirectionP... |
FlowDirectionPreference |
Direct access to FlowDirectionPreference is deprecated. Please use the getter or setter. |
|
float |
RenderOpacity |
Direct access to RenderOpacity is deprecated. Please use the getter or setter. |
|
RenderTransform |
Direct access to RenderTransform is deprecated. Please use the getter or setter. |
|
|
FVector2D |
RenderTransformPivot |
Direct access to RenderTransformPivot is deprecated. Please use the getter or setter. |
|
ToolTipText |
Direct access to ToolTipText is deprecated. Please use the getter or setter. |
|
|
TObjectPtr< UWi... |
ToolTipWidget |
Direct access to ToolTipWidget is deprecated. Please use the getter or setter. |
|
ESlateVisibilit... |
Visibility |
Direct access to Visibility is deprecated. Please use the getter or setter. |
Name | Description | ||
---|---|---|---|
|
void |
SetNavigationRule ( |
SetNavigationRule is deprecated. Please use either SetNavigationRuleBase or SetNavigationRuleExplicit or SetNavigationRuleCustom or SetNavigationRuleCustomBoundary. |