UNPKG

2.18 kBTypeScriptView Raw
1import { Emitter, Event } from '../../common';
2import { StatusBarAlignment, StatusBarEntry, StatusBarViewEntry, StatusBarViewModelEntry } from './status-bar-types';
3interface EntryLocation {
4 container: StatusBarViewModelEntry[];
5 index: number;
6 entry: StatusBarViewModelEntry;
7}
8export declare class StatusBarViewModel {
9 protected leftTree: StatusBarViewModelEntry[];
10 protected rightTree: StatusBarViewModelEntry[];
11 protected containerPointers: Map<string, StatusBarViewModelEntry[]>;
12 protected onDidChangeEmitter: Emitter<void>;
13 get onDidChange(): Event<void>;
14 getLeft(): IterableIterator<StatusBarViewEntry>;
15 getRight(): IterableIterator<StatusBarViewEntry>;
16 getEntries(list: StatusBarViewModelEntry[]): IterableIterator<StatusBarViewEntry>;
17 getChildren(list: StatusBarViewModelEntry[], alignment: StatusBarAlignment, compact?: boolean): IterableIterator<StatusBarViewEntry>;
18 set(id: string, entry: StatusBarEntry): void;
19 protected relocate(locationData: EntryLocation, dontSort?: boolean): void;
20 protected getContainerFor(entry: StatusBarEntry): StatusBarViewModelEntry[];
21 protected getDependentsOf(id: string): EntryLocation[];
22 remove(id: string): boolean;
23 protected shareSamePositionParameters(left: StatusBarEntry, right: StatusBarEntry): boolean;
24 protected shareSameContainer(left: StatusBarEntry, right: StatusBarEntry): boolean;
25 protected shareSamePriority(left: StatusBarEntry, right: StatusBarEntry): boolean;
26 protected affinityMatters(left: StatusBarEntry, right: StatusBarEntry): boolean;
27 protected findElement(id?: string): EntryLocation | undefined;
28 protected sort(container: StatusBarViewModelEntry[]): void;
29 protected sortTop(container: StatusBarViewModelEntry[]): void;
30 protected comparePriority(left: StatusBarViewModelEntry, right: StatusBarViewModelEntry): number;
31 protected sortDependents(container: StatusBarViewModelEntry[]): void;
32 protected inline(left: StatusBarViewModelEntry[], right: StatusBarViewModelEntry[]): void;
33 protected doAddTop(entry: StatusBarViewModelEntry): void;
34}
35export {};
36//# sourceMappingURL=status-bar-view-model.d.ts.map
\No newline at end of file