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

7
LINES

< > BotCompany Repo | #1005623 // intersectWithScreen

JavaX fragment (include)

1  
static Rectangle intersectWithScreen(Rectangle r) {
2  
  ret r.intersection(screenRectangle());
3  
}
4  
5  
static Rect intersectWithScreen(Rect r) {
6  
  ret new Rect(intersectWithScreen(r.getRectangle()));
7  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005623
Snippet name: intersectWithScreen
Eternal ID of this version: #1005623/1
Text MD5: 8a77f184e7d38a667bcba3e0408a2f2b
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-15 02:13:23
Source code size: 200 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 592 / 605
Referenced in: [show references]