mirror of https://github.com/adamdruppe/arsd.git
convenience method
This commit is contained in:
parent
0a57b5dbe9
commit
62a1544bda
11
minigui.d
11
minigui.d
|
@ -7619,6 +7619,17 @@ class Window : Widget {
|
||||||
win.releaseInputGrab();
|
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
|
@scriptable
|
||||||
@property bool focused() {
|
@property bool focused() {
|
||||||
|
|
Loading…
Reference in New Issue