INNER CODE UNIT · Kotlin

typeLong

IacobIonut01/ReFra · commonMain/androidx/compose/foundation/layout/Grid.kt:623

            val typeLong = type.toLong() and 0xFL // 4 bits
            val valLong = value.toRawBits().toLong() and 0xFFFFFFFFL // 32 bits
            // Format: [4 bits Type] [28 bits Empty] [32 bits Value]
            val raw = (typeLong shl 60) or valLong
            return GridTrackSize(raw)
        }
    }
}

/**
 * The modifier element that creates and updates [GridItemNode].
 *
 * @property row The 1-based row index, or [GridScope.GridIndexUnspecified] for auto-placement.
 * @property column The 1-based column index, or [GridScope.GridIndexUnspecified] for
 *   auto-placement.
 * @property rowSpan The number of rows the item should occupy.
 * @property columnSpan The number of columns the item should occupy.
 * @property alignment The alignment of the content within the grid cell.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…