pub fn LiquidMenu(
__arg0: bool,
__arg1: Rect,
__arg2: LiquidMenuSpec,
__arg3: Vec<LiquidMenuAbsorbedSource>,
__arg4: LiquidMenuGesture,
on_dismiss: impl Fn() + 'static,
content: impl FnOnce(&LiquidMenuScope),
)Expand description
A glass popup menu anchored to anchor (window coordinates of the button
that opened it). absorbed contains adjacent glass controls whose combined
source volume and foreground feed the opening droplet. While expanded,
taps outside dismiss via on_dismiss; a tap on a row runs that row’s own
action and then dismisses, unless the row keeps the menu open.
ⓘ
LiquidMenu(expanded, anchor, spec, Vec::new(), gesture, on_dismiss, |scope| {
scope.header("Show");
scope.item(LiquidMenuItem::new("List").checked(!grid), move || grid_state.set(false));
scope.item(LiquidMenuItem::new("Grid").checked(grid), move || grid_state.set(true));
});Layout follows the iOS menu: an optional leading checkmark column (present on every row once any item is checkable, so labels align), then the icon column, then the label. Sections split with full-width hairlines; headers are gray non-interactive rows.