FSlateApplicationBase::MakeWindowTitleBar

Creates a title bar for the specified window.

Choose your operating system:

Windows

macOS

Linux

Deprecated

  • This version of MakeWindowTitleBar has been deprecated. Use the version that takes in an FWindowTitleBarArgs parameter instead.

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Application/SlateApplicationBase.h

Include

#include "Application/SlateApplicationBase.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Application/SlateApplicationBase.cpp

Syntax

virtual TSharedRef< SWidget > MakeWindowTitleBar
(
    const TSharedRef< SWindow > & Window,
    const TSharedPtr< SWidget > & CenterContent,
    EHorizontalAlignment CenterContentAlignment,
    TSharedPtr< IWindowTitleBar > & OutTitleBar
) const

Remarks

Creates a title bar for the specified window.

Returns

The new title bar widget.

Parameters

Parameter

Description

Window

The window to create the title bar for.

CenterContent

Optional content for the title bar's center (will override window title).

CenterContentAlignment

The horizontal alignment of the center content.

OutTitleBar

Will hold a pointer to the title bar's interface.