Package-level declarations

The main package of Compose 4 GTK.

Types

Link copied to clipboard
@Stable
interface ApplicationScope
Link copied to clipboard
abstract class GtkComposeContainer<out W : Widget>(widget: W) : GtkComposeWidget<W>

A node in the Compose tree that corresponds to a GTK Widget that can contain other widgets.

Link copied to clipboard
interface GtkComposeNode

A base node in the Compose tree.

Link copied to clipboard
abstract class GtkComposeWidget<out W : Widget>(val widget: W) : GtkComposeNode

A node in the Compose tree that corresponds to a GTK Widget.

Link copied to clipboard
object GtkDispatcher : CoroutineDispatcher

Properties

Link copied to clipboard
val Dispatchers.Gtk: GtkDispatcher
Link copied to clipboard
val LocalApplication: ProvidableCompositionLocal<Application>

Functions

Link copied to clipboard
fun Class<*>.getGioResource(javaResourceName: String): Resource

Loads a Java resource as a gresource file. Useful to load the GIO resources embedded into a JAR.

Link copied to clipboard
@Composable
fun <T : GtkComposeNode> gtkSubComposition(createNode: () -> T, content: @Composable (T) -> Unit): T
Link copied to clipboard
fun <T> Resource.use(f: () -> T): T

Registers the resource globally, and then invokes f. The resource is unregistered before returning

Link copied to clipboard
fun <T> useGioResource(javaResourceName: String, f: () -> T): T

Loads and registers the given Java resource as a GIO resource, then invokes f.