Skip to main content

Crate xgpui_shell

Crate xgpui_shell 

Source
Expand description

Experimental desktop shell with app-composed title bars and optional Linux client frames. macOS retains native traffic lights; apps supply their own title-bar content and look.

Structs§

ClientFramePreview
A visual-only client-frame preview inside an application’s content area.
ResolvedShellLook
The exact logical style tokens consumed by the shared frame renderer. Does not theme application content or native/server decorations.
ResolvedShellPreferences
The values actually used by the shared client frame after overrides and fallbacks.
ShellColors
Client-frame colors after appearance, activation and contrast resolution.
ShellControlPresenter
App-supplied artwork for shell-drawn window controls.
ShellControlState
Everything a presenter may use to draw one control.
ShellDragRegion
An explicit drag surface inside an app-composed title bar. Place title text or empty space here; keep buttons/inputs as siblings so their events never initiate a window move. Fill available space with a styled child. Double click honors native macOS behavior or resolved desktop title-bar actions.
ShellOptions
Optional per-window overrides. None follows desktop preferences, then built-in fallbacks.
ShellTypography
Client-frame typography in logical pixels, before the shell text scale. Application content retains its own typography. Font availability and glyph fallback are handled by GPUI’s text system; a requested family is not proof that the family is installed.
ShellWindow

Enums§

ShellControl
A window control drawn by the shell.
TitlebarAction
Supported title-bar interaction, resolved from desktop preferences or an explicit override.

Traits§

ShellApp
Open an application with compositor-provided chrome or a shared client-side frame.
ShellWindowTitle