IntSize
-
Cmn
value class IntSize
A two-dimensional size class used for measuring in Int pixels.
To create an IntSize, call the top-level function that accepts a width/height pair of dimensions:
val size = IntSize(width, height)
The primary constructor of IntSize is intended to be used with the packedValue property to allow storing sizes in arrays or collections of primitives without boxing.
Summary
Nested types |
|---|
object IntSize.Companion |
Public functions |
||
|---|---|---|
inline operator Int |
Cmn
|
|
inline operator Int |
Cmn
|
|
operator IntSize |
Returns an IntSize scaled by dividing |
Cmn
|
operator IntSize |
Returns an IntSize scaled by multiplying |
Cmn
|
open String |
toString() |
Cmn
|
Public properties |
||
|---|---|---|
Int |
The vertical aspect of the size in |
Cmn
|
Long |
|
Cmn
|
Int |
The horizontal aspect of the size in |
Cmn
|
Extension properties |
||
|---|---|---|
IntOffset |
Returns the |
Cmn
|
Public properties
packedValue
val packedValue: Long
Long value encoding the width and height components of the IntSize. Encoded values can be obtained by using the packedValue property of existing IntSize instances.