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

4
LINES

< > BotCompany Repo | #1034013 // isScreenCoordinateInWindow

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

Libraryless. Click here for Pure Java version (4924L/27K).

sbool isScreenCoordinateInWindow(Pt p, Component c) {
  Window w = getWindow(c);
  ret w != null && w.isShowing() && toRect(boundsOnScreen(w)).contains(p);
}

Author comment

Began life as a copy of #1007011

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034013
Snippet name: isScreenCoordinateInWindow
Eternal ID of this version: #1034013/1
Text MD5: bc78dc0bb1daec0e9990d519ed9e3cb9
Transpilation MD5: 4fb1fb70a26f33dcbf6ad621604831db
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-17 00:52:10
Source code size: 160 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 136 / 187
Referenced in: [show references]