Class WindowSystem
Class running a WindowSystem using Window implementations to simplify ImGui windowing.
Inheritance
Inherited Members
Namespace: Dalamud.Interface.Windowing
Assembly: Dalamud.dll
Syntax
public class WindowSystem
Constructors
| Improve this Doc View SourceWindowSystem(String)
Initializes a new instance of the WindowSystem class.
Declaration
public WindowSystem(string imNamespace = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | imNamespace | The name/ID-space of this WindowSystem. |
Properties
| Improve this Doc View SourceFocusedWindowSystemNamespace
Gets the name of the currently focused window system that is redirecting normal escape functionality.
Declaration
public static string FocusedWindowSystemNamespace { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
HasAnyFocus
Gets a value indicating whether any window in this WindowSystem has focus and is not marked to be excluded from consideration.
Declaration
public bool HasAnyFocus { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
HasAnyWindowSystemFocus
Gets a value indicating whether any WindowSystem contains any Window that has focus and is not marked to be excluded from consideration.
Declaration
public static bool HasAnyWindowSystemFocus { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Namespace
Gets or sets the name/ID-space of this WindowSystem.
Declaration
public string Namespace { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
TimeSinceLastAnyFocus
Gets the timespan since the last time any window was focused.
Declaration
public static TimeSpan TimeSinceLastAnyFocus { get; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan |
Windows
Declaration
public IReadOnlyList<Window> Windows { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<Window> |
Methods
| Improve this Doc View SourceAddWindow(Window)
Add a window to this WindowSystem.
Declaration
public void AddWindow(Window window)
Parameters
| Type | Name | Description |
|---|---|---|
| Window | window | The window to add. |
Draw()
Draw all registered windows using ImGui.
Declaration
public void Draw()
GetWindow(String)
Get a window by name.
Declaration
public Window GetWindow(string windowName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | windowName | The name of the Window |
Returns
| Type | Description |
|---|---|
| Window | The Window object with matching name or null. |
RemoveAllWindows()
Remove all windows from this WindowSystem.
Declaration
public void RemoveAllWindows()
RemoveWindow(Window)
Remove a window from this WindowSystem.
Declaration
public void RemoveWindow(Window window)
Parameters
| Type | Name | Description |
|---|---|---|
| Window | window | The window to remove. |