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

4
LINES

< > BotCompany Repo | #1005816 // mouseArea - return area around mouse pointer (Rect), unclipped

JavaX fragment (include)

static Rect mouseArea(int w, int h default w) {
  Point p = mouseLocation();
  ret new Rect(p.x-w/2, p.y-h/2, w, h);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005816
Snippet name: mouseArea - return area around mouse pointer (Rect), unclipped
Eternal ID of this version: #1005816/3
Text MD5: fc73cfb397dd64a0a0003841bb41b060
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-08 22:19:55
Source code size: 121 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 484 / 497
Version history: 2 change(s)
Referenced in: [show references]