Package-level declarations

Types

Link copied to clipboard

Core interface for an Iced application following the Elm Architecture.

Link copied to clipboard
data class Button(val label: String, val onClick: () -> Unit = {}, val key: String? = null) : Element

Represents a button element that can trigger messages.

Link copied to clipboard
data class Card(val children: List<Element>, val key: String? = null) : Element

Represents a card container with elevation.

Link copied to clipboard
data class Checkbox(val checked: Boolean, val onCheckedChange: (Boolean) -> Unit = {}, val label: String? = null, val key: String? = null) : Element

Represents a checkbox element.

Link copied to clipboard
data class Column(val children: List<Element>, val key: String? = null) : Element

Represents a vertical container element that holds child elements.

Link copied to clipboard
interface Command<Message>

Represents a command that produces messages asynchronously. Commands are used to handle side effects in the Elm Architecture, such as HTTP requests, timers, or other asynchronous operations.

Link copied to clipboard
interface Element

Base interface for UI elements in the Iced framework. This provides a common abstraction for platform-specific UI implementations.

Link copied to clipboard

Runtime for executing Iced applications with Jetpack Compose. This provides the bridge between the Elm Architecture model and Compose UI.

Link copied to clipboard

A command that does nothing and produces no messages.

Link copied to clipboard

A subscription that produces no messages.

Link copied to clipboard
data class Row(val children: List<Element>, val key: String? = null) : Element

Represents a horizontal container element that holds child elements.

Link copied to clipboard
data class Spacer(val size: Int = 8, val key: String? = null) : Element

Represents a spacer element for adding space between elements.

Link copied to clipboard

Represents a subscription to external events. Subscriptions allow applications to listen to events like time, keyboard input, or other continuous streams of data.

Link copied to clipboard
data class Switch(val checked: Boolean, val onCheckedChange: (Boolean) -> Unit = {}, val label: String? = null, val key: String? = null) : Element

Represents a switch/toggle element.

Link copied to clipboard
data class Text(val content: String, val key: String? = null) : Element

Represents a simple text element.

Link copied to clipboard
data class TextField(val value: String, val onValueChange: (String) -> Unit = {}, val placeholder: String = "", val key: String? = null) : Element

Represents a text input field.

Functions

Link copied to clipboard
fun <Message> batch(vararg commands: Command<Message>): Command<Message>

Creates a batch of commands that will execute concurrently.

Link copied to clipboard

Convenience operator function that runs this Application as a Composable.

Link copied to clipboard

Creates and runs an Iced application inside a Jetpack Compose context.