Expand description
Platform-neutral semantic core for the LingXia host shell.
This crate owns app-declared sidebar actions, user-owned Pins, validation, Pin persistence, and deterministic state transitions. It deliberately has no dependency on lxapps, the surface graph, browser bookmarks, Logic, or platform UI. Host integration resolves metadata and executes activation; platform skins only render resolved snapshots and report stable ids.
Structs§
- PinCollection
- Resolved
Shell Sidebar Action - Shell
Manager - Shell
Pin - Shell
Sidebar Action - Shell
Sidebar Action Update - Shell
Snapshot - Shell
Store - Shell
Window State - Sidebar
Action Collection - Sidebar
Action Intent - Sidebar
Chrome - Surface
Menu Context - Surface
Menu Intent - Surface
Menu Item - Surface
Menu Section - Surface
Menu Snapshot - Window
Frame
Enums§
- Lxapp
Surface Menu Action - PinMutation
- Shell
Error - Shell
PinTarget - Sidebar
Action Placement - Surface
Menu Action - Surface
Menu Builtin Action - Surface
Menu Item Role - Surface
Menu Section Kind
Constants§
- DEFAULT_
EXPANDED_ SIDEBAR_ WIDTH - MAX_
HEADER_ SIDEBAR_ ACTIONS - The header strip is shared with the window controls, so it holds a few actions rather than an open-ended list. Exceeding it rejects the whole declaration instead of truncating: silently dropping one entry would leave an app believing it published something the user cannot see.
- MAX_
SHELL_ PINS - PIN_
STORE_ FILE - SHELL_
WINDOW_ FILE
Traits§
Functions§
- activate_
sidebar_ action - apply_
current_ pins - apply_
current_ sidebar_ actions - compose_
surface_ menu - initialize
- is_
pinned - manager
- pins
- resolved_
sidebar_ actions - set_
pinned - set_
sidebar_ chrome - Record the user’s own sidebar choice. Never call this for the adaptive projection: a narrow window forcing a rail is not a choice, and writing it down would make the next launch open as a rail on any window size.
- set_
window_ frame - sidebar_
chrome - The sidebar state the user last settled on, or the expanded default when the shell is not initialized.
- window_
frame