1 | static Rect shrinkRectBottomAndRight(Rect r, int pixels default 1) { |
2 | ret shrinkRectBottomAndRight(pixels, pixels, r); |
3 | } |
4 | |
5 | static Rect shrinkRectBottomAndRight(int x, int y, Rect r) { |
6 | ret Rect(r.x, r.y, r.w-x, r.h-y); |
7 | } |
8 | |
9 | static Rect shrinkRectBottomAndRight(Rect r, int x, int y) { |
10 | ret shrinkRectBottomAndRight(x, y, r); |
11 | } |
Began life as a copy of #1026938
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035230 |
Snippet name: | shrinkRectBottomAndRight |
Eternal ID of this version: | #1035230/3 |
Text MD5: | c3615d42995483f1b2f93e6f0e347c63 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-06-24 00:40:37 |
Source code size: | 336 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 133 / 159 |
Version history: | 2 change(s) |
Referenced in: | [show references] |