core-ktx / androidx.graphics / android.graphics.Point / component1

component1

inline operator fun Point.component1(): Int

Returns the x coordinate of this point.

This method allows to use destructuring declarations when working with points, for example:

val (x, y) = myPoint