1 | static Rect shrinkRectLeftAndTop(Rect r, int pixels) { |
2 | ret shrinkRectLeftAndTop(pixels, pixels, r); |
3 | } |
4 | |
5 | static Rect shrinkRectLeftAndTop(int x, int y, Rect r) { |
6 | ret Rect(r.x+x, r.y+y, r.w-x, r.h-y); |
7 | } |
8 | |
9 | static Rect shrinkRectLeftAndTop(Rect r, int x, int y) { |
10 | ret shrinkRectLeftAndTop(x, y, r); |
11 | } |
Began life as a copy of #1010286
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026938 |
Snippet name: | shrinkRectLeftAndTop |
Eternal ID of this version: | #1026938/3 |
Text MD5: | 0103b0250cc46952981c78bcf7e3e442 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-03 02:36:26 |
Source code size: | 310 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 240 / 264 |
Version history: | 2 change(s) |
Referenced in: | [show references] |