Class WidgetSwitcher
A widget switcher is like a tab control, but without tabs. At most one widget is visible at time.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.UMG
Assembly: UE4DotNet.dll
Syntax
public class WidgetSwitcher : PanelWidget
Properties
| Improve this Doc View SourceActiveWidgetIndex
The slot index to display
Declaration
public int ActiveWidgetIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static WidgetSwitcher DefaultObject { get; }
Property Value
Type | Description |
---|---|
WidgetSwitcher |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceGetActiveWidget()
Get the reference of the currently active widget
Declaration
public Widget GetActiveWidget()
Returns
Type | Description |
---|---|
Widget |
GetActiveWidgetIndex()
Gets the slot index of the currently active widget
Declaration
public int GetActiveWidgetIndex()
Returns
Type | Description |
---|---|
System.Int32 |
GetNumWidgets()
Gets the number of widgets that this switcher manages.
Declaration
public int GetNumWidgets()
Returns
Type | Description |
---|---|
System.Int32 |
GetWidgetAtIndex(Int32)
Get a widget at the provided index
Declaration
public Widget GetWidgetAtIndex(int Index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | Index |
Returns
Type | Description |
---|---|
Widget |
New(UObject, Name)
Spawn an object of this class
Declaration
public static WidgetSwitcher New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
WidgetSwitcher |
SetActiveWidget(Widget)
Activates the widget and makes it the active index.
Declaration
public void SetActiveWidget(Widget Widget)
Parameters
Type | Name | Description |
---|---|---|
Widget | Widget |
SetActiveWidgetIndex(Int32)
Activates the widget at the specified index.
Declaration
public void SetActiveWidgetIndex(int Index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | Index |
Operators
| Improve this Doc View SourceImplicit(IntPtr to WidgetSwitcher)
Convert from IntPtr to UObject
Declaration
public static implicit operator WidgetSwitcher(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
WidgetSwitcher |