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

Method startResize

src/manager/msResizeManager.ts:161–172  ·  view source on GitHub ↗
(border: PortionBorder)

Source from the content-addressed store, hash-verified

159 }
160
161 startResize(border: PortionBorder) {
162 assert(this.resizeInProgress === null, 'Resize already in progress');
163 this.resizeInProgress = {
164 border: border,
165 msWorkspace: Me.msWorkspaceManager!.getActiveMsWorkspace(),
166 };
167
168 global.stage.add_child(this.inputResizer);
169 this.msWindowManager.msFocusManager.pushModal(this.inputResizer);
170
171 Me.msThemeManager!.setCursor(Meta.Cursor.MOVE_OR_RESIZE_WINDOW);
172 }
173
174 updateResize() {
175 assert(this.resizeInProgress !== null, 'No resize in progress');

Callers 2

constructorMethod · 0.95
constructorMethod · 0.80

Calls 5

assertFunction · 0.90
getActiveMsWorkspaceMethod · 0.80
pushModalMethod · 0.80
setCursorMethod · 0.80
add_childMethod · 0.65

Tested by

no test coverage detected