Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1033887 // screenNrOfWindow

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5510L/30K).

1  
static int screenNrOfWindow(Window w) {
2  
  if (w == null) ret -1;
3  
  Rect bounds = boundsAsRect(w);
4  
  ret indexOfMax(allScreenBounds(),
5  
    screen -> area(intersectRects(bounds, screen)));
6  
}

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: 203 / 270
Version history: 1 change(s)
Referenced in: [show references]