Libraryless. Click here for Pure Java version (5510L/30K).
static int screenNrOfWindow(Window w) { if (w == null) ret -1; Rect bounds = boundsAsRect(w); ret indexOfMax(allScreenBounds(), screen -> area(intersectRects(bounds, screen))); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033887 |
Snippet name: | screenNrOfWindow |
Eternal ID of this version: | #1033887/2 |
Text MD5: | 32a0dbf69f32c1bd28899add36291fcd |
Transpilation MD5: | ccb2997821e33ddc51dff29718400bf7 |
Author: | stefan |
Category: | javax / gazelle v |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-08 22:58:53 |
Source code size: | 193 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 202 / 268 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1034172 - screenNrContaining |