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

4
LINES

< > BotCompany Repo | #1007011 // mouseInWindow

JavaX fragment (include)

static bool mouseInWindow(Component c) {
  Window w = getWindow(c);
  ret w != null && w.isShowing() && boundsOnScreen(w).contains(mousePosition());
}

Author comment

Began life as a copy of #1006904

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: #1007011
Snippet name: mouseInWindow
Eternal ID of this version: #1007011/3
Text MD5: 55f2012026c67b854b6e5ec23d002161
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-25 14:47:42
Source code size: 153 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 535 / 554
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1007427 - locationToWindow
#1011157 - mouseInInternalFrames
#1011158 - mouseInInternalFrame
#1034013 - isScreenCoordinateInWindow