mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
# WindowSystem.cs
* Added a function "GetWindows()" that returns windows.ToArray() for collection access with encapsulation
This commit is contained in:
parent
9f3be8f107
commit
9cfc1cd804
1 changed files with 6 additions and 0 deletions
|
|
@ -91,6 +91,12 @@ namespace Dalamud.Interface.Windowing
|
|||
/// <returns>The <see cref="Window"/> object with matching name or null.</returns>
|
||||
public Window? GetWindow(string windowName) => this.windows.FirstOrDefault(w => w.WindowName == windowName);
|
||||
|
||||
/// <summary>
|
||||
/// Returns an array of all currently registered windows.
|
||||
/// </summary>
|
||||
/// <returns>Returns window collection as a <see cref="Window"/> array.</returns>
|
||||
public Window[] GetWindows() => this.windows.ToArray();
|
||||
|
||||
/// <summary>
|
||||
/// Draw all registered windows using ImGui.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue