SWindow::BringToFront

Bring the window to the front

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWindow.h

Include

#include "Widgets/SWindow.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SWindow.cpp

Syntax

void BringToFront
(
    bool bForce
)

Remarks

Bring the window to the front

Parameters

Parameter

Description

bForce

Forces the window to the top of the Z order, even if that means stealing focus from other windows In general do not pass force in. It can be useful for some window types, like game windows where not forcing it to the front would cause mouse capture and mouse lock to happen but without the window visible

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss