GridView

@Composable
fun <M : SelectionModel<ListIndexModel.ListIndex>> GridView(items: Int, selectionMode: SelectionMode<M>, modifier: Modifier = Modifier, enableRubberband: Boolean = false, minColumns: Int = 1, maxColumns: Int = 7, singleClickActivate: Boolean = false, tabBehaviour: ListTabBehavior = ListTabBehavior.ALL, onActivate: (position: Int) -> Unit? = null, child: @Composable (index: Int) -> Unit): M

Creates a org.gnome.gtk.GridView with items items. Each element is a composable created using child.

The created org.gnome.gio.ListModel will have the specified selectionMode. You can use GridView(model){ ... } if you want more customization options.

Return

the selection model you can use to manage the selection


@Composable
fun <T : GObject> GridView(model: SelectionModel<T>, modifier: Modifier = Modifier, enableRubberband: Boolean = false, minColumns: Int = 1, maxColumns: Int = 7, singleClickActivate: Boolean = false, tabBehaviour: ListTabBehavior = ListTabBehavior.ALL, onActivate: (position: Int) -> Unit? = null, child: @Composable (item: T) -> Unit)

Creates a org.gnome.gtk.GridView bound to the given model. Each element is a composable created using child.