FFocusEvent

[FFocusEvent](API\Runtime\SlateCore\Input\FFocusEvent) is used when notifying widgets about keyboard focus changes It is passed to event handlers dealing with keyboard focus

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Input/Events.h

Include

#include "Input/Events.h"

Syntax

struct FFocusEvent

Remarks

FFocusEvent is used when notifying widgets about keyboard focus changes It is passed to event handlers dealing with keyboard focus

Constructors

Name Description

Public function

FFocusEvent()

UStruct Constructor. Not meant for normal usage.

Public function

FFocusEvent

(
    const EFocusCause InCause,
    uint32 InUserIndex
)

  1. Events are immutable once constructed.

Functions

Name Description

Public function Const

EFocusCause

 

GetCause()

Queries the reason for the focus change

Public function Const

uint32

 

GetUser()

Queries the user that is changing focus