1 | static O componentAtMouse_gen() { |
2 | ret swing(func { |
3 | Point p = MouseInfo.getPointerInfo().getLocation(); |
4 | Window window = locationToWindow(p); |
5 | if (window == null) null; |
6 | SwingUtilities.convertPointFromScreen(p, window); |
7 | ret SwingUtilities.getDeepestComponentAt(window, p.x, p.y); |
8 | }); |
9 | } |
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: | 549 / 573 |
Referenced in: | [show references] |