From 62a1544bda05da385b4c4718e3cb03e6c7ea7cd6 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 5 Apr 2022 19:15:36 -0400 Subject: [PATCH] convenience method --- minigui.d | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/minigui.d b/minigui.d index 17fdee9..d13aea8 100644 --- a/minigui.d +++ b/minigui.d @@ -7619,6 +7619,17 @@ class Window : Widget { win.releaseInputGrab(); } + /++ + Sets the window icon which is often seen in title bars and taskbars. + + History: + Added April 5, 2022 (dub v10.8) + +/ + @property void icon(MemoryImage icon) { + if(win && icon) + win.icon = icon; + } + /// @scriptable @property bool focused() {