This site requires javascript.
Android Code Search
file:androidx/core/graphics/Rect.kt function:minus
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
core/core-ktx/src/main/java/androidx/core/graphics/
Rect.kt
content_copy
Preview
151:
152:
153:
/** Returns the difference of this rectangle and the specified rectangle as a new region. */
public
inline
operator
fun
Rect.
minus
(r: Rect): Region {
return
Region(this).apply { op(r, Region.Op.DIFFERENCE) }
159:
160:
161:
*/
public
inline
operator
fun
RectF.
minus
(r: RectF): Region {
return
Region(this.toRect()).apply { op(r.toRect(), Region.Op.DIFFERENCE) }
167:
168:
169:
*/
public
inline
operator
fun
Rect.
minus
(xy: Int): Rect {
return
Rect(this).apply { offset(-xy, -xy) }
175:
176:
177:
*/
public
inline
operator
fun
RectF.
minus
(xy: Float): RectF {
return
RectF(this).apply { offset(-xy, -xy) }
183:
184:
185:
*/
public
inline
operator
fun
Rect.
minus
(xy: Point): Rect {
return
Rect(this).apply { offset(-xy.x, -xy.y) }
191:
192:
193:
*/
public
inline
operator
fun
RectF.
minus
(xy: PointF): RectF {
return
RectF(this).apply { offset(-xy.x, -xy.y) }
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Help
Open branch androidx-main