Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest > API/Plugins/NetcodeUnitTest/UI
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
| Type | Name | Description | |
|---|---|---|---|
| bool | bInitialized | Whether or not the log window manager has been initialized | |
| TArray< FLogGridEntry > | GridSpaces | An array of currently open log windows | |
| int | LastLogWindowPos | The last grid entry where a log window was placed | |
| int | LogHeight | ||
| int | LogWidth | The dimensions log windows should have | |
| TMap< SLogWindow *, FDelegateHandle > | OnWindowClosedDelegateHandles | Handles to registered OnWindowClosed delegates for particular windows | |
| TArray< TSharedPtr< SLogWindow > > | OverflowWindows | A list of windows that have overflowed the grid (these start minimized, waiting for a space in the grid) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Base destructorFLogWindowManager |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SLogWindow > | CreateLogWindow
(
FString Title, |
Creates a new log window, and returns a reference | |
| int | 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 | ||
| void | Initialize
(
int InLogWidth, |
Initializes the log window manager | |
| void | OnWindowClosed
(
const TSharedRef< SWindow >& ClosedWindow |
Monitor for closed log windows |