MCPcopy Index your code
hub / github.com/material-shell/material-shell / constructor

Method constructor

src/layout/main.ts:42–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 overviewShown = false;
41
42 constructor() {
43 super({});
44 this.panelsVisible = Me.stateManager.getState('panels-visible') ?? true;
45
46 Main.layoutManager.uiGroup.insert_child_above(
47 this,
48 global.window_group
49 );
50
51 this.monitorsContainer = [];
52 this.aboveContainer = new Clutter.Actor();
53 this.add_child(this.aboveContainer);
54 this.backgroundGroup = new Meta.BackgroundGroup({});
55 this.setBlurBackground(Me.msThemeManager.blurBackground);
56 this.add_child(this.backgroundGroup);
57
58 this.primaryMonitorContainer = new PrimaryMonitorContainer(
59 this,
60 assertNotNull(this.primaryMonitor),
61 this.backgroundGroup,
62 {
63 clip_to_allocation: true,
64 }
65 );
66 this.add_child(this.primaryMonitorContainer);
67 this.panel = this.primaryMonitorContainer.panel;
68 this.primaryMonitorContainer.setMsWorkspaceActor(
69 Me.msWorkspaceManager.getActivePrimaryMsWorkspace().msWorkspaceActor
70 );
71 for (const externalMonitor of this.externalMonitors) {
72 const container = new MonitorContainer(
73 this,
74 externalMonitor,
75 this.backgroundGroup,
76 {
77 clip_to_allocation: true,
78 }
79 );
80 this.monitorsContainer.push(container);
81 this.add_child(container);
82 }
83
84 this.registerToSignals();
85 this.onMsWorkspacesChanged();
86 this.updatePanelVisibilities();
87 this.updateFullscreenMonitors();
88 }
89 get primaryMonitor() {
90 return Main.layoutManager.primaryMonitor;
91 }

Callers

nothing calls this directly

Calls 12

add_childMethod · 0.95
setBlurBackgroundMethod · 0.95
registerToSignalsMethod · 0.95
onMsWorkspacesChangedMethod · 0.95
assertNotNullFunction · 0.90
getStateMethod · 0.80
insert_child_aboveMethod · 0.80
pushMethod · 0.65
setMsWorkspaceActorMethod · 0.45

Tested by

no test coverage detected