@@ -142,10 +142,6 @@ func (w NSWindow) TitleVisibility() int64 {
142
142
return w .Get ("titleVisibility" ).Int ()
143
143
}
144
144
145
- func (w NSWindow ) SetHasShadow (b bool ) {
146
- w .Set ("hasShadow:" , b )
147
- }
148
-
149
145
func (w NSWindow ) SetOpaque (b bool ) {
150
146
w .Set ("opaque:" , b )
151
147
}
@@ -189,6 +185,37 @@ func (w NSWindow) SetFrameDisplay(frame core.NSRect, display bool) {
189
185
func (w NSWindow ) CollectionBehavior () int64 {
190
186
return w .Get ("collectionBehavior" ).Int ()
191
187
}
188
+
192
189
func (w NSWindow ) SetCollectionBehavior (collectionBehavior int ) {
193
190
w .Set ("collectionBehavior:" , collectionBehavior )
194
191
}
192
+
193
+ // SetHasShadow sets a Boolean value that indicates whether the window has a shadow.
194
+ // https://developer.apple.com/documentation/appkit/nswindow/1419234-hasshadow?language=objc
195
+ func (w NSWindow ) SetHasShadow (b bool ) {
196
+ w .Set ("setHasShadow:" , b )
197
+ }
198
+
199
+ // HasShadow returns a Boolean value that indicates whether the window has a shadow.
200
+ // https://developer.apple.com/documentation/appkit/nswindow/1419234-hasshadow?language=objc
201
+ func (w NSWindow ) HasShadow () bool {
202
+ return w .Get ("hasShadow" ).Bool ()
203
+ }
204
+
205
+ // OrderOut removes the window from the screen list, which hides the window.
206
+ // https://developer.apple.com/documentation/appkit/nswindow/1419660-orderout?language=objc
207
+ func (w NSWindow ) OrderOut (sender objc.Object ) {
208
+ w .Send ("orderOut:" , sender )
209
+ }
210
+
211
+ // OrderFront moves the window to the front of its level in the screen list, without changing either the key window or the main window.
212
+ // https://developer.apple.com/documentation/appkit/nswindow/1419495-orderfront?language=objc
213
+ func (w NSWindow ) OrderFront (sender objc.Object ) {
214
+ w .Send ("orderFront:" , sender )
215
+ }
216
+
217
+ // OrderBack moves the window to the back of its level in the screen list, without changing either the key window or the main window.
218
+ // https://developer.apple.com/documentation/appkit/nswindow/1419204-orderback?language=objc
219
+ func (w NSWindow ) OrderBack (sender objc.Object ) {
220
+ w .Send ("orderBack:" , sender )
221
+ }
0 commit comments