ToolbarItems

data class ToolbarItems(val visible: PersistentList<ToolbarItem> = persistentListOf(), val overflow: PersistentList<ToolbarItem> = persistentListOf())

The ordered, pre-grouped collection of items for one toolbar.

Items are split into visible and overflow at grouping time — the com.pspdfkit.compose.toolbar.composables.NutrientToolbarLayout re-derives the split from measured widths once per measurement, from all.

Constructors

Link copied to clipboard
constructor(visible: PersistentList<ToolbarItem> = persistentListOf(), overflow: PersistentList<ToolbarItem> = persistentListOf())

Types

Link copied to clipboard
object Companion

Factory holder for common ToolbarItems values.

Properties

Link copied to clipboard
val all: PersistentList<ToolbarItem>

visible then overflow as one ordered list — what the layout actually measures, since it re-derives the split from measured widths. Computed once per instance rather than at every composition, and stable, so the row can skip recomposition when nothing changed.

Link copied to clipboard
val overflow: PersistentList<ToolbarItem>

Items moved into the overflow menu, in order.

Link copied to clipboard
val visible: PersistentList<ToolbarItem>

Items rendered directly in the toolbar row, in order.