Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add types for rounded-window-corners #42

Merged
merged 1 commit into from
May 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 56 additions & 1 deletion packages/gnome-shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,17 @@
}
},
"./ui/lightbox/ambient": "./dist/ui/lightbox-ambient.d.ts",
"./ui/lookingGlass": {
"import": {
"types": "./dist/ui/lookingGlass.d.ts",
"default": "./dist/ui/lookingGlass.js"
},
"require": {
"types": "./dist/ui/lookingGlass.d.ts",
"default": "./dist/ui/lookingGlass.cjs"
}
},
"./ui/lookingGlass/ambient": "./dist/ui/lookingGlass-ambient.d.ts",
"./ui/main": {
"import": {
"types": "./dist/ui/main.d.ts",
Expand Down Expand Up @@ -896,7 +907,51 @@
"default": "./dist/ui/windowManager.cjs"
}
},
"./ui/windowManager/ambient": "./dist/ui/windowManager-ambient.d.ts"
"./ui/windowManager/ambient": "./dist/ui/windowManager-ambient.d.ts",
"./ui/windowPreview": {
"import": {
"types": "./dist/ui/windowPreview.d.ts",
"default": "./dist/ui/windowPreview.js"
},
"require": {
"types": "./dist/ui/windowPreview.d.ts",
"default": "./dist/ui/windowPreview.cjs"
}
},
"./ui/windowPreview/ambient": "./dist/ui/windowPreview-ambient.d.ts",
"./ui/workspace": {
"import": {
"types": "./dist/ui/workspace.d.ts",
"default": "./dist/ui/workspace.js"
},
"require": {
"types": "./dist/ui/workspace.d.ts",
"default": "./dist/ui/workspace.cjs"
}
},
"./ui/workspace/ambient": "./dist/ui/workspace-ambient.d.ts",
"./ui/workspaceAnimation": {
"import": {
"types": "./dist/ui/workspaceAnimation.d.ts",
"default": "./dist/ui/workspaceAnimation.js"
},
"require": {
"types": "./dist/ui/workspaceAnimation.d.ts",
"default": "./dist/ui/workspaceAnimation.cjs"
}
},
"./ui/workspaceAnimation/ambient": "./dist/ui/workspaceAnimation-ambient.d.ts",
"./ui/workspacesView": {
"import": {
"types": "./dist/ui/workspacesView.d.ts",
"default": "./dist/ui/workspacesView.js"
},
"require": {
"types": "./dist/ui/workspacesView.d.ts",
"default": "./dist/ui/workspacesView.cjs"
}
},
"./ui/workspacesView/ambient": "./dist/ui/workspacesView-ambient.d.ts"
},
"typedoc": {
"entryPoint": "./src/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/gnome-shell/src/ui/layout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export class LayoutManager extends GObject.Object {
protected _pendingLoadBackground: boolean;
protected _systemBackground: SystemBackground;

public readonly _startingUp: boolean;
public monitors: Monitor[];
public primaryMonitor: Monitor | null;
public primaryIndex: number;
Expand Down
6 changes: 6 additions & 0 deletions packages/gnome-shell/src/ui/lookingGlass.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type Clutter from '@girs/clutter-14';

/**
* @version 46
*/
export class Inspector extends Clutter.Actor {}
10 changes: 10 additions & 0 deletions packages/gnome-shell/src/ui/windowPreview.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type Shell from '@girs/shell-14';
import type Meta from '@girs/meta-14';

/**
* @version 46
*/
export class WindowPreview extends Shell.WindowPreview {
_addWindow(_: Meta.Window): void;
_windowActor: Meta.WindowActor;
}
13 changes: 13 additions & 0 deletions packages/gnome-shell/src/ui/workspace.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type Clutter from '@girs/clutter-14';
import type Meta from '@girs/meta-14';

import { WindowPreview } from './windowPreview';

/**
* @version 46
*/
export class Workspace extends Clutter.Actor {
_addWindowClone(metaWindow: Meta.Window): WindowPreview;
_removeWindowClone(metaWin: Meta.Window): WindowPreview | null;
_windows: WindowPreview[];
}
37 changes: 37 additions & 0 deletions packages/gnome-shell/src/ui/workspaceAnimation.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import type Meta from '@girs/meta-14';
import type Clutter from '@girs/clutter-14';
import type St from '@girs/st-14';

/**
* @version 46
*/
export class WorkspaceAnimationController {
_movingWindow: Meta.Window;
_switchData: {
monitors: MonitorGroup[];
};
_swipeTracker: any;
_prepareWorkspaceSwitch(workspaceIndices: Array<number>): void;
_finishWorkspaceSwitch(switchData: typeof this._switchData): void;
}

/**
* @version 46
*/
export class WorkspaceGroup extends Clutter.Actor {
_windowRecords: Array<{
windowActor: Meta.WindowActor;
clone: Clutter.Clone;
}>;
_createWindows(): void;
_removeWindows(): void;
_syncStacking(): void;
_shouldShowWindow(win: Meta.Window): boolean;
}

/**
* @version 46
*/
export class MonitorGroup extends St.Widget {
_workspaceGroups: WorkspaceGroup[];
}
9 changes: 9 additions & 0 deletions packages/gnome-shell/src/ui/workspacesView.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Workspace } from './workspace';

/**
* @version 46
*/
export class WorkspacesView {
_scrollToActive(): void;
_workspaces: Workspace[];
}