This site requires javascript.
Android Code Search
file:androidx/core/graphics/Rect.kt function:plus
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
112:
113:
114:
*/
public
inline
operator
fun
Rect.
plus
(r: Rect): Rect {
return
Rect(this).apply { union(r) }
120:
121:
122:
*/
public
inline
operator
fun
RectF.
plus
(r: RectF): RectF {
return
RectF(this).apply { union(r) }
128:
129:
130:
*/
public
inline
operator
fun
Rect.
plus
(xy: Int): Rect {
return
Rect(this).apply { offset(xy, xy) }
136:
137:
138:
*/
public
inline
operator
fun
RectF.
plus
(xy: Float): RectF {
return
RectF(this).apply { offset(xy, xy) }
141:
142:
143:
/** Returns a new rectangle representing this rectangle offset by the specified point. */
public
inline
operator
fun
Rect.
plus
(xy: Point): Rect {
return
Rect(this).apply { offset(xy.x, xy.y) }
146:
147:
148:
/** Returns a new rectangle representing this rectangle offset by the specified point. */
public
inline
operator
fun
RectF.
plus
(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
Open branch androidx-main
Help