static O componentAtMouse_gen() { ret swing(func { Point p = MouseInfo.getPointerInfo().getLocation(); Window window = locationToWindow(p); if (window == null) null; SwingUtilities.convertPointFromScreen(p, window); ret SwingUtilities.getDeepestComponentAt(window, p.x, p.y); }); }
Began life as a copy of #1007428
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: | #1008160 |
| Snippet name: | componentAtMouse_gen (generic for Android-compatibility) |
| Eternal ID of this version: | #1008160/1 |
| Text MD5: | 31eb0a9320a249b8b4b69370a1c2bec1 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-29 15:14:43 |
| Source code size: | 313 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 793 / 821 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1019640 - componentAtScreenLocation |