Package-level declarations

Functions

Link copied to clipboard
fun NutrientMainToolbar(coordinator: ToolbarCoordinator, modifier: Modifier = Modifier, customTitle: @Composable () -> Unit? = null, customActions: @Composable RowScope.() -> Unit? = null)

State-driven main toolbar. Renders coordinator's frame and items, emits ToolbarActions via coordinator.dispatch(…).

Link copied to clipboard
fun Modifier.nutrientPointerInput(enabled: Boolean = true, onSecondaryClick: () -> Unit = {}, onTap: (PointerType) -> Unit): Modifier

Stylus-aware pointer input as a single primitive (STYLUS-1 / P1-8): one implementation, used everywhere a toolbar element handles taps.

Link copied to clipboard
fun NutrientPopup(onDismissRequest: () -> Unit, modifier: Modifier = Modifier, offset: IntOffset = IntOffset.Zero, content: @Composable () -> Unit)

Anchored popup primitive (POPUP-1 / P1-9) that toolbar submenus and the text-selection popup will build on in later phases. Owns anchoring with edge-overflow correction (clamp into the window, flip above the anchor when there isn't room below), themed chrome from UiTheme's popup colors, and dismissal (outside tap / back).

Link copied to clipboard
fun NutrientToolbarItemButton(item: ToolbarItem, onAction: (ToolbarAction) -> Unit, modifier: Modifier = Modifier)

The render leaf for a single ToolbarItem — the smallest visual toolbar primitive.

Link copied to clipboard
fun NutrientToolbarLayout(items: List<ToolbarItem>, onAction: (ToolbarAction) -> Unit, modifier: Modifier = Modifier)

One-pass, feedback-loop-free toolbar layout (P0-5).

Link copied to clipboard

The single accessibility contract for every toolbar item (A11Y-1 / P1-6).

Link copied to clipboard

Derives a Compose testTag from an R.id by resolving its resource entry name (e.g. R.id.pspdf__menu_option_search"pspdf__menu_option_search").