Package com.tomtom.sdk.maps.display.common.screen

Types

Link copied to clipboard
data class Padding(    val left: Int,     val top: Int,     val right: Int,     val bottom: Int) : Parcelable

Defines the padding in pixels.

Link copied to clipboard
data class Point(val x: Int, val y: Int) : Parcelable

Represents a point by its x and y position in pixels on the screen.

Link copied to clipboard
data class PointF(val x: Float, val y: Float) : Parcelable

Represents an xy position on the screen, expressed in pixels.

Functions

Link copied to clipboard
operator fun Point.minus(anotherPoint: Point): Point

Subtracts anotherPoint from this Point by subtracting the corresponding x and y coordinates.

operator fun PointF.minus(anotherPoint: PointF): PointF

Subtracts anotherPoint from this PointF by subtracting the corresponding x and y coordinates.

Link copied to clipboard
operator fun Point.plus(anotherPoint: Point): Point

Add anotherPoint to this Point by adding the corresponding x and y coordinates.

operator fun PointF.plus(anotherPoint: PointF): PointF

Add anotherPoint to this PointF by adding the corresponding x and y coordinates.

Link copied to clipboard
operator fun Point.times(times: Double): Point

Multiply this Point by a given amount by multiplying the x and y coordinates.

operator fun PointF.times(times: Double): PointF

Multiply this PointF by a given amount by multiplying the x and y coordinates.