Skip to main content

Class WindowSystem

Class running a WindowSystem using Dalamud.Interface.Windowing.Window implementations to simplify ImGui windowing.

Assembly: Dalamud.dll
View Source
Declaration
public class WindowSystem

Properties

HasAnyWindowSystemFocus

Gets a value indicating whether any Dalamud.Interface.Windowing.WindowSystem contains any Dalamud.Interface.Windowing.Window that has focus and is not marked to be excluded from consideration.

View Source
Declaration
public static bool HasAnyWindowSystemFocus { get; }

FocusedWindowSystemNamespace

Gets the name of the currently focused window system that is redirecting normal escape functionality.

View Source
Declaration
public static string FocusedWindowSystemNamespace { get; }

TimeSinceLastAnyFocus

Gets the timespan since the last time any window was focused.

View Source
Declaration
public static TimeSpan TimeSinceLastAnyFocus { get; }

Windows

Gets a read-only list of all Dalamud.Interface.Windowing.Windows in this Dalamud.Interface.Windowing.WindowSystem.

View Source
Declaration
public IReadOnlyList<Window> Windows { get; }

HasAnyFocus

Gets a value indicating whether any window in this Dalamud.Interface.Windowing.WindowSystem has focus and is not marked to be excluded from consideration.

View Source
Declaration
public bool HasAnyFocus { get; }

Namespace

Gets or sets the name/ID-space of this Dalamud.Interface.Windowing.WindowSystem.

View Source
Declaration
public string? Namespace { get; set; }

Methods

AddWindow(Window)

Add a window to this Dalamud.Interface.Windowing.WindowSystem. The window system doesn't own your window, it just renders it You need to store a reference to it to use it later.

View Source
Declaration
public void AddWindow(Window window)
Parameters
TypeNameDescription
Dalamud.Interface.Windowing.WindowwindowThe window to add.

RemoveWindow(Window)

Remove a window from this Dalamud.Interface.Windowing.WindowSystem. Will not dispose your window, if it is disposable.

View Source
Declaration
public void RemoveWindow(Window window)
Parameters
TypeNameDescription
Dalamud.Interface.Windowing.WindowwindowThe window to remove.

RemoveAllWindows()

Remove all windows from this Dalamud.Interface.Windowing.WindowSystem. Will not dispose your windows, if they are disposable.

View Source
Declaration
public void RemoveAllWindows()

Draw()

Draw all registered windows using ImGui.

View Source
Declaration
public void Draw()