Skip to main content

Interface IWindowSystem

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

Assembly: Dalamud.dll
Declaration
public interface IWindowSystem

Derived:
Dalamud.Interface.Windowing.WindowSystem

Properties

Windows

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

Declaration
IReadOnlyList<IWindow> 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.

Declaration
bool HasAnyFocus { get; }

Namespace

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

Declaration
string? Namespace { get; set; }

Methods

AddWindow(IWindow)

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.

Declaration
void AddWindow(IWindow window)
Parameters
TypeNameDescription
Dalamud.Interface.Windowing.IWindowwindowThe window to add.

RemoveWindow(IWindow)

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

Declaration
void RemoveWindow(IWindow window)
Parameters
TypeNameDescription
Dalamud.Interface.Windowing.IWindowwindowThe window to remove.

RemoveAllWindows()

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

Declaration
void RemoveAllWindows()

Draw()

Draw all registered windows using ImGui.

Declaration
void Draw()