Class WidgetBlueprintLibrary
Inheritance
System.Object
WidgetBlueprintLibrary
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)
Assembly: UE4DotNet.dll
public class WidgetBlueprintLibrary : BlueprintFunctionLibrary
Properties
|
Improve this Doc
View Source
Get UE4 Default Object for this Class
Declaration
public static WidgetBlueprintLibrary DefaultObject { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public static Class StaticClass { get; }
Property Value
Methods
|
Improve this Doc
View Source
Cancels any current drag drop operation.
Declaration
public static void CancelDragDrop()
|
Improve this Doc
View Source
Declaration
public static EventReply CaptureJoystick(EventReply Reply, Widget CapturingWidget, bool bInAllJoysticks)
Parameters
Type |
Name |
Description |
EventReply |
Reply |
|
Widget |
CapturingWidget |
|
System.Boolean |
bInAllJoysticks |
|
Returns
|
Improve this Doc
View Source
Declaration
public static EventReply CaptureMouse(EventReply Reply, Widget CapturingWidget)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static EventReply ClearUserFocus(EventReply Reply, bool bInAllUsers)
Parameters
Type |
Name |
Description |
EventReply |
Reply |
|
System.Boolean |
bInAllUsers |
|
Returns
|
Improve this Doc
View Source
Declaration
public static UserWidget Create(UObject WorldContextObject, SubclassOf<UserWidget> WidgetType, PlayerController OwningPlayer)
Parameters
Returns
|
Improve this Doc
View Source
Creates a new drag and drop operation that can be returned from a drag begin to inform the UI what i
being dragged and dropped and what it looks like.
Declaration
public static DragDropOperation CreateDragDropOperation(SubclassOf<DragDropOperation> OperationClass)
Parameters
Returns
|
Improve this Doc
View Source
Ask Slate to detect if a user starts dragging in this widget later.
Declaration
public static EventReply DetectDrag(EventReply Reply, Widget WidgetDetectingDrag, Key DragKey)
Parameters
Returns
|
Improve this Doc
View Source
Given the pointer event, emit the DetectDrag reply if the provided key was pressed.
Declaration
public static EventReply DetectDragIfPressed(PointerEvent PointerEvent, Widget WidgetDetectingDrag, Key DragKey)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static void DismissAllMenus()
|
Improve this Doc
View Source
DrawBox(PaintContext, Vector2D, Vector2D, SlateBrushAsset, LinearColor)
Declaration
public static void DrawBox(PaintContext Context, Vector2D Position, Vector2D Size, SlateBrushAsset Brush, LinearColor Tint)
Parameters
|
Improve this Doc
View Source
DrawLine(PaintContext, Vector2D, Vector2D, LinearColor, Boolean)
Declaration
public static void DrawLine(PaintContext Context, Vector2D PositionA, Vector2D PositionB, LinearColor Tint, bool bAntiAlias)
Parameters
|
Improve this Doc
View Source
DrawLines(PaintContext, Byte, LinearColor, Boolean)
Draws several line segments.
Declaration
public static void DrawLines(PaintContext Context, byte Points, LinearColor Tint, bool bAntiAlias)
Parameters
|
Improve this Doc
View Source
DrawText(PaintContext, String, Vector2D, LinearColor)
Declaration
public static void DrawText(PaintContext Context, string InString, Vector2D Position, LinearColor Tint)
Parameters
|
Improve this Doc
View Source
DrawTextFormatted(PaintContext, Byte, Vector2D, Font, Int32, Name, LinearColor)
Declaration
public static void DrawTextFormatted(PaintContext Context, byte Text, Vector2D Position, Font Font, int FontSize, Name FontTypeFace, LinearColor Tint)
Parameters
|
Improve this Doc
View Source
An event should return FReply::Handled().EndDragDrop() to request that the current drag/drop operation be terminated.
Declaration
public static EventReply EndDragDrop(EventReply Reply)
Parameters
Returns
|
Improve this Doc
View Source
Find all widgets of a certain class.
Declaration
public static IReadOnlyCollection<UserWidget> GetAllWidgetsOfClass(UObject WorldContextObject, SubclassOf<UserWidget> WidgetClass, bool TopLevelOnly)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<UserWidget> |
|
|
Improve this Doc
View Source
Find all widgets in the world with the specified interface.
Declaration
public static IReadOnlyCollection<UserWidget> GetAllWidgetsWithInterface(UObject WorldContextObject, SubclassOf<Interface> Interface, bool TopLevelOnly)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<UserWidget> |
|
|
Improve this Doc
View Source
Gets the resource object on a brush. This could be a UTexture2D or a UMaterialInterface.
Declaration
public static UObject GetBrushResource(SlateBrush Brush)
Parameters
Returns
|
Improve this Doc
View Source
Gets the brush resource as a material.
Declaration
public static MaterialInterface GetBrushResourceAsMaterial(SlateBrush Brush)
Parameters
Returns
|
Improve this Doc
View Source
GetBrushResourceAsTexture2D(SlateBrush)
Gets the brush resource as a texture 2D.
Declaration
public static Texture2D GetBrushResourceAsTexture2D(SlateBrush Brush)
Parameters
Returns
|
Improve this Doc
View Source
GetDragDroppingContent()
Returns the drag and drop operation that is currently occurring if any, otherwise nothing.
Declaration
public static DragDropOperation GetDragDroppingContent()
Returns
|
Improve this Doc
View Source
Gets the material that allows changes to parameters at runtime.
Declaration
public static MaterialInstanceDynamic GetDynamicMaterial(SlateBrush Brush)
Parameters
Returns
|
Improve this Doc
View Source
Get Input Event from Character Event
Declaration
public static InputEvent GetInputEventFromCharacterEvent(CharacterEvent Event)
Parameters
Returns
|
Improve this Doc
View Source
Get Input Event from Key Event
Declaration
public static InputEvent GetInputEventFromKeyEvent(KeyEvent Event)
Parameters
Returns
|
Improve this Doc
View Source
Get Input Event from Navigation Event
Declaration
public static InputEvent GetInputEventFromNavigationEvent(NavigationEvent Event)
Parameters
Returns
|
Improve this Doc
View Source
Get Input Event from Pointer Event
Declaration
public static InputEvent GetInputEventFromPointerEvent(PointerEvent Event)
Parameters
Returns
|
Improve this Doc
View Source
Get Key Event from Analog Input Event
Declaration
public static KeyEvent GetKeyEventFromAnalogInputEvent(AnalogInputEvent Event)
Parameters
Returns
|
Improve this Doc
View Source
Gets the amount of padding that needs to be added when accounting for the safe zone on TVs.
Declaration
public static (Vector4, Vector2D, Vector4) GetSafeZonePadding(UObject WorldContextObject)
Parameters
Type |
Name |
Description |
UObject |
WorldContextObject |
|
Returns
|
Improve this Doc
View Source
The event reply to use when you choose to handle an event.
Declaration
public static EventReply Handled()
Returns
|
Improve this Doc
View Source
Returns true if a drag/drop event is occurring that a widget can handle.
Declaration
public static bool IsDragDropping()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public static EventReply LockMouse(EventReply Reply, Widget CapturingWidget)
Parameters
Returns
|
Improve this Doc
View Source
Creates a Slate Brush from a Slate Brush Asset
@
Declaration
public static SlateBrush MakeBrushFromAsset(SlateBrushAsset BrushAsset)
Parameters
Returns
|
Improve this Doc
View Source
Creates a Slate Brush from a Material.
Declaration
public static SlateBrush MakeBrushFromMaterial(MaterialInterface Material, int Width, int Height)
Parameters
Type |
Name |
Description |
MaterialInterface |
Material |
|
System.Int32 |
Width |
|
System.Int32 |
Height |
|
Returns
|
Improve this Doc
View Source
MakeBrushFromTexture(Texture2D, Int32, Int32)
Creates a Slate Brush from a Texture2D
@
Declaration
public static SlateBrush MakeBrushFromTexture(Texture2D Texture, int Width, int Height)
Parameters
Type |
Name |
Description |
Texture2D |
Texture |
|
System.Int32 |
Width |
|
System.Int32 |
Height |
|
Returns
|
Improve this Doc
View Source
Spawn an object of this class
Declaration
public static WidgetBlueprintLibrary New(UObject obj = null, Name name = default(Name))
Parameters
Returns
|
Improve this Doc
View Source
Creates a Slate Brush that wont draw anything, the "Null Brush".
Declaration
public static SlateBrush NoResourceBrush()
Returns
|
Improve this Doc
View Source
Declaration
public static EventReply ReleaseJoystickCapture(EventReply Reply, bool bInAllJoysticks)
Parameters
Type |
Name |
Description |
EventReply |
Reply |
|
System.Boolean |
bInAllJoysticks |
|
Returns
|
Improve this Doc
View Source
Declaration
public static EventReply ReleaseMouseCapture(EventReply Reply)
Parameters
Returns
|
Improve this Doc
View Source
Restore Previous Window Title Bar State
Declaration
public static void RestorePreviousWindowTitleBarState()
|
Improve this Doc
View Source
Sets the resource on a brush to be a Material.
Declaration
public static void SetBrushResourceToMaterial(SlateBrush Brush, MaterialInterface Material)
Parameters
|
Improve this Doc
View Source
SetBrushResourceToTexture(SlateBrush, Texture2D)
Sets the resource on a brush to be a UTexture2D.
Declaration
public static void SetBrushResourceToTexture(SlateBrush Brush, Texture2D Texture)
Parameters
|
Improve this Doc
View Source
Set Focus to Game Viewport
Declaration
public static void SetFocusToGameViewport()
|
Improve this Doc
View Source
Loads or sets a hardware cursor from the content directory in the game.
Declaration
public static bool SetHardwareCursor(UObject WorldContextObject, byte CursorShape, Name CursorName, Vector2D HotSpot)
Parameters
Type |
Name |
Description |
UObject |
WorldContextObject |
|
System.Byte |
CursorShape |
|
Name |
CursorName |
|
Vector2D |
HotSpot |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Set Input Mode Game and UI
Declaration
public static void SetInputMode_GameAndUI(PlayerController Target, Widget InWidgetToFocus, bool bLockMouseToViewport, bool bHideCursorDuringCapture)
Parameters
Type |
Name |
Description |
PlayerController |
Target |
|
Widget |
InWidgetToFocus |
|
System.Boolean |
bLockMouseToViewport |
|
System.Boolean |
bHideCursorDuringCapture |
|
|
Improve this Doc
View Source
Setup an input mode that allows only the UI to respond to user input, and if the UI doesn't handle it player input / player controller gets a chance.
Declaration
public static void SetInputMode_GameAndUIEx(PlayerController PlayerController, Widget InWidgetToFocus, EMouseLockMode InMouseLockMode, bool bHideCursorDuringCapture)
Parameters
|
Improve this Doc
View Source
Setup an input mode that allows only player input / player controller to respond to user input.
Declaration
public static void SetInputMode_GameOnly(PlayerController PlayerController)
Parameters
|
Improve this Doc
View Source
Declaration
public static void SetInputMode_UIOnly(PlayerController Target, Widget InWidgetToFocus, bool bLockMouseToViewport)
Parameters
|
Improve this Doc
View Source
Setup an input mode that allows only the UI to respond to user input.
Declaration
public static void SetInputMode_UIOnlyEx(PlayerController PlayerController, Widget InWidgetToFocus, EMouseLockMode InMouseLockMode)
Parameters
|
Improve this Doc
View Source
Declaration
public static EventReply SetMousePosition(EventReply Reply, Vector2D NewMousePosition)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static EventReply SetUserFocus(EventReply Reply, Widget FocusWidget, bool bInAllUsers)
Parameters
Type |
Name |
Description |
EventReply |
Reply |
|
Widget |
FocusWidget |
|
System.Boolean |
bInAllUsers |
|
Returns
|
Improve this Doc
View Source
Set Window Title Bar Close Button Active
Declaration
public static void SetWindowTitleBarCloseButtonActive(bool bActive)
Parameters
Type |
Name |
Description |
System.Boolean |
bActive |
|
|
Improve this Doc
View Source
Set Window Title Bar on Close Clicked Delegate
Declaration
public static void SetWindowTitleBarOnCloseClickedDelegate(byte Delegate)
Parameters
Type |
Name |
Description |
System.Byte |
Delegate |
|
|
Improve this Doc
View Source
Set Window Title Bar State
Declaration
public static void SetWindowTitleBarState(Widget TitleBarContent, EWindowTitleBarMode Mode, bool bTitleBarDragEnabled, bool bWindowButtonsVisible, bool bTitleBarVisible)
Parameters
Type |
Name |
Description |
Widget |
TitleBarContent |
|
EWindowTitleBarMode |
Mode |
|
System.Boolean |
bTitleBarDragEnabled |
|
System.Boolean |
bWindowButtonsVisible |
|
System.Boolean |
bTitleBarVisible |
|
|
Improve this Doc
View Source
The event reply to use when you choose not to handle an event.
Declaration
public static EventReply Unhandled()
Returns
|
Improve this Doc
View Source
Declaration
public static EventReply UnlockMouse(EventReply Reply)
Parameters
Returns
Operators
|
Improve this Doc
View Source
Convert from IntPtr to UObject
Declaration
public static implicit operator WidgetBlueprintLibrary(IntPtr p)
Parameters
Type |
Name |
Description |
System.IntPtr |
p |
|
Returns