/** * An `xdg_toplevel` state the shell sets on a window. Tiled states tell a * client its edges touch something, so it draws no shadow, rounded corners or * resize border there. A client too old for tiled states is sent `Maximized` * instead. */ export declare enum WindowState { TiledLeft = 0, TiledRight = 1, TiledTop = 2, TiledBottom = 3, Maximized = 4, Fullscreen = 5, /** The shell is resizing the window, so the client may skip reflowing. */ Resizing = 6 } export declare enum WindowRequestKind { Maximize = 0, Unmaximize = 1, Fullscreen = 2, Unfullscreen = 3, Minimize = 4, /** The client's title bar was pressed; the drag is the shell's to run. */ Move = 5, /** The client's resize border was pressed; the drag is the shell's to run. */ Resize = 6 } /** The edges a client's resize drag pulls. */ export declare enum ResizeEdge { Top = 0, Bottom = 1, Left = 2, Right = 3, TopLeft = 4, TopRight = 5, BottomLeft = 6, BottomRight = 7 } /** * What a client asked of window `appId`. The compositor grants nothing; the * shell does with `setWindowStates`. */ export declare const WindowRequest: { /** `display` names the display the client wants, if it named one. */ Fullscreen: (appId: string, display: string | undefined) => { appId: string; display: string | undefined; kind: WindowRequestKind.Fullscreen; }; Maximize: (appId: string) => { appId: string; kind: WindowRequestKind.Maximize; }; /** xdg-shell has no minimized state; what minimized means is the shell's. */ Minimize: (appId: string) => { appId: string; kind: WindowRequestKind.Minimize; }; /** * The button is still down and the client no longer sees the pointer, so * the shell drags the window until it comes up, or the press is lost. */ Move: (appId: string) => { appId: string; kind: WindowRequestKind.Move; }; /** As `Move`, resizing from `edges`. */ Resize: (appId: string, edges: ResizeEdge) => { appId: string; edges: ResizeEdge; kind: WindowRequestKind.Resize; }; Unfullscreen: (appId: string) => { appId: string; kind: WindowRequestKind.Unfullscreen; }; Unmaximize: (appId: string) => { appId: string; kind: WindowRequestKind.Unmaximize; }; }; export type WindowRequest = ReturnType<(typeof WindowRequest)[keyof typeof WindowRequest]>; /** A state as the compositor names it. */ export declare const wireWindowState: (state: WindowState) => string; /** A client rang the bell, from window `appId`, or from none. */ export type Bell = { readonly appId: string | undefined; };