Package-level declarations

Properties

Link copied to clipboard
actual val Dispatchers.TargetDefault: CoroutineDispatcher
expect val Dispatchers.TargetDefault: CoroutineDispatcher

The default dispatcher on the current platform.

actual val Dispatchers.TargetDefault: CoroutineDispatcher
actual val Dispatchers.TargetDefault: CoroutineDispatcher
actual val Dispatchers.TargetDefault: CoroutineDispatcher
actual val Dispatchers.TargetDefault: CoroutineDispatcher
Link copied to clipboard
actual val Dispatchers.TargetIO: CoroutineDispatcher
expect val Dispatchers.TargetIO: CoroutineDispatcher

The IO dispatcher on the current platform.

actual val Dispatchers.TargetIO: CoroutineDispatcher
actual val Dispatchers.TargetIO: CoroutineDispatcher
actual val Dispatchers.TargetIO: CoroutineDispatcher
actual val Dispatchers.TargetIO: CoroutineDispatcher
Link copied to clipboard
actual val Dispatchers.TargetMain: MainCoroutineDispatcher
expect val Dispatchers.TargetMain: MainCoroutineDispatcher

The main dispatcher on the current platform.

actual val Dispatchers.TargetMain: MainCoroutineDispatcher
actual val Dispatchers.TargetMain: MainCoroutineDispatcher
actual val Dispatchers.TargetMain: MainCoroutineDispatcher
actual val Dispatchers.TargetMain: MainCoroutineDispatcher

Functions

Link copied to clipboard
fun BottomCornerShape(baseShape: CornerBasedShape = CircleShape, otherCorner: Dp = 2.dp): CornerBasedShape

Shape which leaves bottom start and bottom end corner unchanged, and applies a specified Dp on other corners.

Link copied to clipboard
fun BottomEndCornerShape(baseShape: CornerBasedShape = CircleShape, otherCorner: Dp = 2.dp): CornerBasedShape

Shape which leaves bottom end corner unchanged, and applies a specified Dp on other corners.

Link copied to clipboard
fun BottomStartCornerShape(baseShape: CornerBasedShape = CircleShape, otherCorner: Dp = 2.dp): CornerBasedShape

Shape which leaves bottom start corner unchanged, and applies a specified Dp on other corners.

Link copied to clipboard
fun defaultDispatcher(): CoroutineDispatcher

Handy equivalent of Dispatchers.TargetDefault.

Link copied to clipboard
fun EndCornerShape(baseShape: CornerBasedShape = CircleShape, otherCorner: Dp = 2.dp): CornerBasedShape

Shape which leaves top end and bottom end corner unchanged, and applies a specified Dp on other corners.

Link copied to clipboard
fun Modifier.focusScale(scale: Float = 1.1f, hoverable: Boolean = true, focusable: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }): Modifier

Extension function for a Modifier to scale a Composable (up) on focus.

Link copied to clipboard
fun Tooling.getResourcesAsInputStream(clazz: KClass<*>, location: String): InputStream?

Load something from resources easily.

Link copied to clipboard
inline fun Modifier.ifFalse(predicate: Boolean, builder: Modifier.() -> Modifier): Modifier

Extension function to apply changes to a Modifier if a predicate is not matched.

Link copied to clipboard
inline fun Modifier.ifTrue(predicate: Boolean, builder: Modifier.() -> Modifier): Modifier

Extension function to apply changes to a Modifier if a predicate is matched.

Link copied to clipboard
fun ioDispatcher(): CoroutineDispatcher

Handy equivalent of Dispatchers.TargetIO.

Link copied to clipboard
fun Modifier.isFocused(hoverable: Boolean = true, focusable: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, builder: Modifier.() -> Modifier): Modifier

Extension function to apply changes to a Modifier if the Composable is focused.

Link copied to clipboard
fun CoroutineScope.launchDefault(block: suspend CoroutineScope.() -> Unit): Job

Handy equivalent of CoroutineScope.launch to launch directly with the defaultDispatcher.

Link copied to clipboard
fun CoroutineScope.launchIO(block: suspend CoroutineScope.() -> Unit): Job

Handy equivalent of CoroutineScope.launch to launch directly with the ioDispatcher.

Link copied to clipboard
fun CoroutineScope.launchMain(block: suspend CoroutineScope.() -> Unit): Job

Handy equivalent of CoroutineScope.launch to launch directly with the mainDispatcher.

Link copied to clipboard
fun Tooling.loadAppIcon(window: ComposeWindow, vararg assets: Image?)

Easy method to load images as app icon on a ComposeWindow.

Link copied to clipboard
fun mainDispatcher(): MainCoroutineDispatcher

Handy equivalent of Dispatchers.TargetMain.

Link copied to clipboard
fun MiddleCornerShape(baseShape: CornerBasedShape = CircleShape, cornerSize: Dp = 2.dp): CornerBasedShape

Shape which applies a specified Dp on all corners. Useful as middle part for StartCornerShape and EndCornerShape for example.

Link copied to clipboard
actual fun Modifier.onClick(enabled: Boolean, onDoubleClick: () -> Unit?, onLongClick: () -> Unit?, onClick: () -> Unit): Modifier
expect fun Modifier.onClick(enabled: Boolean = true, onDoubleClick: () -> Unit? = null, onLongClick: () -> Unit? = null, onClick: () -> Unit): Modifier

An easy extendable Modifier.onClick method.

actual fun Modifier.onClick(enabled: Boolean, onDoubleClick: () -> Unit?, onLongClick: () -> Unit?, onClick: () -> Unit): Modifier
actual fun Modifier.onClick(enabled: Boolean, onDoubleClick: () -> Unit?, onLongClick: () -> Unit?, onClick: () -> Unit): Modifier
actual fun Modifier.onClick(enabled: Boolean, onDoubleClick: () -> Unit?, onLongClick: () -> Unit?, onClick: () -> Unit): Modifier
actual fun Modifier.onClick(enabled: Boolean, onDoubleClick: () -> Unit?, onLongClick: () -> Unit?, onClick: () -> Unit): Modifier
Link copied to clipboard
fun Modifier.onFocusChanged(hoverable: Boolean = true, focusable: Boolean = true, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, onChanged: (Boolean) -> Unit): Modifier

Extension function to get notified if the Composable is focused.

Link copied to clipboard

Open a given String in browser.

Link copied to clipboard
fun Modifier.scaleClick(minScale: Float = 0.9f): Modifier

Extension function for a Modifier to scale a Composable (down) on click.

Link copied to clipboard
fun StartCornerShape(baseShape: CornerBasedShape = CircleShape, otherCorner: Dp = 2.dp): CornerBasedShape

Shape which leaves top start and bottom start corner unchanged, and applies a specified Dp on other corners.

Link copied to clipboard

Get Material3 ColorScheme as Material Colors. Useful to commonize theming with old and new Composables.

Link copied to clipboard

Get Material3 androidx.compose.material3.Shapes as Material Shapes. Useful to commonize theming with old and new Composables.

Link copied to clipboard

Get Material Typography with default sizes.

Link copied to clipboard
fun TopCornerShape(baseShape: CornerBasedShape = CircleShape, otherCorner: Dp = 2.dp): CornerBasedShape

Shape which leaves top start and top end corner unchanged, and applies a specified Dp on other corners.

Link copied to clipboard
fun TopEndBottomStartCornerShape(baseShape: CornerBasedShape = CircleShape, otherCorner: Dp = 2.dp): CornerBasedShape

Shape which leaves top end and bottom start corner unchanged, and applies a specified Dp on other corners.

Link copied to clipboard
fun TopEndCornerShape(baseShape: CornerBasedShape = CircleShape, otherCorner: Dp = 2.dp): CornerBasedShape

Shape which leaves top end corner unchanged, and applies a specified Dp on other corners.

Link copied to clipboard
fun TopStartBottomEndCornerShape(baseShape: CornerBasedShape = CircleShape, otherCorner: Dp = 2.dp): CornerBasedShape

Shape which leaves top start and bottom end corner unchanged, and applies a specified Dp on other corners.

Link copied to clipboard
fun TopStartCornerShape(baseShape: CornerBasedShape = CircleShape, otherCorner: Dp = 2.dp): CornerBasedShape

Shape which leaves top start corner unchanged, and applies a specified Dp on other corners.

Link copied to clipboard
Link copied to clipboard
fun Modifier.translateClick(maxTranslation: Float = 10.0f): Modifier

Extension function for a Modifier to translate a Composable vertically on click.

Link copied to clipboard
suspend fun <T> withDefaultContext(block: suspend CoroutineScope.() -> T): T

Handy equivalent of withContext to switch directly with the defaultDispatcher.

Link copied to clipboard
suspend fun <T> withIOContext(block: suspend CoroutineScope.() -> T): T

Handy equivalent of withContext to switch directly with the ioDispatcher.

Link copied to clipboard
suspend fun <T> withMainContext(block: suspend CoroutineScope.() -> T): T

Handy equivalent of withContext to switch directly with the mainDispatcher.