FLogWindowManager

Basic window manager, for handling tiling of unit test log windows.

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/UI/LogWindowManager.h

Include

#include "UI/LogWindowManager.h"

Syntax

class FLogWindowManager

Remarks

Basic window manager, for handling tiling of unit test log windows.

How this works: Upon initialization, takes the average dimensions of a log window, and of the desktop working area, and maps out a grid for fitting the log windows onto the desktop - nothing more complicated than that

Variables

Name Description

Protected variable

bool

 

bInitialized

Whether or not the log window manager has been initialized

Protected variable

TArray< FLogGri...

 

GridSpaces

An array of currently open log windows

Protected variable

int

 

LastLogWindowPos

The last grid entry where a log window was placed

Protected variable

int

 

LogHeight

Protected variable

int

 

LogWidth

The dimensions log windows should have

Protected variable

TMap< SLogWindo...

 

OnWindowClosedDelegateHandles

Handles to registered OnWindowClosed delegates for particular windows

Protected variable

TArray< TShared...

 

OverflowWindows

A list of windows that have overflowed the grid (these start minimized, waiting for a space in the grid)

Constructors

Name Description

Public function

FLogWindowManager()

Destructors

Name Description

Public function

~FLogWindowManager()

Base destructor

FLogWindowManager

Functions

Name Description

Public function

TSharedPtr< ...

 

CreateLogWindow

(
    FString Title,
    ELogType ExpectedFilters,
    bool bStatusWindow
)

Creates a new log window, and returns a reference

Protected function

int

 

FindFreeGridPos()

Finds the next free grid position for the log window NOTE: Instead of searching for the first empty space, tries to create log windows in a row pattern based upon the grid

Public function

void

 

Initialize

(
    int InLogWidth,
    int InLogHeight
)

Initializes the log window manager

Public function

void

 

OnWindowClosed

(
    const TSharedRef< SWindow >& Close...
)

Monitor for closed log windows

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