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

7
LINES

< > BotCompany Repo | #1007427 // locationToWindow

JavaX fragment (include)

1  
// TODO: z-order often not correct
2  
static Window locationToWindow(Point p) {
3  
  for (Window window : Window.getWindows())
4  
    if (window.isShowing() && boundsOnScreen(window).contains(p))
5  
      ret window;
6  
  null;
7  
}

Author comment

Began life as a copy of #1007011

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007427
Snippet name: locationToWindow
Eternal ID of this version: #1007427/4
Text MD5: 9a2bed548f1fe209a3866a8e488a5a97
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-07 15:50:10
Source code size: 222 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 553 / 584
Version history: 3 change(s)
Referenced in: [show references]